Completed
Push — master ( 57558f...bc6de4 )
by Pavel
03:43
created
src/Bankiru/Api/Doctrine/Rpc/Method/EntityMethodProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             return $this->provider->getMethod($method);
46 46
         }
47 47
 
48
-        return $this->entityPath.$this->pathSeparator.$method;
48
+        return $this->entityPath . $this->pathSeparator . $method;
49 49
     }
50 50
 
51 51
     /**
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Persister/ApiPersister.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                 /** @var EntityMetadata $target */
111 111
                 $target = $this->manager->getClassMetadata($mapping['target']);
112 112
 
113
-                $converter = function ($value) use ($target) {
113
+                $converter = function($value) use ($target) {
114 114
                     if (!is_object($value)) {
115 115
                         return $value;
116 116
                     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         $targetMetadata = $this->manager->getClassMetadata($targetClass);
275 275
 
276 276
         if ($this->metadata->isIdentifierComposite) {
277
-            throw new \BadMethodCallException(__METHOD__.' on composite reference is not supported');
277
+            throw new \BadMethodCallException(__METHOD__ . ' on composite reference is not supported');
278 278
         }
279 279
 
280 280
         $criteria = [
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/EntityMetadataFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             throw MappingException::unknownAlias($namespaceAlias);
55 55
         }
56 56
 
57
-        return $this->aliases[$namespaceAlias].$simpleClassName;
57
+        return $this->aliases[$namespaceAlias] . $simpleClassName;
58 58
     }
59 59
 
60 60
     /** {@inheritdoc} */
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Mapping/Driver/YmlMetadataDriver.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 
66 66
             assert(
67 67
                 in_array(Searcher::class, class_implements($metadata->searcher), true),
68
-                'Searcher '.$metadata->searcher.' should implement '.Searcher::class
68
+                'Searcher ' . $metadata->searcher . ' should implement ' . Searcher::class
69 69
             );
70 70
 
71 71
             assert(
72 72
                 in_array(Finder::class, class_implements($metadata->finder), true),
73
-                'Finder '.$metadata->finder.' should implement '.Finder::class
73
+                'Finder ' . $metadata->finder . ' should implement ' . Finder::class
74 74
             );
75 75
 
76 76
             $methodProvider = null;
@@ -80,8 +80,7 @@  discard block
 block discarded – undo
80 80
             if (array_key_exists('entityPath', $element['client'])) {
81 81
                 $pathSeparator  =
82 82
                     array_key_exists('entityPathSeparator', $element['client']) ?
83
-                        $element['client']['entityPathSeparator'] :
84
-                        null;
83
+                        $element['client']['entityPathSeparator'] : null;
85 84
                 $methodProvider =
86 85
                     new EntityMethodProvider($element['client']['entityPath'], $pathSeparator, $methodProvider);
87 86
             }
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/Utility/ReflectionPropertiesGetter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,9 +155,9 @@
 block discarded – undo
155 155
         }
156 156
 
157 157
         if ($property->isProtected()) {
158
-            return "\0*\0".$propertyName;
158
+            return "\0*\0" . $propertyName;
159 159
         }
160 160
 
161
-        return "\0".$property->getDeclaringClass()->getName()."\0".$propertyName;
161
+        return "\0" . $property->getDeclaringClass()->getName() . "\0" . $propertyName;
162 162
     }
163 163
 }
Please login to merge, or discard this patch.