Completed
Push — main ( 5558cb...0c0d17 )
by Tom
27s queued 14s
created
src/Attribute/Association.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use Attribute;
8 8
 
9
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
9
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
10 10
 class Association
11 11
 {
12 12
     use ExcludeCriteria;
Please login to merge, or discard this patch.
src/Attribute/Entity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use Attribute;
8 8
 
9
-#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
9
+#[Attribute(Attribute::TARGET_CLASS|Attribute::IS_REPEATABLE)]
10 10
 final class Entity
11 11
 {
12 12
     use ExcludeCriteria;
Please login to merge, or discard this patch.
src/Attribute/Field.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use Attribute;
8 8
 
9
-#[Attribute(Attribute::TARGET_PROPERTY | Attribute::IS_REPEATABLE)]
9
+#[Attribute(Attribute::TARGET_PROPERTY|Attribute::IS_REPEATABLE)]
10 10
 class Field
11 11
 {
12 12
     use ExcludeCriteria;
Please login to merge, or discard this patch.
src/Metadata/MetadataFactory.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
             // Only one matching instance per group is allowed
85 85
             assert(
86
-                ! $entityInstance,
86
+                !$entityInstance,
87 87
                 'Duplicate attribute found for entity '
88 88
                 . $reflectionClass->getName() . ', group ' . $instance->getGroup(),
89 89
             );
@@ -100,8 +100,7 @@  discard block
 block discarded – undo
100 100
                 'excludeCriteria' => $instance->getExcludeCriteria(),
101 101
                 'description' => $instance->getDescription(),
102 102
                 'typeName' => $instance->getTypeName()
103
-                    ? $this->appendGroupSuffix($instance->getTypeName()) :
104
-                    $this->getTypeName($reflectionClass->getName()),
103
+                    ? $this->appendGroupSuffix($instance->getTypeName()) : $this->getTypeName($reflectionClass->getName()),
105 104
             ];
106 105
         }
107 106
     }
@@ -124,7 +123,7 @@  discard block
 block discarded – undo
124 123
 
125 124
                 // Only one matching instance per group is allowed
126 125
                 assert(
127
-                    ! $fieldInstance,
126
+                    !$fieldInstance,
128 127
                     'Duplicate attribute found for field '
129 128
                     . $fieldName . ', group ' . $instance->getGroup(),
130 129
                 );
@@ -175,7 +174,7 @@  discard block
 block discarded – undo
175 174
 
176 175
                 // Only one matching instance per group is allowed
177 176
                 assert(
178
-                    ! $associationInstance,
177
+                    !$associationInstance,
179 178
                     'Duplicate attribute found for association '
180 179
                     . $associationName . ', group ' . $instance->getGroup(),
181 180
                 );
Please login to merge, or discard this patch.
src/AbstractContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     {
29 29
         $id = strtolower($id);
30 30
 
31
-        if (! $this->has($id)) {
31
+        if (!$this->has($id)) {
32 32
             throw new Error($id . ' is not registered');
33 33
         }
34 34
 
Please login to merge, or discard this patch.
src/Services.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
             ->set(EntityManager::class, $entityManager)
34 34
             ->set(
35 35
                 Config::class,
36
-                static function () use ($config) {
37
-                    if (! $config) {
36
+                static function() use ($config) {
37
+                    if (!$config) {
38 38
                         $config = new Config();
39 39
                     }
40 40
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             )
52 52
             ->set(
53 53
                 'metadata',
54
-                static function (AbstractContainer $container) use ($metadata) {
54
+                static function(AbstractContainer $container) use ($metadata) {
55 55
                     return (new Metadata\MetadataFactory(
56 56
                         $metadata,
57 57
                         $container->get(EntityManager::class),
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             )
64 64
             ->set(
65 65
                 Metadata\GlobalEnable::class,
66
-                static function (AbstractContainer $container) {
66
+                static function(AbstractContainer $container) {
67 67
                     return new Metadata\GlobalEnable(
68 68
                         $container->get(EntityManager::class),
69 69
                         $container->get(Config::class),
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             )
74 74
             ->set(
75 75
                 Resolve\FieldResolver::class,
76
-                static function (AbstractContainer $container) {
76
+                static function(AbstractContainer $container) {
77 77
                     return new Resolve\FieldResolver(
78 78
                         $container->get(Config::class),
79 79
                         $container->get(Type\TypeManager::class),
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             )
83 83
             ->set(
84 84
                 Resolve\ResolveCollectionFactory::class,
85
-                static function (AbstractContainer $container) {
85
+                static function(AbstractContainer $container) {
86 86
                     return new Resolve\ResolveCollectionFactory(
87 87
                         $container->get(EntityManager::class),
88 88
                         $container->get(Config::class),
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             )
96 96
             ->set(
97 97
                 Resolve\ResolveEntityFactory::class,
98
-                static function (AbstractContainer $container) {
98
+                static function(AbstractContainer $container) {
99 99
                     return new Resolve\ResolveEntityFactory(
100 100
                         $container->get(Config::class),
101 101
                         $container->get(EntityManager::class),
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             )
107 107
             ->set(
108 108
                 Criteria\CriteriaFactory::class,
109
-                static function (AbstractContainer $container) {
109
+                static function(AbstractContainer $container) {
110 110
                     return new Criteria\CriteriaFactory(
111 111
                         $container->get(Config::class),
112 112
                         $container->get(EntityManager::class),
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             )
118 118
             ->set(
119 119
                 Hydrator\HydratorFactory::class,
120
-                static function (AbstractContainer $container) {
120
+                static function(AbstractContainer $container) {
121 121
                     return new Hydrator\HydratorFactory(
122 122
                         $container->get(EntityManager::class),
123 123
                         $container->get(Type\TypeManager::class),
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             )
127 127
             ->set(
128 128
                 Input\InputFactory::class,
129
-                static function (AbstractContainer $container) {
129
+                static function(AbstractContainer $container) {
130 130
                     return new Input\InputFactory(
131 131
                         $container->get(Config::class),
132 132
                         $container->get(EntityManager::class),
Please login to merge, or discard this patch.
src/Criteria/CriteriaFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
         // Limit association filters
66 66
         if ($associationName) {
67 67
             $excludeCriteria = $associationMetadata['excludeCriteria'];
68
-            $allowedFilters  = array_filter($allowedFilters, static function ($value) use ($excludeCriteria) {
69
-                return ! in_array($value, $excludeCriteria);
68
+            $allowedFilters  = array_filter($allowedFilters, static function($value) use ($excludeCriteria) {
69
+                return !in_array($value, $excludeCriteria);
70 70
             });
71 71
         }
72 72
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
         foreach ($classMetadata->getFieldNames() as $fieldName) {
96 96
             // Only process fields that are in the graphql metadata
97
-            if (! in_array($fieldName, array_keys($entityMetadata['fields']))) {
97
+            if (!in_array($fieldName, array_keys($entityMetadata['fields']))) {
98 98
                 continue;
99 99
             }
100 100
 
@@ -113,8 +113,8 @@  discard block
 block discarded – undo
113 113
                 $fieldExcludeCriteria = $entityMetadata['fields'][$fieldName]['excludeCriteria'];
114 114
                 $allowedFilters       = array_filter(
115 115
                     $allowedFilters,
116
-                    static function ($value) use ($fieldExcludeCriteria) {
117
-                        return ! in_array($value, $fieldExcludeCriteria);
116
+                    static function($value) use ($fieldExcludeCriteria) {
117
+                        return !in_array($value, $fieldExcludeCriteria);
118 118
                     },
119 119
                 );
120 120
             }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
         // Add eq filter for to-one associations
140 140
         foreach ($classMetadata->getAssociationNames() as $associationName) {
141 141
             // Only process fields which are in the graphql metadata
142
-            if (! in_array($associationName, array_keys($entityMetadata['fields']))) {
142
+            if (!in_array($associationName, array_keys($entityMetadata['fields']))) {
143 143
                 continue;
144 144
             }
145 145
 
Please login to merge, or discard this patch.
src/Hydrator/Filter/Password.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
             'secret',
19 19
         ];
20 20
 
21
-        return ! in_array($property, $excludeFields);
21
+        return !in_array($property, $excludeFields);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Hydrator/Strategy/AbstractCollectionStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         $object = $this->getObject();
112 112
         $getter = 'get' . $this->getInflector()->classify($this->getCollectionName());
113 113
 
114
-        if (! method_exists($object, $getter)) {
114
+        if (!method_exists($object, $getter)) {
115 115
             throw new InvalidArgumentException(
116 116
                 sprintf(
117 117
                     'The getter %s to access collection %s in object %s does not exist',
Please login to merge, or discard this patch.