Completed
Branch feature/pre-split (9269d3)
by Anton
05:27
created
source/Spiral/ORM/EntityCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
             return null;
108 108
         }
109 109
 
110
-        return $this->entities[$class . '.' . $identity];
110
+        return $this->entities[$class.'.'.$identity];
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/RecordSource.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      *
96 96
      * @param string|int $id Primary key value.
97 97
      *
98
-     * @return EntityInterface|Record|null
98
+     * @return null|\Spiral\ORM\RecordInterface
99 99
      */
100 100
     public function findByPK($id)
101 101
     {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param array $query  Fields and conditions to query by.
109 109
      * @param array $sortBy Always specify sort by to ensure that results are stable.
110 110
      *
111
-     * @return EntityInterface|Record|null
111
+     * @return null|\Spiral\ORM\RecordInterface
112 112
      */
113 113
     public function findOne(array $query = [], array $sortBy = [])
114 114
     {
Please login to merge, or discard this patch.
source/Spiral/ODM/Entities/DocumentCompositor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      * @param bool $changedEntities Reference, will be set to true if any of entities changed
260 260
      *                              internally.
261 261
      */
262
-    public function hasChanges(bool &$changedEntities = null): bool
262
+    public function hasChanges(bool & $changedEntities = null): bool
263 263
     {
264 264
         foreach ($this->entities as $entity) {
265 265
             if ($entity->hasChanges()) {
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 
327 327
             $atomics = array_merge(
328 328
                 $atomics,
329
-                $entity->buildAtomics((!empty($container) ? $container . '.' : '') . $offset)
329
+                $entity->buildAtomics((!empty($container) ? $container.'.' : '').$offset)
330 330
             );
331 331
         }
332 332
 
Please login to merge, or discard this patch.
source/Spiral/ORM/RecordEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
      *
100 100
      * @see Record::INDEXES
101 101
      */
102
-    const INDEX  = 1000;            //Default index type
103
-    const UNIQUE = 2000;            //Unique index definition
102
+    const INDEX  = 1000; //Default index type
103
+    const UNIQUE = 2000; //Unique index definition
104 104
 
105 105
     /*
106 106
      * ================================================
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         );
358 358
 
359 359
         if (!empty($this->insertCommand)) {
360
-            $this->insertCommand->onExecute(function (InsertCommand $insert) use ($command) {
360
+            $this->insertCommand->onExecute(function(InsertCommand $insert) use ($command) {
361 361
                 //Sync primary key values
362 362
                 $command->setPrimary($insert->lastInsertID());
363 363
             });
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
 
397 397
     private function syncState(): \Closure
398 398
     {
399
-        return function ($command) {
399
+        return function($command) {
400 400
             dump($command);
401 401
         };
402 402
 
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loaders/RootLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     public function primaryKey(): string
80 80
     {
81
-        return $this->getAlias() . '.' . $this->schema[Record::SH_PRIMARY_KEY];
81
+        return $this->getAlias().'.'.$this->schema[Record::SH_PRIMARY_KEY];
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.