Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm analyzing a PHP code using Sonarqube, and I've noticed that in almost all files I have this error:

"Each PHP statement must be on a line by itself" (DisallowMultipleStatementsSameLine)

But when I check this files seems that there is no error.

For example, in this file the error is raised:

 * Category of the question
class Category {
    public $categoryId;
    public $name;

How can be?

share|improve this question
up vote 4 down vote accepted

I don't have 50 rep to ask you in comments, but...

Did you try changing the line endings? Maybe Sonarqube is expecting either linux or windows line endings and the file was saved with the opposite.

share|improve this answer
Yes. I've changed line endings to linux line endings, and then it worked. Thanks – Dr. No Dec 14 '13 at 11:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.