Completed
Pull Request — master (#8)
by Pavel
05:07
created
src/Bankiru/Api/Doctrine/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.
src/Bankiru/Api/Doctrine/Persister/ApiPersister.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -175,10 +175,10 @@
 block discarded – undo
175 175
      * @todo Check identity map? loadById method? Try to guess whether $criteria is the id?
176 176
      */
177 177
     public function load(array $criteria,
178
-                         $entity = null,
179
-                         $assoc = null,
180
-                         $limit = null,
181
-                         array $orderBy = null)
178
+                            $entity = null,
179
+                            $assoc = null,
180
+                            $limit = null,
181
+                            array $orderBy = null)
182 182
     {
183 183
         // TODO: Implement load() method.
184 184
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
                 /** @var EntityMetadata $target */
116 116
                 $target = $this->manager->getClassMetadata($mapping['target']);
117 117
 
118
-                $converter = function ($value) use ($target) {
118
+                $converter = function($value) use ($target) {
119 119
                     if (!is_object($value)) {
120 120
                         return $value;
121 121
                     }
Please login to merge, or discard this patch.
src/Bankiru/Api/Doctrine/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.
src/Bankiru/Api/Doctrine/ApiEntityCache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
      * @param ApiMetadata $metadata
80 80
      * @param array       $identifiers
81 81
      *
82
-     * @return mixed
82
+     * @return string
83 83
      */
84 84
     private function getEntityKey(ApiMetadata $metadata, array $identifiers)
85 85
     {
Please login to merge, or discard this patch.
src/Bankiru/Api/Tests/ReferenceLoadingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
 
259 259
         self::assertCount(2, $references);
260 260
         foreach ($references as $reference) {
261
-            self::assertSame('test-payload-'.$reference->getId(), $reference->getReferencePayload());
261
+            self::assertSame('test-payload-' . $reference->getId(), $reference->getReferencePayload());
262 262
         }
263 263
     }
264 264
 
Please login to merge, or discard this patch.