Completed
Pull Request — master (#4)
by Arthur
03:44
created
src/Schema/SchemaFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
 
224 224
     /**
225 225
      * @param Field[]                             $fields
226
-     * @param AbstractType|FieldContainer[]|Field $parent
226
+     * @param AbstractType $parent
227 227
      */
228 228
     private function prepareFields(array $fields, AbstractType $parent)
229 229
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         $mapping = $interface->getChildrenClassMapping();
171 171
 
172 172
         if (!empty($mapping)) {
173
-            $resolveType = function ($object) use ($mapping) {
173
+            $resolveType = function($object) use ($mapping) {
174 174
                 foreach ($mapping as $class => $typeName) {
175 175
                     if ($object instanceof $class) {
176 176
                         return $this->typeResolver->getType($typeName);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
                 );
242 242
             }
243 243
             $field->setResolvedType(
244
-                function () use ($typeName) {
244
+                function() use ($typeName) {
245 245
                     return $this->typeResolver->resolveType($typeName);
246 246
                 }
247 247
             );
Please login to merge, or discard this patch.
src/Mapping/Driver/YamlDriver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
             ->setResolveConfig(isset($mapping['resolve']) ? $mapping['resolve'] : []);
126 126
 
127 127
         if (!empty($mapping['interfaces'])) {
128
-            $type->setInterfaces((array) $mapping['interfaces']);
128
+            $type->setInterfaces((array)$mapping['interfaces']);
129 129
         }
130 130
 
131 131
         if (isset($mapping['values'])) {
Please login to merge, or discard this patch.
src/Mapping/Guesser/PropertyGuesser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
         $property  = $field->getProperty() ?: $field->getName();
43 43
         $camelName = StringHelper::camelize($property);
44 44
 
45
-        $getter    = 'get' . $camelName;
45
+        $getter    = 'get'.$camelName;
46 46
         $getsetter = lcfirst($camelName);
47
-        $isser     = 'is' . $camelName;
48
-        $hasser    = 'has' . $camelName;
47
+        $isser     = 'is'.$camelName;
48
+        $hasser    = 'has'.$camelName;
49 49
         $test      = [$getter, $getsetter, $isser, $hasser];
50 50
 
51 51
         $reflMethods = $class->getMethods(\ReflectionMethod::IS_PUBLIC);
Please login to merge, or discard this patch.