Passed
Push — main ( a7baa5...0cc05e )
by Sammy
01:46 queued 15s
created
src/TableModel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     public function import($assoc_data): self
66 66
     {
67 67
         if (!is_array($assoc_data)) {
68
-            throw new \Exception(__FUNCTION__ . '(assoc_data) parm is not an array');
68
+            throw new \Exception(__FUNCTION__.'(assoc_data) parm is not an array');
69 69
         }
70 70
 
71 71
         // shove it all up in model, god will sort them out
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         if (($table_name = $called_class->getConstant('TABLE_NAME')) !== false)
89 89
             return $table_name;
90 90
 
91
-        if (defined($const_name = 'TABLE_' . strtoupper($class_name)))
91
+        if (defined($const_name = 'TABLE_'.strtoupper($class_name)))
92 92
             return constant($const_name);
93 93
         
94 94
         // fallback to convention
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
 
104 104
         $model_data = get_object_vars($this);
105 105
 
106
-        if($this->isNew()){
106
+        if ($this->isNew()) {
107 107
             // $table_row = new Row($this, $model_data);
108 108
             $table_row = new Row($this->schema, static::table(), $model_data);
109 109
         }
110
-        else{
110
+        else {
111 111
             $table_row = new Row($this->schema);
112 112
             $table_row->load($model_data);
113 113
         }
Please login to merge, or discard this patch.