Completed
Branch feature/pre-split (d4e072)
by Anton
04:00
created
source/Spiral/ORM/Entities/Loaders/RootLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             return null;
84 84
         }
85 85
 
86
-        return $this->getAlias() . '.' . $primaryKeys[0];
86
+        return $this->getAlias().'.'.$primaryKeys[0];
87 87
     }
88 88
 
89 89
     /**
Please login to merge, or discard this patch.
source/Spiral/Core/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -424,7 +424,7 @@
 block discarded – undo
424 424
 
425 425
         if (!$injector instanceof InjectorInterface) {
426 426
             throw new InjectionException(
427
-                "Class '" . get_class($injector) . "' must be an instance of InjectorInterface for '{$reflection->getName()}'"
427
+                "Class '".get_class($injector)."' must be an instance of InjectorInterface for '{$reflection->getName()}'"
428 428
             );
429 429
         }
430 430
 
Please login to merge, or discard this patch.
source/Spiral/Models/Prototypes/AbstractEntity.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
     ): AccessorInterface {
427 427
         if (!is_string($accessor) || !class_exists($accessor)) {
428 428
             throw new EntityException(
429
-                "Unable to create accessor for field {$name} in " . static::class
429
+                "Unable to create accessor for field {$name} in ".static::class
430 430
             );
431 431
         }
432 432
 
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|EntityInterface
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|EntityInterface
112 112
      */
113 113
     public function findOne(array $query = [], array $sortBy = [])
114 114
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Helpers/WhereDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $args[0] = $this->prepare($args[0]);
130 130
 
131 131
         //Routing where
132
-        call_user_func_array([$this->query, 'and' . ucfirst($this->target)], $args);
132
+        call_user_func_array([$this->query, 'and'.ucfirst($this->target)], $args);
133 133
 
134 134
         return $this;
135 135
     }
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $args[0] = $this->prepare($args[0]);
159 159
 
160 160
         //Routing where
161
-        call_user_func_array([$this->query, 'or' . ucfirst($this->target)], $args);
161
+        call_user_func_array([$this->query, 'or'.ucfirst($this->target)], $args);
162 162
 
163 163
         return $this;
164 164
     }
Please login to merge, or discard this patch.
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.