Passed
Push — main ( 197711...a7baa5 )
by Sammy
07:12 queued 14s
created
src/TableModel.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function import($assoc_data): self
65 65
     {
66 66
         if (!is_array($assoc_data)) {
67
-            throw new \Exception(__FUNCTION__ . '(assoc_data) parm is not an array');
67
+            throw new \Exception(__FUNCTION__.'(assoc_data) parm is not an array');
68 68
         }
69 69
 
70 70
         // shove it all up in model, god will sort them out
@@ -87,17 +87,17 @@  discard block
 block discarded – undo
87 87
 
88 88
         if ($table_name === false) {
89 89
             $shortName = $reflectionClass->getShortName();
90
-            $table_name = defined($const_name = 'TABLE_' . strtoupper($shortName)) ? constant($const_name) : strtolower($shortName);
90
+            $table_name = defined($const_name = 'TABLE_'.strtoupper($shortName)) ? constant($const_name) : strtolower($shortName);
91 91
         }
92 92
 
93 93
         return $table_name;
94 94
         $table_name = $called_class->getConstant('TABLE_NAME');
95
-        if($table_name !== false)
95
+        if ($table_name !== false)
96 96
             return $table_name;
97 97
 
98 98
         $class_name = $called_class->getShortName();
99 99
         
100
-        if (defined($const_name = 'TABLE_' . strtoupper($class_name)))
100
+        if (defined($const_name = 'TABLE_'.strtoupper($class_name)))
101 101
             return constant($const_name);
102 102
         
103 103
         return strtolower($class_name);
@@ -111,11 +111,11 @@  discard block
 block discarded – undo
111 111
 
112 112
         $model_data = get_object_vars($this);
113 113
 
114
-        if($this->isNew()){
114
+        if ($this->isNew()) {
115 115
             // $table_row = new Row($this, $model_data);
116 116
             $table_row = new Row($this->schema, static::table(), $model_data);
117 117
         }
118
-        else{
118
+        else {
119 119
             $table_row = new Row($this->schema);
120 120
             $table_row->load($model_data);
121 121
         }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $table = get_called_class()::table();
162 162
 
163 163
         // case 3
164
-        if(is_array($arg1) && !empty($arg1))
164
+        if (is_array($arg1) && !empty($arg1))
165 165
         {
166 166
             $unique_identifiers = $arg1;
167 167
         }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
         }
245 245
     }
246 246
 
247
-    public static function any($field_exact_values=[], $options = [])
247
+    public static function any($field_exact_values = [], $options = [])
248 248
     {
249 249
         $select = static::filter($field_exact_values, $options);
250 250
         return static::retrieve($select);
Please login to merge, or discard this patch.