Completed
Push — develop ( 04a6e9...eb616e )
by Alec
03:07
created
src/Tools/Reports/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/Reports/Formatters/BenchmarkReportFormatter.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
     protected function build(BenchmarkReport $report): string
46 46
     {
47 47
         $this->report = $report;
48
-        $str = static::RESULTS . PHP_EOL;
48
+        $str = static::RESULTS.PHP_EOL;
49 49
         $this->computeVariables();
50 50
         if ($this->benchmarkedAny) {
51
-            $str .= static::BENCHMARK . PHP_EOL;
51
+            $str .= static::BENCHMARK.PHP_EOL;
52 52
         }
53 53
         /** @var BenchmarkFunction $function */
54 54
         foreach ($report->getFunctions() as $name => $function) {
@@ -120,8 +120,7 @@  discard block
 block discarded – undo
120 120
                     '%s%s%s',
121 121
                     $aRAE,
122 122
                     $this->benchmarkedMoreThanOne && $this->report->isShowReturns() ?
123
-                        ':' . PHP_EOL . BenchmarkFunctionFormatter::returnToString($this->lastReturn) :
124
-                        $dLM,
123
+                        ':'.PHP_EOL.BenchmarkFunctionFormatter::returnToString($this->lastReturn) : $dLM,
125 124
                     PHP_EOL
126 125
                 );
127 126
         }
Please login to merge, or discard this patch.