Completed
Pull Request — master (#1320)
by
unknown
03:30 queued 13s
created
src/Annotation/ExclusionPolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $value = $policy;
38 38
         }
39 39
 
40
-        if (!\is_string($value)) {
40
+        if ( ! \is_string($value)) {
41 41
             throw new RuntimeException('Exclusion policy value must be of string type.');
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Annotation/ReadOnly.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
             }
29 29
         }
30 30
 
31
-        $this->readOnly =  $readOnly;
31
+        $this->readOnly = $readOnly;
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/SerializerBuilder.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     private function getAccessorStrategy(): AccessorStrategyInterface
215 215
     {
216
-        if (!$this->accessorStrategy) {
216
+        if ( ! $this->accessorStrategy) {
217 217
             $this->accessorStrategy = new DefaultAccessorStrategy($this->expressionEvaluator);
218 218
         }
219 219
 
@@ -250,11 +250,11 @@  discard block
 block discarded – undo
250 250
 
251 251
     public function setCacheDir(string $dir): self
252 252
     {
253
-        if (!is_dir($dir)) {
253
+        if ( ! is_dir($dir)) {
254 254
             $this->createDir($dir);
255 255
         }
256 256
 
257
-        if (!is_writable($dir)) {
257
+        if ( ! is_writable($dir)) {
258 258
             throw new InvalidArgumentException(sprintf('The cache directory "%s" is not writable.', $dir));
259 259
         }
260 260
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
     public function setMetadataDirs(array $namespacePrefixToDirMap): self
377 377
     {
378 378
         foreach ($namespacePrefixToDirMap as $dir) {
379
-            if (!is_dir($dir)) {
379
+            if ( ! is_dir($dir)) {
380 380
                 throw new InvalidArgumentException(sprintf('The directory "%s" does not exist.', $dir));
381 381
             }
382 382
         }
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
      */
415 415
     public function addMetadataDir(string $dir, string $namespacePrefix = ''): self
416 416
     {
417
-        if (!is_dir($dir)) {
417
+        if ( ! is_dir($dir)) {
418 418
             throw new InvalidArgumentException(sprintf('The directory "%s" does not exist.', $dir));
419 419
         }
420 420
 
@@ -453,11 +453,11 @@  discard block
 block discarded – undo
453 453
      */
454 454
     public function replaceMetadataDir(string $dir, string $namespacePrefix = ''): self
455 455
     {
456
-        if (!is_dir($dir)) {
456
+        if ( ! is_dir($dir)) {
457 457
             throw new InvalidArgumentException(sprintf('The directory "%s" does not exist.', $dir));
458 458
         }
459 459
 
460
-        if (!isset($this->metadataDirs[$namespacePrefix])) {
460
+        if ( ! isset($this->metadataDirs[$namespacePrefix])) {
461 461
             throw new InvalidArgumentException(sprintf('There is no directory configured for namespace prefix "%s". Please use addMetadataDir() for adding new directories.', $namespacePrefix));
462 462
         }
463 463
 
@@ -534,8 +534,8 @@  discard block
 block discarded – undo
534 534
                 $annotationReader = new AnnotationReader();
535 535
 
536 536
                 if (null !== $this->cacheDir) {
537
-                    $this->createDir($this->cacheDir . '/annotations');
538
-                    $annotationsCache = new FilesystemCache($this->cacheDir . '/annotations');
537
+                    $this->createDir($this->cacheDir.'/annotations');
538
+                    $annotationsCache = new FilesystemCache($this->cacheDir.'/annotations');
539 539
                     $annotationReader = new CachedReader($annotationReader, $annotationsCache, $this->debug);
540 540
                 }
541 541
             }
@@ -562,19 +562,19 @@  discard block
 block discarded – undo
562 562
         if (null !== $this->metadataCache) {
563 563
             $metadataFactory->setCache($this->metadataCache);
564 564
         } elseif (null !== $this->cacheDir) {
565
-            $this->createDir($this->cacheDir . '/metadata');
566
-            $metadataFactory->setCache(new FileCache($this->cacheDir . '/metadata'));
565
+            $this->createDir($this->cacheDir.'/metadata');
566
+            $metadataFactory->setCache(new FileCache($this->cacheDir.'/metadata'));
567 567
         }
568 568
 
569
-        if (!$this->handlersConfigured) {
569
+        if ( ! $this->handlersConfigured) {
570 570
             $this->addDefaultHandlers();
571 571
         }
572 572
 
573
-        if (!$this->listenersConfigured) {
573
+        if ( ! $this->listenersConfigured) {
574 574
             $this->addDefaultListeners();
575 575
         }
576 576
 
577
-        if (!$this->visitorsAdded) {
577
+        if ( ! $this->visitorsAdded) {
578 578
             $this->addDefaultSerializationVisitors();
579 579
             $this->addDefaultDeserializationVisitors();
580 580
         }
Please login to merge, or discard this patch.