Completed
Push — master ( fefd2b...bbdd37 )
by Vincenzo
02:31
created
Console/CoverageCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $targetCoverage = $this->getArg(1);
20 20
 
21 21
         $inputFile = !empty($inputFile) ? $inputFile : "clover.xml";
22
-        $targetCoverage = (int)(!empty($targetCoverage) ? $targetCoverage : 1);
22
+        $targetCoverage = (int) (!empty($targetCoverage) ? $targetCoverage : 1);
23 23
         $percentage = min(100, max(0, $targetCoverage));
24 24
 
25 25
         if (!file_exists($inputFile)) {
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         $checkedElements = 0;
37 37
 
38 38
         foreach ($metrics as $metric) {
39
-            $totalElements += (int)$metric['elements'];
40
-            $checkedElements += (int)$metric['coveredelements'];
39
+            $totalElements += (int) $metric['elements'];
40
+            $checkedElements += (int) $metric['coveredelements'];
41 41
         }
42 42
 
43 43
         $coverage = ($checkedElements / $totalElements) * 100;
Please login to merge, or discard this patch.
Lib/Helpers/TextFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public static function snakeToCamelCase($string, $ucFirst = true)
38 38
     {
39
-        $string = preg_replace_callback("/(?:^|_)([a-z])/", function ($matches) {
39
+        $string = preg_replace_callback("/(?:^|_)([a-z])/", function($matches) {
40 40
             return strtoupper($matches[1]);
41 41
         }, $string);
42 42
 
Please login to merge, or discard this patch.