Completed
Push — develop ( 500e55...0a2c3f )
by Alec
02:54
created
src/Tools/Reports/Formatters/BenchmarkFunctionFormatter.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     public function process(BenchmarkFunction $function): string
39 39
     {
40 40
         return
41
-            $this->formatBenchmarkRelative($function) .
41
+            $this->formatBenchmarkRelative($function).
42 42
             (empty($exception = $this->formatException($function)) ?
43 43
                 PHP_EOL :
44
-                static::EXCEPTIONS . PHP_EOL . $exception);
44
+                static::EXCEPTIONS.PHP_EOL.$exception);
45 45
     }
46 46
 
47 47
     /**
@@ -145,12 +145,11 @@  discard block
 block discarded – undo
145 145
             $str = $exporter->export($executionReturn);
146 146
 //            $str = var_export($executionReturn, true);
147 147
         } catch (\Exception $e) {
148
-            $str = '[' . typeOf($e) . '] ' . $e->getMessage();
148
+            $str = '['.typeOf($e).'] '.$e->getMessage();
149 149
         }
150 150
         return
151 151
             $type === 'array' ?
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.
src/Tools/Benchmark.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $this->iterations = $this->refineIterations($iterations);
60 60
 
61 61
         $this->generatorFunction =
62
-            function (int $iterations, int $i = 1): \Generator {
62
+            function(int $iterations, int $i = 1): \Generator {
63 63
                 while ($i <= $iterations) {
64 64
                     yield $i++;
65 65
                 }
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
     {
84 84
         if ($iterations < self::MIN_ITERATIONS) {
85 85
             throw new \RuntimeException(
86
-                __CLASS__ .
87
-                ': Number of Iterations should be greater then ' .
86
+                __CLASS__.
87
+                ': Number of Iterations should be greater then '.
88 88
                 self::MIN_ITERATIONS
89 89
             );
90 90
         }
Please login to merge, or discard this patch.