Completed
Push — develop ( cea326...5da1fd )
by Alec
06:22
created
Category
src/Profiler/Timer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -226,8 +226,7 @@
 block discarded – undo
226 226
                     static::_MIN => $this->format($minValue, $units, $precision),
227 227
                     static::_MAX => $this->format($this->getMaxValue(), $units, $precision),
228 228
                     static::_COUNT => $count,
229
-                ] :
230
-                [
229
+                ] : [
231 230
                     static::_LAST => $this->getCurrentValue(),
232 231
                     static::_AVG => $this->getAvgValue(),
233 232
                     static::_MIN => $minValue,
Please login to merge, or discard this patch.
src/Tools/Benchmark.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     {
29 29
         $this->iterations =
30 30
             new Rewindable(
31
-                function ($iterations) {
31
+                function($iterations) {
32 32
                     $i = 1;
33 33
                     while ($i <= $iterations) {
34 34
                         yield $i++;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $this->tmpName = null;
70 70
         }
71 71
         if (array_key_exists($callable_name, $this->functions)) {
72
-            $callable_name .= '_' . ++$this->namingIndex;
72
+            $callable_name .= '_'.++$this->namingIndex;
73 73
         }
74 74
         $this->functions[$callable_name] = [$func, $args];
75 75
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
         foreach ($relatives as $name => $relative) {
115 115
             $relatives[$name] =
116
-                $this->toPercentage($relative) . ' ' .
116
+                $this->toPercentage($relative).' '.
117 117
                 brackets(format_time($averages[$name]), BRACKETS_PARENTHESES);
118 118
         }
119 119
         return $relatives;
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     private function toPercentage(float $relative): string
123 123
     {
124 124
         return
125
-            number_format($relative * 100, 1) . '%';
125
+            number_format($relative * 100, 1).'%';
126 126
     }
127 127
 
128 128
     public function profilerReport(
Please login to merge, or discard this patch.