Completed
Pull Request — master (#1198)
by Martin Poirier
11:27
created
src/Builder/DefaultDriverFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     public function createDriver(array $metadataDirs, Reader $annotationReader): DriverInterface
45 45
     {
46
-        if (!empty($metadataDirs)) {
46
+        if ( ! empty($metadataDirs)) {
47 47
             $fileLocator = new FileLocator($metadataDirs);
48 48
 
49 49
             $driver = new DriverChain([
Please login to merge, or discard this patch.
src/Handler/DateHandler.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
                     'type' => $type,
48 48
                     'format' => $format,
49 49
                     'direction' => GraphNavigatorInterface::DIRECTION_SERIALIZATION,
50
-                    'method' => 'serialize' . $type,
50
+                    'method' => 'serialize'.$type,
51 51
                 ];
52 52
             }
53 53
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 'type' => 'DateTimeInterface',
56 56
                 'direction' => GraphNavigatorInterface::DIRECTION_DESERIALIZATION,
57 57
                 'format' => $format,
58
-                'method' => 'deserializeDateTimeFrom' . ucfirst($format),
58
+                'method' => 'deserializeDateTimeFrom'.ucfirst($format),
59 59
             ];
60 60
         }
61 61
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
      */
224 224
     private function parseDateTime($data, array $type, bool $immutable = false): \DateTimeInterface
225 225
     {
226
-        $timezone = !empty($type['params'][1]) ? new \DateTimeZone($type['params'][1]) : $this->defaultTimezone;
226
+        $timezone = ! empty($type['params'][1]) ? new \DateTimeZone($type['params'][1]) : $this->defaultTimezone;
227 227
         $formats = $this->getDeserializationFormats($type);
228 228
 
229 229
         $formatTried = [];
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         throw new RuntimeException(sprintf(
249 249
             'Invalid datetime "%s", expected one of the format %s.',
250 250
             $data,
251
-            '"' . implode('", "', $formatTried) . '"'
251
+            '"'.implode('", "', $formatTried).'"'
252 252
         ));
253 253
     }
254 254
 
@@ -289,15 +289,15 @@  discard block
 block discarded – undo
289 289
         $format = 'P';
290 290
 
291 291
         if (0 < $dateInterval->y) {
292
-            $format .= $dateInterval->y . 'Y';
292
+            $format .= $dateInterval->y.'Y';
293 293
         }
294 294
 
295 295
         if (0 < $dateInterval->m) {
296
-            $format .= $dateInterval->m . 'M';
296
+            $format .= $dateInterval->m.'M';
297 297
         }
298 298
 
299 299
         if (0 < $dateInterval->d) {
300
-            $format .= $dateInterval->d . 'D';
300
+            $format .= $dateInterval->d.'D';
301 301
         }
302 302
 
303 303
         if (0 < $dateInterval->h || 0 < $dateInterval->i || 0 < $dateInterval->s) {
@@ -305,15 +305,15 @@  discard block
 block discarded – undo
305 305
         }
306 306
 
307 307
         if (0 < $dateInterval->h) {
308
-            $format .= $dateInterval->h . 'H';
308
+            $format .= $dateInterval->h.'H';
309 309
         }
310 310
 
311 311
         if (0 < $dateInterval->i) {
312
-            $format .= $dateInterval->i . 'M';
312
+            $format .= $dateInterval->i.'M';
313 313
         }
314 314
 
315 315
         if (0 < $dateInterval->s) {
316
-            $format .= $dateInterval->s . 'S';
316
+            $format .= $dateInterval->s.'S';
317 317
         }
318 318
 
319 319
         if ('P' === $format) {
Please login to merge, or discard this patch.
src/Exclusion/GroupsExclusionStrategy.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         foreach ($groups as $key => $value) {
34 34
             if (is_string($key) && is_array($value)) {
35 35
                 $this->nestedGroups = true;
36
-                $this->prepare($value, $path . '.' . $key);
36
+                $this->prepare($value, $path.'.'.$key);
37 37
                 continue;
38 38
             }
39 39
 
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $groups = $property->groups ?: [self::DEFAULT_GROUP];
64 64
 
65
-        if (!$this->nestedGroups) {
65
+        if ( ! $this->nestedGroups) {
66 66
             // Group are not nested so we
67 67
             $path = 'root';
68 68
         } else {
69 69
             $path = $this->buildPathFromContext($navigatorContext);
70 70
         }
71 71
 
72
-        if(!isset($this->parsedGroups[$path])) {
72
+        if ( ! isset($this->parsedGroups[$path])) {
73 73
             // If we reach that path it's because we were allowed so we fallback on default group
74 74
             $this->parsedGroups[$path] = [self::DEFAULT_GROUP => true];
75 75
         }
@@ -94,13 +94,13 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function getGroupsFor(Context $navigatorContext): array
96 96
     {
97
-        if (!$this->nestedGroups) {
97
+        if ( ! $this->nestedGroups) {
98 98
             return array_keys($this->parsedGroups['root']);
99 99
         }
100 100
 
101 101
         $path = $this->buildPathFromContext($navigatorContext);
102 102
 
103
-        if (!isset($this->parsedGroups[$path])) {
103
+        if ( ! isset($this->parsedGroups[$path])) {
104 104
             return [self::DEFAULT_GROUP];
105 105
         }
106 106
 
Please login to merge, or discard this patch.