Completed
Push — develop ( 6b618f...2007a6 )
by Alec
04:06
created
src/Tools/Reports/TimerReport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         }
55 55
         return
56 56
             sprintf(
57
-                'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s' . PHP_EOL,
57
+                'Timer:[%s] Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s'.PHP_EOL,
58 58
                 $name,
59 59
                 format_time($this->getAverageValue()),
60 60
                 format_time($this->getLastValue()),
Please login to merge, or discard this patch.
src/Tools/Reports/BenchmarkReport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function __toString(): string
41 41
     {
42 42
         $profilerReport = (string)$this->getProfiler()->report();
43
-        $r = 'Benchmark:' . PHP_EOL;
43
+        $r = 'Benchmark:'.PHP_EOL;
44 44
         foreach ($this->computeRelatives() as $indexName => $result) {
45 45
             $function = $this->getFunctionObject($indexName);
46 46
             $arguments = $function->getArgs();
@@ -60,11 +60,11 @@  discard block
 block discarded – undo
60 60
                 PHP_EOL
61 61
             );
62 62
             if ($this->withResults) {
63
-                $r .= var_export($function->getResult(), true) . PHP_EOL;
63
+                $r .= var_export($function->getResult(), true).PHP_EOL;
64 64
             }
65 65
         }
66 66
         return
67
-            $r . PHP_EOL . $profilerReport;
67
+            $r.PHP_EOL.$profilerReport;
68 68
     }
69 69
 
70 70
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         foreach ($relatives as $name => $relative) {
88 88
             $relatives[$name] =
89
-                $this->percent((float)$relative - 1) . ' ' .
89
+                $this->percent((float)$relative - 1).' '.
90 90
                 brackets(format_time($averages[$name]), BRACKETS_PARENTHESES);
91 91
         }
92 92
         return $relatives;
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     private function percent(float $relative): string
116 116
     {
117 117
         return
118
-            number_format($relative * 100, 1) . '%';
118
+            number_format($relative * 100, 1).'%';
119 119
     }
120 120
 
121 121
     /**
Please login to merge, or discard this patch.
src/Tools/Benchmark.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $this->iterations = $iterations;
40 40
         $this->rewindable =
41 41
             new Rewindable(
42
-                function (int $iterations, int $i = 1): \Generator {
42
+                function(int $iterations, int $i = 1): \Generator {
43 43
                     while ($i <= $iterations) {
44 44
                         yield $i++;
45 45
                     }
Please login to merge, or discard this patch.
src/Tools/Internal/BenchmarkFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     public function getEnumeratedName(): string
89 89
     {
90 90
         return
91
-            brackets((string)$this->index, BRACKETS_ANGLE) . ' ' . $this->name;
91
+            brackets((string)$this->index, BRACKETS_ANGLE).' '.$this->name;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.