Completed
Push — master ( f9f913...137204 )
by Alec
02:37
created
src/Tools/Reports/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/Reports/Factory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,6 +168,6 @@
 block discarded – undo
168 168
         if ($formatter instanceof ProfilerReportFormatter) {
169 169
             static::setProfilerReportFormatter($formatter);
170 170
         }
171
-        throw new \RuntimeException('Formatter [' . typeOf($formatter) .'] is not accepted.');
171
+        throw new \RuntimeException('Formatter ['.typeOf($formatter).'] is not accepted.');
172 172
     }
173 173
 }
Please login to merge, or discard this patch.
src/Tools/AbstractTimer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     public function check(?int $iterationNumber = null): self
68 68
     {
69 69
         if ($this->isStopped()) {
70
-            throw new \RuntimeException('Timer[' . $this->name . '] is already stopped.');
70
+            throw new \RuntimeException('Timer['.$this->name.'] is already stopped.');
71 71
         }
72 72
         if ($this->isNotStarted()) {
73 73
             $this->start();
Please login to merge, or discard this patch.
src/Tools/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
 
5 5
 // @codeCoverageIgnoreStart
6 6
 /** @internal */
7
-define(__NAMESPACE__ .'\HRTIMER_VALUE_COEFFICIENT', 1E9);
7
+define(__NAMESPACE__.'\HRTIMER_VALUE_COEFFICIENT', 1E9);
Please login to merge, or discard this patch.
src/Tools/Reports/Core/Report.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     protected function wrongReportable(string $expected, ReportableInterface $reportable): void
28 28
     {
29 29
         throw new \RuntimeException(
30
-            'Instance of [' . $expected . '] expected, [' . typeOf($reportable) . '] given'
30
+            'Instance of ['.$expected.'] expected, ['.typeOf($reportable).'] given'
31 31
         );
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Tools/HRTimer.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
             // There is almost no sense in using polyfill function.
30 30
             // If you're REALLY need to use HRTimer set `$ignoreVersionRestrictions` to true.
31 31
             // Otherwise use `Timer::class` instance instead.
32
-            throw new \RuntimeException('[' . static::class . '] Your php version is below 7.3.0.');
32
+            throw new \RuntimeException('['.static::class.'] Your php version is below 7.3.0.');
33 33
         }
34 34
         if (PHP_INT_SIZE < INT_SIZE_64BIT) {
35 35
             // `HRTimer::class` is designed and tested in 64bit environment
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/BenchmarkFunctionFormatter.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
     public function process(BenchmarkFunction $function): string
50 50
     {
51 51
         return
52
-            $this->formatBenchmarkRelative($function) .
52
+            $this->formatBenchmarkRelative($function).
53 53
             (empty($exception = $this->formatException($function)) ?
54 54
                 PHP_EOL :
55
-                static::EXCEPTIONS . PHP_EOL . $exception);
55
+                static::EXCEPTIONS.PHP_EOL.$exception);
56 56
     }
57 57
 
58 58
     /**
@@ -153,8 +153,7 @@  discard block
 block discarded – undo
153 153
         $str = static::getExporter()->export($executionReturn);
154 154
         return
155 155
             'array' === $type ?
156
-                $str :
157
-                sprintf(
156
+                $str : sprintf(
158 157
                     '%s(%s)',
159 158
                     $type,
160 159
                     $str
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/ReportFormatter.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 wrongReportType(string $expected, ReportInterface $report): void
21 21
     {
22 22
         throw new \RuntimeException(
23
-            'Instance of [' . $expected . '] expected, [' . typeOf($report) . '] given.'
23
+            'Instance of ['.$expected.'] expected, ['.typeOf($report).'] given.'
24 24
         );
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Tools/Benchmark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $this->iterations = $this->refineIterations($iterations);
57 57
 
58 58
         $this->iterationNumberGenerator =
59
-            function (int $iterations, int $i = 1): \Generator {
59
+            function(int $iterations, int $i = 1): \Generator {
60 60
                 while ($i <= $iterations) {
61 61
                     yield $i++;
62 62
                 }
@@ -80,8 +80,8 @@  discard block
 block discarded – undo
80 80
     {
81 81
         if ($iterations < self::MIN_ITERATIONS) {
82 82
             throw new \RuntimeException(
83
-                __CLASS__ .
84
-                ': Number of Iterations should be greater then ' .
83
+                __CLASS__.
84
+                ': Number of Iterations should be greater then '.
85 85
                 self::MIN_ITERATIONS
86 86
             );
87 87
         }
Please login to merge, or discard this patch.