Completed
Push — master ( 96506e...b0bc78 )
by Dmitriy
02:11
created
src/Criteria.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -238,7 +238,7 @@
 block discarded – undo
238 238
         foreach ($orders as $item) {
239 239
             $exploded = explode(' ', trim($item));
240 240
             if (count($exploded) == 2) {
241
-                $order = $this->getField($exploded[0]) . ' ' . $exploded[1];
241
+                $order = $this->getField($exploded[0]).' '.$exploded[1];
242 242
             } else {
243 243
                 $order = $this->getField($attribute);
244 244
             }
Please login to merge, or discard this patch.
src/FinderAggregateRepository.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     public function with($entityName)
80 80
     {
81 81
         if (!isset($this->relatedRepository[$entityName])) {
82
-            throw new \RuntimeException(get_class($this) . ": related $entityName repository not exists");
82
+            throw new \RuntimeException(get_class($this).": related $entityName repository not exists");
83 83
         }
84 84
 
85 85
         $this->with[$entityName] = [];
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             $relatedField = $this->getRelatedField($relatedEntityName);
115 115
 
116 116
             if (!isset($row[$relatedField])) {
117
-                throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched");
117
+                throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched");
118 118
             }
119 119
 
120 120
             if (!isset($relatedEntityIds[$relatedEntityName])) {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 $relatedField = $this->getRelatedField($relatedEntityName);
178 178
 
179 179
                 if (!isset($row[$relatedField])) {
180
-                    throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched");
180
+                    throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched");
181 181
                 }
182 182
 
183 183
                 if (!isset($relatedEntityIds[$relatedEntityName])) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     private function getRelatedField($entityName)
242 242
     {
243 243
         if (!isset($this->relationsConfig[$entityName])) {
244
-            throw new \RuntimeException(get_class($this) . ": relation $entityName not exists");
244
+            throw new \RuntimeException(get_class($this).": relation $entityName not exists");
245 245
         }
246 246
 
247 247
         list($table, $field) = explode('.', $this->relationsConfig[$entityName][0]);
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function add(EntityInterface $entity)
275 275
     {
276
-        throw new \RuntimeException(get_class($this) . ' cannot adding');
276
+        throw new \RuntimeException(get_class($this).' cannot adding');
277 277
     }
278 278
 
279 279
     /**
@@ -282,6 +282,6 @@  discard block
 block discarded – undo
282 282
      */
283 283
     public function remove(EntityInterface $entity)
284 284
     {
285
-        throw new \RuntimeException(get_class($this) . ' cannot removing');
285
+        throw new \RuntimeException(get_class($this).' cannot removing');
286 286
     }
287 287
 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
     }
89 89
 
90 90
     /**
91
-     * @param CriteriaInterface|array $criteria
91
+     * @param CriteriaInterface $criteria
92 92
      * @return EntityInterface|null
93 93
      */
94 94
     public function find($criteria)
Please login to merge, or discard this patch.
src/InMemoryRepository.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
-     * @param CriteriaInterface|array $criteria
130
+     * @param CriteriaInterface $criteria
131 131
      * @return EntityInterface|null
132 132
      */
133 133
     public function find($criteria)
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
     }
171 171
 
172 172
     /**
173
-     * @param CriteriaInterface|array $criteria
174
-     * @return EntityInterface[]
173
+     * @param CriteriaInterface $criteria
174
+     * @return ArrayObject
175 175
      */
176 176
     public function findMany($criteria)
177 177
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
     /**
297 297
      * @param EntityInterface $createdEntity
298 298
      */
299
-    protected function triggerCreate(EntityInterface &$createdEntity)
299
+    protected function triggerCreate(EntityInterface&$createdEntity)
300 300
     {
301 301
         $this->eventManager->addIdentifiers(get_class($createdEntity));
302 302
 
Please login to merge, or discard this patch.
src/Repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@
 block discarded – undo
296 296
     /**
297 297
      * @param EntityInterface $createdEntity
298 298
      */
299
-    protected function triggerCreate(EntityInterface &$createdEntity)
299
+    protected function triggerCreate(EntityInterface&$createdEntity)
300 300
     {
301 301
         $this->eventManager->addIdentifiers(get_class($createdEntity));
302 302
 
Please login to merge, or discard this patch.