Passed
Pull Request — master (#7)
by
unknown
03:26
created
Category
src/Time/Stopwatch.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $events = array_filter(
89 89
             $this->getEvents(),
90
-            static function (array $event) use ($from, $to): bool {
90
+            static function(array $event) use ($from, $to): bool {
91 91
                 return in_array($event[1], [$from, $to], true);
92 92
             }
93 93
         );
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
             throw new InvalidArgumentException('Unable to find the events.');
97 97
         }
98 98
 
99
-        $fromKey = $this->arrayFind($events, static function (array $event) use ($from): bool {
99
+        $fromKey = $this->arrayFind($events, static function(array $event) use ($from): bool {
100 100
             return $event[1] === $from;
101 101
         });
102
-        $toKey = $this->arrayFind($events, static function (array $event) use ($to): bool {
102
+        $toKey = $this->arrayFind($events, static function(array $event) use ($to): bool {
103 103
             return $event[1] === $to;
104 104
         });
105 105
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         array_shift($events);
114 114
 
115 115
         $events = array_map(
116
-            static function (array $event): TimeInterface {
116
+            static function(array $event): TimeInterface {
117 117
                 return $event[0];
118 118
             },
119 119
             $events
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 
161 161
         $events = array_filter(
162 162
             $events,
163
-            static function (array $event) use ($id): bool {
163
+            static function(array $event) use ($id): bool {
164 164
                 return $event[1] === $id;
165 165
             }
166 166
         );
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
         return null !== $this
208 208
             ->arrayFind(
209 209
                 $this->getEvents(),
210
-                static function (array $v): bool {
210
+                static function(array $v): bool {
211 211
                     return 'start' === $v[1];
212 212
                 }
213 213
             );
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
         return null !== $this
219 219
             ->arrayFind(
220 220
                 $this->getEvents(),
221
-                static function (array $v): bool {
221
+                static function(array $v): bool {
222 222
                     return 'stop' === $v[1];
223 223
                 }
224 224
             );
Please login to merge, or discard this patch.