Passed
Push — develop ( 7e6335...d04ffa )
by Alec
03:48
created
src/Tools/Benchmark.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         $this->functions = [];
57 57
         $this->rewindable =
58 58
             new Rewindable(
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
                     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             $result = $function(...$args);
126 126
         } catch (\Throwable $e) {
127 127
             $this->errorState = true;
128
-            $result = brackets(typeOf($e)) . ': ' . $e->getMessage();
128
+            $result = brackets(typeOf($e)).': '.$e->getMessage();
129 129
             $this->exceptionMessages[$f->getIndexedName()] = $result;
130 130
             $this->exceptions[$f->getIndexedName()] = $e;
131 131
         }
Please login to merge, or discard this patch.
src/Tools/Reports/Formatters/TimerReportFormatter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function full(): string
56 56
     {
57
-        $name =  $this->report->getName();
57
+        $name = $this->report->getName();
58 58
         try {
59 59
             $str = sprintf(
60
-                'Timer[%s]: Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s' . PHP_EOL,
60
+                'Timer[%s]: Average: %s, Last: %s, Min(%s): %s, Max(%s): %s, Count: %s'.PHP_EOL,
61 61
                 $this->theme->info($name),
62 62
                 $this->theme->comment(format_time_auto($this->report->getAverageValue())),
63 63
                 format_time_auto($this->report->getLastValue()),
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         } catch (\Throwable $e) {
71 71
             $str =
72 72
                 sprintf(
73
-                    'Timer[%s]: %s' . PHP_EOL,
73
+                    'Timer[%s]: %s'.PHP_EOL,
74 74
                     $this->theme->red($name),
75 75
                     $this->theme->comment('Exception encountered')
76 76
                 );
Please login to merge, or discard this patch.