mayflower / mo4-coding-standard

MO4 Coding Standard Rules for Codesniffer based on Symfony Coding Standards.
MIT License
17 stars 10 forks source link

Forbid spaces between parentheses and their content #169

Closed mmoll closed 3 years ago

mmoll commented 3 years ago

Autofixes these:

                 if ($ratio === $sizeType['ratio']
-                    && (                    ($width - $fuzzyness) <= $sizeType['native']['width']
+                    && (($width - $fuzzyness) <= $sizeType['native']['width']
                     && ($width + $fuzzyness) >= $sizeType['native']['width'])
-                    && (                    ($height - $fuzzyness) <= $sizeType['native']['height']
+                    && (($height - $fuzzyness) <= $sizeType['native']['height']
                     && ($height + $fuzzyness) >= $sizeType['native']['height'])
                 ) {
                     $sizeTypeName = $sizeType['name'];
         if (!($documentContent->hasChild('assetid')
             && $documentContent->hasChild('assetrevid')
-            && $documentContent->hasChild('assettype')            )
+            && $documentContent->hasChild('assettype'))
         ) {
codecov[bot] commented 3 years ago

Codecov Report

Merging #169 (50026a7) into master (11d9307) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##              master      #169   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity       133       133           
===========================================
  Files              6         6           
  Lines            511       511           
===========================================
  Hits             511       511           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 11d9307...50026a7. Read the comment docs.