Test Failed
Push — master ( 8c594b...32d2b8 )
by Alec
02:38
created
src/Tools/Reports/Formatters/BenchmarkReportFormatter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function getString($colored = true): string
26 26
     {
27 27
         $profilerReport = (string)$this->report->getProfiler()->getReport();
28
-        $r = 'Benchmark:' . PHP_EOL;
28
+        $r = 'Benchmark:'.PHP_EOL;
29 29
         foreach ($this->report->getRelatives() as $indexName => $result) {
30 30
             [$relative, $average] = $result;
31 31
             $function = $this->report->getFunctionObject($indexName);
@@ -47,18 +47,18 @@  discard block
 block discarded – undo
47 47
             );
48 48
             if ($this->report->isWithResults()) {
49 49
                 $result = $function->getResult();
50
-                $r .= $this->theme->dark('return: '. str_replace('double', 'float', typeOf($result)) . ' "'
51
-                        . var_export($function->getResult(), true) . '" ') . PHP_EOL;
50
+                $r .= $this->theme->dark('return: '.str_replace('double', 'float', typeOf($result)).' "'
51
+                        . var_export($function->getResult(), true).'" ').PHP_EOL;
52 52
             }
53 53
         }
54 54
         if (!empty($exceptionMessages = $this->report->getExceptionMessages())) {
55
-            $r .= 'Exceptions:' . PHP_EOL;
55
+            $r .= 'Exceptions:'.PHP_EOL;
56 56
             foreach ($exceptionMessages as $name => $exceptionMessage) {
57
-                $r .= brackets($name) . ': ' . $this->theme->red($exceptionMessage) . PHP_EOL;
57
+                $r .= brackets($name).': '.$this->theme->red($exceptionMessage).PHP_EOL;
58 58
             }
59 59
         }
60 60
         return
61
-            $r . PHP_EOL . $profilerReport;
61
+            $r.PHP_EOL.$profilerReport;
62 62
     }
63 63
 
64 64
     /**
@@ -83,6 +83,6 @@  discard block
 block discarded – undo
83 83
     private function percent(float $relative): string
84 84
     {
85 85
         return
86
-            number_format($relative * 100, 1) . '%';
86
+            number_format($relative * 100, 1).'%';
87 87
     }
88 88
 }
Please login to merge, or discard this patch.