Passed
Push — main ( f6f8c3...7cc090 )
by Sammy
03:44 queued 02:05
created
TightModel.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,18 +176,18 @@
 block discarded – undo
176 176
      */
177 177
     public static function table_alias(): string
178 178
     {
179
-      if(defined(get_called_class() . '::TABLE_ALIAS'))
179
+        if(defined(get_called_class() . '::TABLE_ALIAS'))
180 180
         return static::TABLE_ALIAS;
181 181
 
182
-      return static::model_type();
182
+        return static::model_type();
183 183
     }
184 184
 
185 185
     public static function model_type(): string
186 186
     {
187
-      if(defined(get_called_class().'::MODEL_TYPE'))
187
+        if(defined(get_called_class().'::MODEL_TYPE'))
188 188
         return static::MODEL_TYPE;
189 189
 
190
-      return strtolower(self::class_short_name());
190
+        return strtolower(self::class_short_name());
191 191
     }
192 192
 
193 193
     public static function class_short_name(): string
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -176,16 +176,18 @@
 block discarded – undo
176 176
      */
177 177
     public static function table_alias(): string
178 178
     {
179
-      if(defined(get_called_class() . '::TABLE_ALIAS'))
180
-        return static::TABLE_ALIAS;
179
+      if(defined(get_called_class() . '::TABLE_ALIAS')) {
180
+              return static::TABLE_ALIAS;
181
+      }
181 182
 
182 183
       return static::model_type();
183 184
     }
184 185
 
185 186
     public static function model_type(): string
186 187
     {
187
-      if(defined(get_called_class().'::MODEL_TYPE'))
188
-        return static::MODEL_TYPE;
188
+      if(defined(get_called_class().'::MODEL_TYPE')) {
189
+              return static::MODEL_TYPE;
190
+      }
189 191
 
190 192
       return strtolower(self::class_short_name());
191 193
     }
Please login to merge, or discard this patch.