Failed Conditions
Push — master ( dbaf44...bfd3f9 )
by Jakub
03:46
created
src/PhpDocumentor/ReflectionExtractor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     private function propertyFactory(\ReflectionClass $class, $docBlockFactory, $classContext): callable
54 54
     {
55
-        return function (\ReflectionProperty $propertyReflection) use ($docBlockFactory, $classContext, $class): ?Property {
55
+        return function(\ReflectionProperty $propertyReflection) use ($docBlockFactory, $classContext, $class): ?Property {
56 56
             $context = $this->getTraitContextIfExists($propertyReflection) ?? $classContext;
57 57
 
58 58
             if ($propertyReflection->getDeclaringClass()->getName() === $class->getName()) {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     private function buildFilter(callable $filter): callable
67 67
     {
68
-        return function ($property) use ($filter): bool {
68
+        return function($property) use ($filter): bool {
69 69
             return $property instanceof Property && $filter($property);
70 70
         };
71 71
     }
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             return null !== $var ? new Property(
90 90
                 $propertyReflection->getName(),
91 91
                 \array_map(
92
-                    function ($type) {
92
+                    function($type) {
93 93
                         return \ltrim($type, '\\');
94 94
                     },
95 95
                     \explode('|', $var)
Please login to merge, or discard this patch.
src/TestCase/TestDoubles.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
     private function createTestDouble(Property $property)
24 24
     {
25 25
         if ($property->hasType(ObjectProphecy::class)) {
26
-            return $this->createTestDoubleWithProphecy($property->getTypesFiltered(function (string $type) {
26
+            return $this->createTestDoubleWithProphecy($property->getTypesFiltered(function(string $type) {
27 27
                 return ObjectProphecy::class !== $type;
28 28
             }));
29 29
         }
30 30
         if ($property->hasType(MockObject::class)) {
31
-            return $this->createTestDoubleWithPhpunit($property->getTypesFiltered(function (string $type) {
31
+            return $this->createTestDoubleWithPhpunit($property->getTypesFiltered(function(string $type) {
32 32
                 return MockObject::class !== $type;
33 33
             }));
34 34
         }
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     private function getTestDoubleProperties(): array
64 64
     {
65
-        return (new ReflectionExtractor())->extract($this, function (Property $property) {
65
+        return (new ReflectionExtractor())->extract($this, function(Property $property) {
66 66
             return $property->hasType(ObjectProphecy::class) || $property->hasType(MockObject::class);
67 67
         });
68 68
     }
Please login to merge, or discard this patch.