Guest User

Untitled

a guest
Jul 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. if ($x)
  2. $y = 5;
  3. else
  4. $y = 7;
  5.  
  6. $z = $y; <==== Netbeans warns that $y many not be defined.
  7.  
  8. FILE: foo.php
  9.  
  10. --------------------------------------------------------------------------------
  11. FOUND 6 ERROR(S) AND 1 WARNING(S) AFFECTING 7 LINE(S)
  12. --------------------------------------------------------------------------------
  13. 1 | ERROR | End of line character is invalid; expected "n" but found
  14. | | "rn"
  15. 2 | ERROR | Missing file doc comment
  16. 41 | ERROR | Space found before comma in function call
  17. 42 | ERROR | Multi-line function call not indented correctly; expected 20
  18. | | spaces but found 22
  19. 70 | ERROR | Opening parenthesis of a multi-line function call must be the
  20. | | last content on the line
  21. 74 | ERROR | Closing parenthesis of a multi-line function call must be on a
  22. | | line by itself
  23. 84 | WARNING | Line exceeds 85 characters; contains 102 characters
  24. --------------------------------------------------------------------------------
  25.  
  26. php -l [file]
Add Comment
Please, Sign In to add comment