Completed
Push — master ( bb0f1c...d5b4f2 )
by Karsten
04:20
created
src/Slumber/Core/Codec/Property/LocalDateMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             }
76 76
 
77 77
             if (IsDateString::isValidDateString($value['date'])) {
78
-                return new LocalDate($value['date'],  $tz);
78
+                return new LocalDate($value['date'], $tz);
79 79
             }
80 80
 
81 81
             return null;
Please login to merge, or discard this patch.
src/Slumber/Core/Codec/ArrayCodec.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
      */
78 78
     public function awake($data, $cls)
79 79
     {
80
-        if ($data === null || ! \is_array($data)) {
80
+        if ($data === null || !\is_array($data)) {
81 81
             return null;
82 82
         }
83 83
 
84
-        if (! $cls instanceof \ReflectionClass) {
84
+        if (!$cls instanceof \ReflectionClass) {
85 85
             $cls = new \ReflectionClass($cls);
86 86
         }
87 87
 
@@ -96,11 +96,11 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function awakeList($data, $cls)
98 98
     {
99
-        if (! \is_array($data) && ! $data instanceof \Traversable) {
99
+        if (!\is_array($data) && !$data instanceof \Traversable) {
100 100
             return [];
101 101
         }
102 102
 
103
-        if (! $cls instanceof \ReflectionClass) {
103
+        if (!$cls instanceof \ReflectionClass) {
104 104
             $cls = new \ReflectionClass($cls);
105 105
         }
106 106
 
Please login to merge, or discard this patch.
src/Creator/CreatePolymorphic.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 create($data = null)
43 43
     {
44
-        if (! \is_array($data) && ! $data instanceof \ArrayAccess) {
44
+        if (!\is_array($data) && !$data instanceof \ArrayAccess) {
45 45
             return null;
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
@@ -70,9 +70,9 @@  discard block
 block discarded – undo
70 70
 
71 71
     public function validateCollectionParam(ValidationContext $context)
72 72
     {
73
-        if (! empty ($this->collection)) {
73
+        if (!empty ($this->collection)) {
74 74
 
75
-            if (! class_exists($this->collection)) {
75
+            if (!class_exists($this->collection)) {
76 76
                 throw $this->createValidationException(
77 77
                     $context,
78 78
                     "The collection class '{$this->collection}' does not exist'"
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
             $expectedType = Collection::class;
83 83
 
84
-            if (! is_a($this->collection, $expectedType, true)) {
84
+            if (!is_a($this->collection, $expectedType, true)) {
85 85
                 throw $this->createValidationException(
86 86
                     $context,
87 87
                     "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
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         $service = $this->getServiceDefinition();
114 114
 
115
-        if (! $context->getProvider()->has($service)) {
115
+        if (!$context->getProvider()->has($service)) {
116 116
             throw $this->createValidationException(
117 117
                 $context,
118 118
                 "you requested the non-existing service '$service'"
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     {
125 125
         $ofClass = $this->getServiceClassDefinition();
126 126
 
127
-        if (! class_exists($ofClass) && ! interface_exists($ofClass)) {
127
+        if (!class_exists($ofClass) && !interface_exists($ofClass)) {
128 128
             throw $this->createValidationException(
129 129
                 $context,
130 130
                 "you requested a service instance of the non-existing class or interface '$ofClass'"
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $instance = $this->getService($context->getProvider());
141 141
         $check    = new IsInstanceOf($ofClass);
142 142
 
143
-        if (! $check->__invoke($instance)) {
143
+        if (!$check->__invoke($instance)) {
144 144
             throw $this->createValidationException(
145 145
                 $context,
146 146
                 "The service '$service' is not an instance of '$ofClass' but is '" .
Please login to merge, or discard this patch.
src/Slumber/Core/LookUp/AnnotatedEntityConfigReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             ->filter(new Psi\IsInstanceOf(ClassCreatorMarker::class))
104 104
             ->each($validationContext)
105 105
             // map the first one to a Creator
106
-            ->map(function (ClassCreatorMarker $marker) { return $marker->getCreator($this->creatorFactory); })
106
+            ->map(function(ClassCreatorMarker $marker) { return $marker->getCreator($this->creatorFactory); })
107 107
             // or get the default creator
108 108
             ->getFirst($this->creatorFactory->create($subject));
109 109
     }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
             $propertyName = $property->getName();
157 157
 
158
-            if (! isset($result[$propertyName])) {
158
+            if (!isset($result[$propertyName])) {
159 159
 
160 160
                 $marker = $this->getPropertyAnnotationsOfType($subject, $base, $property);
161 161
 
Please login to merge, or discard this patch.