Passed
Push — master ( 873fd5...b9799d )
by Pavel
03:52
created
Dehydration/SearchDehydrator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 /** @var EntityMetadata $target */
110 110
                 $target = $this->manager->getClassMetadata($mapping['targetEntity']);
111 111
 
112
-                $converter = function ($value) use ($target) {
112
+                $converter = function($value) use ($target) {
113 113
                     if (!is_object($value)) {
114 114
                         return $value;
115 115
                     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                     $values = $converter($values);
136 136
                 }
137 137
             } else {
138
-                $caster = function ($value) use ($field) {
138
+                $caster = function($value) use ($field) {
139 139
                     $type = $this->manager
140 140
                         ->getConfiguration()
141 141
                         ->getTypeRegistry()->get($this->metadata->getTypeOfField($field));
Please login to merge, or discard this patch.
Mapping/EntityMetadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -775,7 +775,7 @@
 block discarded – undo
775 775
             $mapping['options'] = [];
776 776
         }
777 777
 
778
-        $this->apiFieldNames[$mapping['field']]  = $mapping['apiField'];
778
+        $this->apiFieldNames[$mapping['field']] = $mapping['apiField'];
779 779
         $this->fieldNames[$mapping['apiField']] = $mapping['field'];
780 780
 
781 781
         //        if (isset($this->fieldNames[$mapping['columnName']]) || ($this->discriminatorField && $this->discriminatorField['name'] === $mapping['apiField'])) {
Please login to merge, or discard this patch.
Mapping/Driver/YmlMetadataDriver.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
             if (array_key_exists('entityPath', $element['client'])) {
79 79
                 $pathSeparator  =
80 80
                     array_key_exists('entityPathSeparator', $element['client']) ?
81
-                        $element['client']['entityPathSeparator'] :
82
-                        EntityMethodProvider::DEFAULT_PATH_SEPARATOR;
81
+                        $element['client']['entityPathSeparator'] : EntityMethodProvider::DEFAULT_PATH_SEPARATOR;
83 82
                 $methodProvider =
84 83
                     new EntityMethodProvider($element['client']['entityPath'], $pathSeparator, $methodProvider);
85 84
             }
@@ -143,7 +142,7 @@  discard block
 block discarded – undo
143 142
      */
144 143
     protected function mapAssociation(EntityMetadata $metadata, $type, $name, $association, $associationIds)
145 144
     {
146
-        $mapping           = $this->fieldToArray($name, $association);
145
+        $mapping = $this->fieldToArray($name, $association);
147 146
         $mapping['targetEntity'] = $association['targetEntity'];
148 147
         $mapping['sourceEntity'] = $metadata->getName();
149 148
         if (isset($association['fetch'])) {
Please login to merge, or discard this patch.