File tree Expand file tree Collapse file tree 4 files changed +18
-1
lines changed 
tests/Integration/Fixtures Expand file tree Collapse file tree 4 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 55use  Symplify \CodingStandard \Fixer \LineLength \LineLengthFixer ;
66use  Symplify \EasyCodingStandard \Config \ECSConfig ;
77
8- /**  
8+ /* 
99 * Internal rules configuration for the lmc/coding-standard project itself 
1010 */ 
1111return  ECSConfig::configure ()
Original file line number Diff line number Diff line change 106106use  PhpCsFixer \Fixer \Phpdoc \PhpdocReturnSelfReferenceFixer ;
107107use  PhpCsFixer \Fixer \Phpdoc \PhpdocScalarFixer ;
108108use  PhpCsFixer \Fixer \Phpdoc \PhpdocSingleLineVarSpacingFixer ;
109+ use  PhpCsFixer \Fixer \Phpdoc \PhpdocToCommentFixer ;
109110use  PhpCsFixer \Fixer \Phpdoc \PhpdocTrimFixer ;
110111use  PhpCsFixer \Fixer \Phpdoc \PhpdocTypesFixer ;
111112use  PhpCsFixer \Fixer \Phpdoc \PhpdocVarAnnotationCorrectOrderFixer ;
331332            PhpdocSingleLineVarSpacingFixer::class,
332333            // PHPDoc should start and end with content 
333334            PhpdocTrimFixer::class,
335+             // Docblocks should only be used on structural elements. 
336+             PhpdocToCommentFixer::class,
334337            // The correct case must be used for standard PHP types in PHPDoc. 
335338            PhpdocTypesFixer::class,
336339            // `@var` and `@type` annotations must have type and name in the correct order 
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ class Basic
2424
2525    public  function  fooBar (mixed  $ foomixed 
2626    {
27+         // PhpdocToCommentFixer 
28+         /* 
29+          * Phpdoc used instead of plain comment 
30+          */ 
31+         if  ($ foo'bar ' ) {
32+             $ baz'bat ' ;
33+         }
2734        // TernaryToElvisOperatorFixer 
2835        return  ($ foo'not true ' );
2936    }
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ class Basic
2020
2121    public  function  fooBar (mixed  $ foomixed 
2222    {
23+         // PhpdocToCommentFixer 
24+         /** 
25+          * Phpdoc used instead of plain comment 
26+          */ 
27+         if  ($ foo'bar ' ) {
28+             $ baz'bat ' ;
29+         }
2330        // TernaryToElvisOperatorFixer 
2431        return  ($ foo$ foo'not true ' );
2532    }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments