Completed
Push — master ( 8e9524...06d85a )
by Karsten
04:13
created
src/DefaultPropertyMapper.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,8 +162,8 @@
 block discarded – undo
162 162
         if ($type instanceof Types\Compound) {
163 163
 
164 164
             return Psi::it($this->getCompoundChildren($type))
165
-                       ->filter(new IsInstanceOf(Types\Null_::class))
166
-                       ->count() > 0;
165
+                        ->filter(new IsInstanceOf(Types\Null_::class))
166
+                        ->count() > 0;
167 167
         }
168 168
 
169 169
         return false;
Please login to merge, or discard this patch.
src/DomainModel/Type/EnumType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
     }
62 62
 
63 63
     /**
64
-     * @return \string[]
64
+     * @return string[]
65 65
      */
66 66
     public function getValues()
67 67
     {
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         static $autoload = false;
65 65
 
66
-        if (! $autoload) {
66
+        if (!$autoload) {
67 67
             $autoload = true;
68 68
             /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
69 69
             AnnotationRegistry::registerLoader('class_exists');
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $this->propertyFilter = $propertyFilter;
74 74
         $this->propertyMapper = $propertyMapper;
75 75
 
76
-        $this->typeRegistry    = new TypeRegistry();
76
+        $this->typeRegistry = new TypeRegistry();
77 77
 
78 78
         $this->builtInTypes = [
79 79
             DomainModel\Type\AnyType::TYPE => new DomainModel\Type\AnyType(),
@@ -270,21 +270,21 @@  discard block
 block discarded – undo
270 270
         $properties = Psi::it($class->getProperties())
271 271
             // is it a non-static property
272 272
             ->filter(
273
-                function (\ReflectionProperty $p) { return $p->isStatic() === false; }
273
+                function(\ReflectionProperty $p) { return $p->isStatic() === false; }
274 274
             )
275 275
             // is the property declared by the Class or one of the Traits it uses ?
276 276
             ->filter(
277
-                function (\ReflectionProperty $p) use ($class) {
277
+                function(\ReflectionProperty $p) use ($class) {
278 278
                     return self::getDeclaringClassInInheritanceChain($class, $p) === $class;
279 279
                 }
280 280
             )
281 281
             // filter properties
282 282
             ->filter(
283
-                function (\ReflectionProperty $p) { return $this->propertyFilter->filterProperty($p); }
283
+                function(\ReflectionProperty $p) { return $this->propertyFilter->filterProperty($p); }
284 284
             )
285 285
             // map properties
286 286
             ->map(
287
-                function (\ReflectionProperty $p) { return $this->buildProperty($p); }
287
+                function(\ReflectionProperty $p) { return $this->buildProperty($p); }
288 288
             )
289 289
             // collect
290 290
             ->toArray();
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
     private static function getRealDeclaringClassInternal(\ReflectionClass $class, \ReflectionProperty $prop)
345 345
     {
346 346
         $declaringTrait = Psi::it($class->getTraits())
347
-            ->filter(function (\ReflectionClass $r) use ($prop) { return $r->hasProperty($prop->getName()); })
347
+            ->filter(function(\ReflectionClass $r) use ($prop) { return $r->hasProperty($prop->getName()); })
348 348
             ->getFirst();
349 349
 
350 350
         // We found it on the traits. No we need to recurse on traits to find exactly the one that was defining it
Please login to merge, or discard this patch.