@@ -176,18 +176,18 @@ |
||
| 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 |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | public function __toString() |
| 14 | 14 | { |
| 15 | - return static::class_short_name() . ' #' . $this->get_id(); |
|
| 15 | + return static::class_short_name().' #'.$this->get_id(); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | public function immortal(): bool |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $extraction_table = $extraction_class::table(); |
| 28 | 28 | foreach ($extraction_table->columns() as $column_name => $column) { |
| 29 | - $probe_name = $extraction_class::table_alias() . '_' . $column_name; |
|
| 29 | + $probe_name = $extraction_class::table_alias().'_'.$column_name; |
|
| 30 | 30 | |
| 31 | 31 | if (!is_null($probe_res = $this->get($probe_name))) { |
| 32 | 32 | $extract_model->set($column_name, $probe_res); |
@@ -176,7 +176,7 @@ discard block |
||
| 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 | 182 | return static::model_type(); |
@@ -184,7 +184,7 @@ discard block |
||
| 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 | 190 | return strtolower(self::class_short_name()); |
@@ -176,16 +176,18 @@ |
||
| 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 | } |