Completed
Push — develop ( d42b90...5a5dff )
by Alec
13:17 queued 09:54
created
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   +11 added lines, -11 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,15 +49,15 @@  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::MAX . ': %s, ' .
59
-                self::MIN . ': %s, ' .
60
-                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::MAX.': %s, '.
59
+                self::MIN.': %s, '.
60
+                self::DIFF.': %s %s',
61 61
                 $this->report->getName(),
62 62
                 (string)$this->report->getValue(),
63 63
                 (string)$this->report->getStep(),
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     private function computeBumped(): string
78 78
     {
79 79
         return sprintf(
80
-            self::FORWARD . '%s ' . self::BACKWARD . '%s',
80
+            self::FORWARD.'%s '.self::BACKWARD.'%s',
81 81
             $this->report->getBumpedForward(),
82 82
             $this->report->getBumpedBack()
83 83
         );
Please login to merge, or discard this patch.
src/Tools/BenchmarkSymfonyPB.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,17 +33,17 @@
 block discarded – undo
33 33
         $this->progressBar = new ProgressBar($this->output, $this->advanceSteps);
34 34
         $this->progressBar->setBarWidth($this->progressBarWidth);
35 35
         $progressStart =
36
-            function (): void {
36
+            function(): void {
37 37
                 $this->progressBar->start();
38 38
             };
39 39
 
40 40
         $progressAdvance =
41
-            function (): void {
41
+            function(): void {
42 42
                 $this->progressBar->advance();
43 43
             };
44 44
 
45 45
         $progressFinish =
46
-            function (): void {
46
+            function(): void {
47 47
                 $this->progressBar->finish();
48 48
                 $this->progressBar->clear();
49 49
             };
Please login to merge, or discard this patch.
src/Tools/Benchmark.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $this->iterations = $this->refineIterations($iterations);
53 53
 
54
-        $this->generatorFunction = function (int $iterations, int $i = 1): \Generator {
54
+        $this->generatorFunction = function(int $iterations, int $i = 1): \Generator {
55 55
             while ($i <= $iterations) {
56 56
                 yield $i++;
57 57
             }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $iterations = $iterations ?? self::MIN_ITERATIONS;
67 67
         if ($iterations < self::MIN_ITERATIONS) {
68
-            throw new \RuntimeException(__CLASS__ . ': Iterations should greater then ' . self::MIN_ITERATIONS);
68
+            throw new \RuntimeException(__CLASS__.': Iterations should greater then '.self::MIN_ITERATIONS);
69 69
         }
70 70
         return $iterations;
71 71
     }
Please login to merge, or discard this patch.
src/Tools/BenchmarkSimplePB.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
         $this->progressBarWidth = $this->advanceSteps = $progressBarWidth ?? $this->advanceSteps;
19 19
 
20 20
         $progressAdvance =
21
-            function (): void {
21
+            function(): void {
22 22
                 echo '*';
23 23
             };
24 24
 
25 25
         $progressFinish =
26
-            function (): void {
27
-                echo "\e[" . $this->progressBarWidth . 'D';
26
+            function(): void {
27
+                echo "\e[".$this->progressBarWidth.'D';
28 28
                 echo "\e[K";
29 29
             };
30 30
 
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/BenchmarkReportFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      */
20 20
     public function getString(): string
21 21
     {
22
-        $str = self::BENCHMARK . PHP_EOL;
22
+        $str = self::BENCHMARK.PHP_EOL;
23 23
         $equalReturns = $this->checkReturns();
24 24
         /** @var BenchmarkFunction $function */
25 25
         foreach ($this->report->getFunctions() as $name => $function) {
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/BenchmarkFunctionFormatter.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
     public function getString(): string
40 40
     {
41 41
         return
42
-            $this->formatBenchmarkRelative() .
42
+            $this->formatBenchmarkRelative().
43 43
             (empty($exception = $this->formatException()) ?
44 44
                 PHP_EOL :
45
-                static::EXCEPTIONS . PHP_EOL . $exception);
45
+                static::EXCEPTIONS.PHP_EOL.$exception);
46 46
     }
47 47
 
48 48
     /**
@@ -137,12 +137,11 @@  discard block
 block discarded – undo
137 137
         try {
138 138
             $str = var_export($executionReturn, true);
139 139
         } catch (\Exception $e) {
140
-            $str = '[' . typeOf($e) . ']' . $e->getMessage();
140
+            $str = '['.typeOf($e).']'.$e->getMessage();
141 141
         }
142 142
         return
143 143
             $type === 'array' ?
144
-                $str :
145
-                sprintf(
144
+                $str : sprintf(
146 145
                     '%s(%s)',
147 146
                     $type,
148 147
                     $str
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
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             return
65 65
                 new BenchmarkReport($reportable);
66 66
         }
67
-        throw new \RuntimeException('Attempt to create unimplemented report for: ' . typeOf($reportable));
67
+        throw new \RuntimeException('Attempt to create unimplemented report for: '.typeOf($reportable));
68 68
     }
69 69
 
70 70
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             return
90 90
                 self::getBenchmarkReportFormatter($report);
91 91
         }
92
-        throw new \RuntimeException('Attempt to create unimplemented formatter for: ' . typeOf($report));
92
+        throw new \RuntimeException('Attempt to create unimplemented formatter for: '.typeOf($report));
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.