Completed
Push — master ( a8cb34...ce5009 )
by Anton
03:37
created
source/Spiral/Database/Drivers/Postgres/PostgresDriver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -115,14 +115,14 @@  discard block
 block discarded – undo
115 115
     public function getPrimary(string $prefix, string $table): string
116 116
     {
117 117
         if (!empty($this->memory) && empty($this->primaryKeys)) {
118
-            $this->primaryKeys = (array)$this->memory->loadData($this->getSource() . '.keys');
118
+            $this->primaryKeys = (array)$this->memory->loadData($this->getSource().'.keys');
119 119
         }
120 120
 
121 121
         if (!empty($this->primaryKeys) && array_key_exists($table, $this->primaryKeys)) {
122 122
             return $this->primaryKeys[$table];
123 123
         }
124 124
 
125
-        if (!$this->hasTable($prefix . $table)) {
125
+        if (!$this->hasTable($prefix.$table)) {
126 126
             throw new DriverException(
127 127
                 "Unable to fetch table primary key, no such table '{$prefix}{$table}' exists"
128 128
             );
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         //Caching
140 140
         if (!empty($this->memory)) {
141
-            $this->memory->saveData($this->getSource() . '.keys', $this->primaryKeys);
141
+            $this->memory->saveData($this->getSource().'.keys', $this->primaryKeys);
142 142
         }
143 143
 
144 144
         return $this->primaryKeys[$table];
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     {
154 154
         return $this->container->make(
155 155
             PostgresInsertQuery::class,
156
-            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix),] + $parameters
156
+            ['driver' => $this, 'compiler' => $this->queryCompiler($prefix), ] + $parameters
157 157
         );
158 158
     }
159 159
 
Please login to merge, or discard this patch.
source/Spiral/ODM/DocumentEntity.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             return $helper->createAggregation($method);
250 250
         }
251 251
 
252
-        throw new DocumentException("Undefined method call '{$method}' in '" . get_called_class() . "'");
252
+        throw new DocumentException("Undefined method call '{$method}' in '".get_called_class()."'");
253 253
     }
254 254
 
255 255
     /**
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
             if ($value instanceof CompositableInterface) {
316 316
                 $atomics = array_merge_recursive(
317 317
                     $atomics,
318
-                    $value->buildAtomics((!empty($container) ? $container . '.' : '') . $field)
318
+                    $value->buildAtomics((!empty($container) ? $container.'.' : '').$field)
319 319
                 );
320 320
 
321 321
                 continue;
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 
331 331
             if (array_key_exists($field, $this->changes)) {
332 332
                 //Generating set operation for changed field
333
-                $atomics['$set'][(!empty($container) ? $container . '.' : '') . $field] = $value;
333
+                $atomics['$set'][(!empty($container) ? $container.'.' : '').$field] = $value;
334 334
             }
335 335
         }
336 336
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     {
378 378
         $public = parent::publicFields();
379 379
 
380
-        array_walk_recursive($public, function (&$value) {
380
+        array_walk_recursive($public, function(&$value) {
381 381
             if ($value instanceof ObjectID) {
382 382
                 $value = (string)$value;
383 383
             }
Please login to merge, or discard this patch.
source/Spiral/ORM/Schemas/Relations/ManyToManySchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,6 +244,6 @@
 block discarded – undo
244 244
         $names = [$source->getRole(), $target->getRole()];
245 245
         asort($names);
246 246
 
247
-        return implode('_', $names) . static::PIVOT_POSTFIX;
247
+        return implode('_', $names).static::PIVOT_POSTFIX;
248 248
     }
249 249
 }
250 250
\ No newline at end of file
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Nodes/PivotedNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
         $pivotData = $data[ORMInterface::PIVOT_DATA];
107 107
 
108 108
         //Unique row criteria
109
-        return $pivotData[$this->innerPivotKey] . '.' . $pivotData[$this->outerPivotKey];
109
+        return $pivotData[$this->innerPivotKey].'.'.$pivotData[$this->outerPivotKey];
110 110
     }
111 111
 }
112 112
\ No newline at end of file
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/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/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/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.