Completed
Pull Request — master (#282)
by Oskar
02:53
created
src/Hal/Metric/Class_/Text/LengthVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
             $code = preg_replace('!/\*.*?\*/!s', '', $code);
63 63
 
64 64
             // count and remove single line comments
65
-            $code = preg_replace_callback('!(\'[^\']*\'|"[^"]*")|((?:#|\/\/).*$)!m', function (array $matches) use (&$cloc) {
65
+            $code = preg_replace_callback('!(\'[^\']*\'|"[^"]*")|((?:#|\/\/).*$)!m', function(array $matches) use (&$cloc) {
66 66
                 if (isset($matches[2])) {
67 67
                     $cloc += 1;
68 68
                 }
Please login to merge, or discard this patch.