Passed
Push — master ( 32cf9c...d083b3 )
by Alec
02:38
created
src/Tools/Formatters/TimerReportFormatter.php 1 patch
Spacing   +10 added lines, -11 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->refineElapsed($report->getElapsed()),
41 41
                 $eol ? PHP_EOL : ''
42 42
             );
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
         $values =
74 74
             0 < $count ?
75 75
                 sprintf(
76
-                    self::AVERAGE . ': %s, ' .
77
-                    self::LAST . ': %s, ' .
78
-                    self::MIN . '(%s): %s, ' .
79
-                    self::MAX . '(%s): %s, ' .
80
-                    self::MARKS . ': %s, ',
76
+                    self::AVERAGE.': %s, '.
77
+                    self::LAST.': %s, '.
78
+                    self::MIN.'(%s): %s, '.
79
+                    self::MAX.'(%s): %s, '.
80
+                    self::MARKS.': %s, ',
81 81
                     $this->refineSeconds($r->getAverageValue()),
82 82
                     $this->refineSeconds($r->getLastValue()),
83 83
                     $r->getMinValueIteration(),
@@ -85,13 +85,12 @@  discard block
 block discarded – undo
85 85
                     $r->getMaxValueIteration(),
86 86
                     $this->refineSeconds($r->getMaxValue()),
87 87
                     $count
88
-                ) :
89
-                '';
88
+                ) : '';
90 89
 
91 90
         return
92 91
             sprintf(
93
-                self::TIMER . '%s: %s' .
94
-                self::ELAPSED . ': %s%s',
92
+                self::TIMER.'%s: %s'.
93
+                self::ELAPSED.': %s%s',
95 94
                 $this->refineName($r->getName()),
96 95
                 $values,
97 96
                 $this->refineElapsed($r->getElapsed()),
@@ -110,6 +109,6 @@  discard block
 block discarded – undo
110 109
         if (DEFAULT_NAME === $name) {
111 110
             return '';
112 111
         }
113
-        return '[' . $name . ']';
112
+        return '['.$name.']';
114 113
     }
115 114
 }
Please login to merge, or discard this patch.
src/Tools/Formatters/ExtendedCounterReportFormatter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         /** @var CounterValuesInterface $report */
33 33
         return
34 34
             sprintf(
35
-                self::COUNTER . ': %s%s',
35
+                self::COUNTER.': %s%s',
36 36
                 (string)$report->getValue(),
37 37
                 $eol ? PHP_EOL : ''
38 38
             );
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
     {
48 48
         return
49 49
             sprintf(
50
-                self::COUNTER . '[%s]: ' .
51
-                self::VALUE . ': %s, ' .
52
-                self::STEP . ': %s, ' .
53
-                self::BUMPED . ': %s, ' .
54
-                self::PATH . ': %s, ' .
55
-                self::LENGTH . ': %s, ' .
56
-                self::MAX . ': %s, ' .
57
-                self::MIN . ': %s, ' .
58
-                self::DIFF . ': %s %s',
50
+                self::COUNTER.'[%s]: '.
51
+                self::VALUE.': %s, '.
52
+                self::STEP.': %s, '.
53
+                self::BUMPED.': %s, '.
54
+                self::PATH.': %s, '.
55
+                self::LENGTH.': %s, '.
56
+                self::MAX.': %s, '.
57
+                self::MIN.': %s, '.
58
+                self::DIFF.': %s %s',
59 59
                 $report->getName(),
60 60
                 (string)$report->getValue(),
61 61
                 (string)$report->getStep(),
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     {
78 78
         return
79 79
             sprintf(
80
-                self::FORWARD . '%s ' . self::BACKWARD . '%s',
80
+                self::FORWARD.'%s '.self::BACKWARD.'%s',
81 81
                 $report->getBumped(),
82 82
                 $report->getBumpedBack()
83 83
             );
Please login to merge, or discard this patch.
src/Tools/Formatters/Core/Formatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     protected function wrongFormattableType(string $expected, Formattable $formattable): void
21 21
     {
22 22
         throw new \RuntimeException(
23
-            'Instance of [' . $expected . '] expected, [' . typeOf($formattable) . '] given.'
23
+            'Instance of ['.$expected.'] expected, ['.typeOf($formattable).'] given.'
24 24
         );
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Tools/Formatters/BenchmarkReportFormatter.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
     protected function build(BenchmarkReport $report): string
56 56
     {
57 57
         $this->report = $report;
58
-        $str = static::RESULTS . PHP_EOL;
58
+        $str = static::RESULTS.PHP_EOL;
59 59
         $this->computeVariables();
60 60
         if ($this->benchmarkedAny) {
61
-            $str .= static::BENCHMARK . PHP_EOL;
61
+            $str .= static::BENCHMARK.PHP_EOL;
62 62
         }
63 63
         if ($this->anyExceptions) {
64
-            $exceptions = static::EXCEPTIONS . PHP_EOL;
64
+            $exceptions = static::EXCEPTIONS.PHP_EOL;
65 65
         } else {
66 66
             $exceptions = '';
67 67
         }
@@ -154,8 +154,7 @@  discard block
 block discarded – undo
154 154
                     '%s%s%s',
155 155
                     $aRAE,
156 156
                     $this->benchmarkedMoreThanOne && $this->report->isShowReturns() ?
157
-                        ':' . PHP_EOL . Factory::getBenchmarkFunctionFormatter()->returnToString($this->lastReturn) :
158
-                        $dLM,
157
+                        ':'.PHP_EOL.Factory::getBenchmarkFunctionFormatter()->returnToString($this->lastReturn) : $dLM,
159 158
                     PHP_EOL
160 159
                 );
161 160
         }
Please login to merge, or discard this patch.
src/Tools/Formatters/BenchmarkFunctionFormatter.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
     {
38 38
         if ($function instanceof BenchmarkFunction) {
39 39
             return
40
-                $this->formatBenchmarkRelative($function) .
40
+                $this->formatBenchmarkRelative($function).
41 41
                 (empty($exception = $this->formatException($function)) ?
42 42
                     PHP_EOL :
43
-                    /*static::EXCEPTIONS .*/ $exception . PHP_EOL);
43
+                    /*static::EXCEPTIONS .*/ $exception.PHP_EOL);
44 44
         }
45 45
         $this->wrongFormattableType(BenchmarkFunction::class, $function);
46 46
         // @codeCoverageIgnoreStart
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     {
136 136
         return
137 137
             str_pad(
138
-                $prefix . Pretty::percent($relative),
138
+                $prefix.Pretty::percent($relative),
139 139
                 9,
140 140
                 ' ',
141 141
                 STR_PAD_LEFT
@@ -149,8 +149,7 @@  discard block
 block discarded – undo
149 149
         $str = static::getExporter()->export($executionReturn);
150 150
         return
151 151
             'array' === $type ?
152
-                $str :
153
-                sprintf(
152
+                $str : sprintf(
154 153
                     '%s(%s)',
155 154
                     $type,
156 155
                     $str
Please login to merge, or discard this patch.