Passed
Push — master ( 0c54c2...8e1bbc )
by Michael
02:17
created
src/Mapper/Definition/AnnotationProcessor/AttributeProcessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function validateMethodAttribute(AttributeAnnotation $annotation, \ReflectionMethod $method)
91 91
     {
92
-        if (! $method->isPublic()) {
92
+        if (!$method->isPublic()) {
93 93
             throw new \LogicException(sprintf(
94 94
                 'Attribute annotation can be applied only to non public method "%s".',
95 95
                 $method->getName()
@@ -205,13 +205,13 @@  discard block
 block discarded – undo
205 205
      */
206 206
     protected function processDataType(string $definition, Attribute $attribute)
207 207
     {
208
-        if (! preg_match(self::DATATYPE_PATTERN, $definition, $matches)) {
208
+        if (!preg_match(self::DATATYPE_PATTERN, $definition, $matches)) {
209 209
             throw new \LogicException(sprintf('Data-type definition "%s" is invalid.', $definition));
210 210
         }
211 211
 
212 212
         $attribute->setType($matches['type']);
213 213
 
214
-        if (! empty($matches['many'])) {
214
+        if (!empty($matches['many'])) {
215 215
             $attribute->setMany();
216 216
         }
217 217
 
Please login to merge, or discard this patch.