Completed
Push — develop ( 35365a...6b618f )
by Alec
03:18
created
src/Tools/Internal/BenchmarkedFunction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,6 +85,6 @@
 block discarded – undo
85 85
     public function getEnumeratedName(): string
86 86
     {
87 87
         return
88
-            brackets((string)$this->index, BRACKETS_ANGLE) . ' ' . $this->name;
88
+            brackets((string)$this->index, BRACKETS_ANGLE).' '.$this->name;
89 89
     }
90 90
 }
Please login to merge, or discard this patch.
src/Tools/Reports/ReportFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,6 @@
 block discarded – undo
40 40
             return
41 41
                 new BenchmarkReport($reportable);
42 42
         }
43
-        throw new \RuntimeException('Attempt to create unimplemented report: ' . typeOf($reportable));
43
+        throw new \RuntimeException('Attempt to create unimplemented report: '.typeOf($reportable));
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Tools/Reports/CounterReport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         return
35 35
             sprintf(
36
-                'Counter:[%s] Value: %s, Step: %s' . PHP_EOL,
36
+                'Counter:[%s] Value: %s, Step: %s'.PHP_EOL,
37 37
                 $this->getName(),
38 38
                 $this->getValue(),
39 39
                 $this->getStep()
Please login to merge, or discard this patch.
src/Tools/Reports/Base/Report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
     public function __toString(): string
20 20
     {
21 21
         return
22
-            brackets(typeOf($this) . '::' . __FUNCTION__) . ' Not implemented!';
22
+            brackets(typeOf($this).'::'.__FUNCTION__).' Not implemented!';
23 23
     }
24 24
 }
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
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     {
30 30
         $this->iterations =
31 31
             new Rewindable(
32
-                function (int $iterations, int $i = 1): \Generator {
32
+                function(int $iterations, int $i = 1): \Generator {
33 33
                     while ($i <= $iterations) {
34 34
                         yield $i++;
35 35
                     }
Please login to merge, or discard this patch.
src/Tools/Reports/TimerReport.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@
 block discarded – undo
47 47
         if (DEFAULT_NAME === $name = $this->getName()) {
48 48
             return
49 49
                 sprintf(
50
-                    'Timer:[%s] Elapsed: %s' . PHP_EOL,
50
+                    'Timer:[%s] Elapsed: %s'.PHP_EOL,
51 51
                     $name,
52 52
                     format_time($this->getElapsed())
53 53
                 );
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function __toString(): string
40 40
     {
41 41
         $r = (string)$this->getProfiler()->report();
42
-        $r .= 'Benchmark:' . PHP_EOL;
42
+        $r .= 'Benchmark:'.PHP_EOL;
43 43
         foreach ($this->computeRelatives() as $indexName => $result) {
44 44
             $function = $this->getFunctionObject($indexName);
45 45
             $arguments = $function->getArgs();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         foreach ($relatives as $name => $relative) {
85 85
             $relatives[$name] =
86
-                $this->percent((float)$relative - 1) . ' ' .
86
+                $this->percent((float)$relative - 1).' '.
87 87
                 brackets(format_time($averages[$name]), BRACKETS_PARENTHESES);
88 88
         }
89 89
         return $relatives;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     private function percent(float $relative): string
113 113
     {
114 114
         return
115
-            number_format($relative * 100, 1) . '%';
115
+            number_format($relative * 100, 1).'%';
116 116
     }
117 117
 
118 118
     /**
Please login to merge, or discard this patch.