Completed
Pull Request — master (#14)
by Pavel
03:24
created
Cache/KeyStrategyInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
      *
25 25
      * @return string
26 26
      */
27
-    public function getEntityKey(ApiMetadata $metadata,array $identifier);
27
+    public function getEntityKey(ApiMetadata $metadata, array $identifier);
28 28
 }
Please login to merge, or discard this patch.
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.
Mapping/Driver/YmlMetadataDriver.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
             if (array_key_exists('entityPath', $element['client'])) {
88 88
                 $pathSeparator  =
89 89
                     array_key_exists('entityPathSeparator', $element['client']) ?
90
-                        $element['client']['entityPathSeparator'] :
91
-                        null;
90
+                        $element['client']['entityPathSeparator'] : null;
92 91
                 $methodProvider = new EntityMethodProvider($element['client']['entityPath'], $pathSeparator);
93 92
             }
94 93
 
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
@@ -491,7 +491,7 @@
 block discarded – undo
491 491
         }
492 492
 
493 493
         // Fetch mode. Default fetch mode to LAZY, if not set.
494
-        if ( ! isset($mapping['fetch'])) {
494
+        if (!isset($mapping['fetch'])) {
495 495
             $mapping['fetch'] = self::FETCH_LAZY;
496 496
         }
497 497
 
Please login to merge, or discard this patch.
Proxy/ApiCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         return array_udiff_assoc(
205 205
             $this->snapshot,
206 206
             $this->collection->toArray(),
207
-            function ($a, $b) {
207
+            function($a, $b) {
208 208
                 return $a === $b ? 0 : 1;
209 209
             }
210 210
         );
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         return array_udiff_assoc(
222 222
             $this->collection->toArray(),
223 223
             $this->snapshot,
224
-            function ($a, $b) {
224
+            function($a, $b) {
225 225
                 return $a === $b ? 0 : 1;
226 226
             }
227 227
         );
Please login to merge, or discard this patch.
Proxy/ProxyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     {
90 90
         $wakeupProxy = $classMetadata->getReflectionClass()->hasMethod('__wakeup');
91 91
 
92
-        return function (Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
92
+        return function(Proxy $proxy) use ($classMetadata, $wakeupProxy, $persister) {
93 93
             $initializer = $proxy->__getInitializer();
94 94
             $cloner      = $proxy->__getCloner();
95 95
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      */
131 131
     private function createCloner(ApiMetadata $classMetadata, ApiPersister $persister)
132 132
     {
133
-        return function (Proxy $proxy) use ($classMetadata, $persister) {
133
+        return function(Proxy $proxy) use ($classMetadata, $persister) {
134 134
             if ($proxy->__isInitialized()) {
135 135
                 return;
136 136
             }
Please login to merge, or discard this patch.
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.
Rpc/SearchArgumentsTransformer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 /** @var EntityMetadata $target */
45 45
                 $target = $this->manager->getClassMetadata($mapping['target']);
46 46
 
47
-                $converter = function ($value) use ($target) {
47
+                $converter = function($value) use ($target) {
48 48
                     if (!is_object($value)) {
49 49
                         return $value;
50 50
                     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     $values = $converter($values);
71 71
                 }
72 72
             } else {
73
-                $caster = function ($value) use ($field) {
73
+                $caster = function($value) use ($field) {
74 74
                     $type = $this->manager
75 75
                         ->getConfiguration()
76 76
                         ->getTypeRegistry()->get($this->metadata->getTypeOfField($field));
Please login to merge, or discard this patch.
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.