Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12717

Improve the code sniffer

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.5-RC1
    • 3.1.0-b4
    • None
    • None

      The sniffer should have more rules to test more things about the coding style.
      Currently the sniffer does not find any error in this file:

      <html>
      <?php
       
      eval ('test');
       
      $a = (int)$a;
       
      $a = test('a','b'   );
       
      function foo    ($bar, $baz = true) {
      }
       
      if($a ) {echo $b;}
      $a [ 'a' ] = $a
      [ 'a' ];
       
      if ($a){
       
      }elseif($b){}
      

            nicofuma nicofuma
            nicofuma nicofuma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: