Completed
Push — master ( 7ac428...ba03ff )
by Karsten
10:44
created
src/Creator/CreateWithNonPublicConstructor.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
 
38 38
         // we call the private/protected constructor with the scope of the class that is defining it
39 39
         $closure = \Closure::bind(
40
-            function () use ($fqcn) {
40
+            function() use ($fqcn) {
41 41
                 return new $fqcn();
42 42
             },
43 43
             null,
Please login to merge, or discard this patch.
src/Slumber/Annotation/Slumber/AsObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         }
33 33
 
34 34
         // NOTICE: we also accept interfaces here, as the interface can define a Slumber\Polymorphic
35
-        if (! class_exists($this->value) && ! interface_exists($this->value)) {
35
+        if (!class_exists($this->value) && !interface_exists($this->value)) {
36 36
             throw $this->createValidationException(
37 37
                 $context,
38 38
                 "you provided the non-existing class '$this->value'"
Please login to merge, or discard this patch.
src/Slumber/Annotation/Slumber/PropertyMappingMarkerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     public function hasAlias()
43 43
     {
44
-        return ! empty($this->alias);
44
+        return !empty($this->alias);
45 45
     }
46 46
 
47 47
     /**
Please login to merge, or discard this patch.
src/Slumber/Annotation/Slumber/AsCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
             );
65 65
         }
66 66
 
67
-        if (! empty ($this->collection)) {
67
+        if (!empty ($this->collection)) {
68 68
 
69
-            if (! class_exists($this->collection)) {
69
+            if (!class_exists($this->collection)) {
70 70
                 throw $this->createValidationException(
71 71
                     $context,
72 72
                     "The collection class '{$this->collection}' does not exist'"
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
             $expectedType = Collection::class;
77 77
 
78
-            if (! is_a($this->collection, $expectedType, true)) {
78
+            if (!is_a($this->collection, $expectedType, true)) {
79 79
                 throw $this->createValidationException(
80 80
                     $context,
81 81
                     "The collection class '{$this->collection}' must be instance of '{$expectedType}'"
Please login to merge, or discard this patch.
src/Slumber/Annotation/ServiceInjectingSlumberAnnotation.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
             );
85 85
         }
86 86
 
87
-        if (! $context->getProvider()->has($service)) {
87
+        if (!$context->getProvider()->has($service)) {
88 88
             throw $this->createValidationException(
89 89
                 $context,
90 90
                 "you requested the non-existing service '$service'"
91 91
             );
92 92
         }
93 93
 
94
-        if (! class_exists($ofClass) && ! interface_exists($ofClass)) {
94
+        if (!class_exists($ofClass) && !interface_exists($ofClass)) {
95 95
             throw $this->createValidationException(
96 96
                 $context,
97 97
                 "you requested a service instance of the non-existing class or interface '$ofClass'"
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $instance = $this->getService($context->getProvider());
102 102
         $check    = new IsInstanceOf($ofClass);
103 103
 
104
-        if (! $check->__invoke($instance)) {
104
+        if (!$check->__invoke($instance)) {
105 105
             throw $this->createValidationException(
106 106
                 $context,
107 107
                 "the service '$service' is not of instance '$ofClass' but is '" .
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/EnumMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             return null;
49 49
         }
50 50
 
51
-        return (string)$value->getValue();
51
+        return (string) $value->getValue();
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/GeoJson/PointMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function slumber(Slumberer $slumberer, $value)
34 34
     {
35
-        if (! $value instanceof Point) {
35
+        if (!$value instanceof Point) {
36 36
             return null;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/Property/GeoJson/LineStringMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function slumber(Slumberer $slumberer, $value)
34 34
     {
35
-        if (! $value instanceof LineString) {
35
+        if (!$value instanceof LineString) {
36 36
             return null;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Slumber/Core/LookUp/CachedEntityConfigLookUp.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
         return $this->loadOrCreate(
54 54
             $cacheKey,
55
-            function () use ($cacheKey, $cls) {
55
+            function() use ($cacheKey, $cls) {
56 56
                 return $this->fetchFromCache($cacheKey, $cls);
57 57
             },
58
-            function () use ($cls) {
58
+            function() use ($cls) {
59 59
                 return $this->delegate->getEntityConfig($cls);
60 60
             },
61 61
             $cls
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
         if (($data = $this->cache->fetch($cacheKey)) !== false) {
104 104
             /** @noinspection NestedPositiveIfStatementsInspection */
105
-            if (! $this->debug || $this->isCacheFresh($cacheKey, $class)) {
105
+            if (!$this->debug || $this->isCacheFresh($cacheKey, $class)) {
106 106
                 return $data;
107 107
             }
108 108
         }
Please login to merge, or discard this patch.