Completed
Push — develop ( 9c7d33...c21a1a )
by Alec
03:49 queued 58s
created
src/Tools/Reports/Formatters/ProfilerReportFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
                 }
29 29
             }
30 30
         }
31
-        return $r . $elapsed;
31
+        return $r.$elapsed;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Tools/Reports/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return
50 50
                 new BenchmarkReport($reportable);
51 51
         }
52
-        throw new \RuntimeException('Attempt to create unimplemented report for: ' . typeOf($reportable));
52
+        throw new \RuntimeException('Attempt to create unimplemented report for: '.typeOf($reportable));
53 53
     }
54 54
 
55 55
     /**
@@ -74,6 +74,6 @@  discard block
 block discarded – undo
74 74
             return
75 75
                 new BenchmarkReportFormatter($report);
76 76
         }
77
-        throw new \RuntimeException('Attempt to create unimplemented formatter for: ' . typeOf($report));
77
+        throw new \RuntimeException('Attempt to create unimplemented formatter for: '.typeOf($report));
78 78
     }
79 79
 }
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
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         $this->humanReadableName = null;
61 61
         $this->rewindable =
62 62
             new Rewindable(
63
-                function (int $iterations, int $i = 1): \Generator {
63
+                function(int $iterations, int $i = 1): \Generator {
64 64
                     while ($i <= $iterations) {
65 65
                         yield $i++;
66 66
                     }
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/BenchmarkReportFormatter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     public function getString(): string
21 21
     {
22 22
         $profilerReport = (string)$this->report->getProfiler()->getReport();
23
-        $r = 'Benchmark:' . PHP_EOL;
23
+        $r = 'Benchmark:'.PHP_EOL;
24 24
         $withException = '';
25 25
         /** @var BenchmarkFunction $function */
26 26
         foreach ($this->report->getFunctions() as $name => $function) {
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
             }
69 69
         }
70 70
         return
71
-            $r . PHP_EOL .
72
-            (empty($withException) ? '' : 'Exceptions:' . PHP_EOL . $withException) . PHP_EOL .
71
+            $r.PHP_EOL.
72
+            (empty($withException) ? '' : 'Exceptions:'.PHP_EOL.$withException).PHP_EOL.
73 73
             $profilerReport;
74 74
     }
75 75
 
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/TimerReportFormatter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         return
38 38
             sprintf(
39
-                self::ELAPSED . ': %s %s',
39
+                self::ELAPSED.': %s %s',
40 40
                 $this->ftime($this->report->getElapsed()),
41 41
                 $eol ? PHP_EOL : ''
42 42
             );
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $r = $this->report;
57 57
         return sprintf(
58
-            self::TIMER . '%s: ' .
59
-            self::AVERAGE . ': %s, ' .
60
-            self::LAST . ': %s, ' .
61
-            self::MIN . '(%s): %s, ' .
62
-            self::MAX . '(%s): %s, ' .
63
-            self::COUNT . ': %s, ' .
64
-            self::ELAPSED . ': %s%s',
58
+            self::TIMER.'%s: '.
59
+            self::AVERAGE.': %s, '.
60
+            self::LAST.': %s, '.
61
+            self::MIN.'(%s): %s, '.
62
+            self::MAX.'(%s): %s, '.
63
+            self::COUNT.': %s, '.
64
+            self::ELAPSED.': %s%s',
65 65
             $this->fname($r->getName()),
66 66
             $this->ftime($r->getAverageValue()),
67 67
             $this->ftime($r->getLastValue()),
@@ -80,6 +80,6 @@  discard block
 block discarded – undo
80 80
         if (DEFAULT_NAME === $name) {
81 81
             return '';
82 82
         }
83
-        return '[' . $name . ']';
83
+        return '['.$name.']';
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/CounterReportFormatter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         return
37 37
             sprintf(
38
-                self::COUNTER . ': %s%s',
38
+                self::COUNTER.': %s%s',
39 39
                 (string)$this->report->getValue(),
40 40
                 $eol ? PHP_EOL : ''
41 41
             );
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
     {
50 50
         return
51 51
             sprintf(
52
-                self::COUNTER . '[%s]: ' .
53
-                self::VALUE . ': %s, ' .
54
-                self::STEP . ': %s, ' .
55
-                self::BUMPED . ': %s, ' .
56
-                self::PATH . ': %s, ' .
57
-                self::LENGTH . ': %s, ' .
58
-                self::DIFF . ': %s %s',
52
+                self::COUNTER.'[%s]: '.
53
+                self::VALUE.': %s, '.
54
+                self::STEP.': %s, '.
55
+                self::BUMPED.': %s, '.
56
+                self::PATH.': %s, '.
57
+                self::LENGTH.': %s, '.
58
+                self::DIFF.': %s %s',
59 59
                 $this->report->getName(),
60 60
                 (string)$this->report->getValue(),
61 61
                 (string)$this->report->getStep(),
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     private function computeBumped(): string
74 74
     {
75 75
         return sprintf(
76
-            self::FORWARD . '%s ' . self::BACKWARD . '%s',
76
+            self::FORWARD.'%s '.self::BACKWARD.'%s',
77 77
             $this->report->getBumpedForward(),
78 78
             $this->report->getBumpedBack()
79 79
         );
Please login to merge, or discard this patch.