Completed
Branch master (6bc2c0)
by Kuba
04:06
created
Category
src/Annotation/Visitor/AnnotationConfigVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     {
9 9
         return array_filter(
10 10
             $config,
11
-            function ($key) {
11
+            function($key) {
12 12
                 return !in_array($key, ['idField', 'targetClass'], true);
13 13
             },
14 14
             ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.
src/Query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function getResult(): array
30 30
     {
31 31
         return array_map(
32
-            function (array $data) {
32
+            function(array $data) {
33 33
                 $entity = ReflectionSingleton::getInstance($this->entityName)->newInstanceWithoutConstructor();
34 34
                 $entityData = array_merge(
35 35
                     $data['_source'],
Please login to merge, or discard this patch.
src/Extractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     {
12 12
         $ids = array_keys(array_filter(
13 13
             ClassMetadata::getRawConfig($entityClass),
14
-            function (array $values) {
14
+            function(array $values) {
15 15
                 return !empty($values[Id::KEY_NAME]);
16 16
             }
17 17
         ));
Please login to merge, or discard this patch.
src/Hydrator/Hydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $class = get_class($object);
42 42
 
43 43
         $metadata = ClassMetadata::getRawConfig($class);
44
-        $nested = array_filter($metadata, function ($item) {
44
+        $nested = array_filter($metadata, function($item) {
45 45
             return array_key_exists('targetClass', $item);
46 46
         });
47 47
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         foreach (array_intersect_key($config, $data) as $field => $metadata) {
62 62
             $idField = array_keys(array_filter(
63 63
                 $metadata['properties'],
64
-                function ($item) {
64
+                function($item) {
65 65
                     return array_key_exists('idField', $item);
66 66
                 }
67 67
             ));
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->hydrator = new Reflection();
89 89
         $this->hydrator->addStrategy('*', new HydrationStrategy($this));
90 90
         if ($rootLevel) {
91
-            $this->hydrator->addFilter('id', function ($property) use ($object) {
91
+            $this->hydrator->addFilter('id', function($property) use ($object) {
92 92
                 return
93 93
                     in_array($property, $this->extractor->getFieldNames(get_class($object)), true)
94 94
                     && $property !== $this->extractor->getIdName(get_class($object));
Please login to merge, or discard this patch.