Passed
Branch main (d2dd60)
by Sammy
07:24 queued 47s
created
TableModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     public function import($assoc_data)
42 42
     {
43 43
         if (!is_array($assoc_data)) {
44
-            throw new \Exception(__FUNCTION__ . '(assoc_data) parm is not an array');
44
+            throw new \Exception(__FUNCTION__.'(assoc_data) parm is not an array');
45 45
         }
46 46
 
47 47
         // shove it all up in model, god will sort them out
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         if ($table_name === false) {
70 70
             $calling_class = $reflect->getShortName();
71
-            if (defined($const_name = 'TABLE_' . strtoupper($calling_class))) {
71
+            if (defined($const_name = 'TABLE_'.strtoupper($calling_class))) {
72 72
                 $table_name = constant($const_name);
73 73
             } else {
74 74
                 $table_name = strtolower($calling_class);
Please login to merge, or discard this patch.
TightModel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
     public function __toString()
14 14
     {
15
-        return static::class_short_name() . ' #' . $this->getId();
15
+        return static::class_short_name().' #'.$this->getId();
16 16
     }
17 17
 
18 18
     public function immortal(): bool
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         $extraction_table = $extraction_class::table();
28 28
         foreach ($extraction_table->columns() as $column_name => $column) {
29
-            $probe_name = $extraction_class::tableAlias() . '_' . $column_name;
29
+            $probe_name = $extraction_class::tableAlias().'_'.$column_name;
30 30
 
31 31
             if (!is_null($probe_res = $this->get($probe_name))) {
32 32
                 $extract_model->set($column_name, $probe_res);
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                     $errors = [];
98 98
 
99 99
                     foreach ($persistence_errors as $column_name => $err) {
100
-                        $errors[sprintf('MODEL_%s_FIELD_%s', static::model_type(), $column_name)] = 'CRUDITES_' . $err;
100
+                        $errors[sprintf('MODEL_%s_FIELD_%s', static::model_type(), $column_name)] = 'CRUDITES_'.$err;
101 101
                     }
102 102
 
103 103
                     return $errors;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public static function tableAlias(): string
172 172
     {
173
-        if (defined(get_called_class() . '::TABLE_ALIAS')) {
173
+        if (defined(get_called_class().'::TABLE_ALIAS')) {
174 174
             return get_called_class()::TABLE_ALIAS;
175 175
         }
176 176
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
 
180 180
     public static function model_type(): string
181 181
     {
182
-        if (defined(get_called_class() . '::MODEL_TYPE')) {
182
+        if (defined(get_called_class().'::MODEL_TYPE')) {
183 183
             return get_called_class()::MODEL_TYPE;
184 184
         }
185 185
 
Please login to merge, or discard this patch.