@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | public function __toString() |
| 16 | 16 | { |
| 17 | - return static::class_short_name() . ' #' . $this->get_id(); |
|
| 17 | + return static::class_short_name().' #'.$this->get_id(); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | // public function traceable(): bool |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | $extraction_table = $extraction_class::table(); |
| 40 | 40 | foreach ($extraction_table->columns() as $column_name => $column) { |
| 41 | - $probe_name = $extraction_class::table_alias() . '_' . $column_name; |
|
| 41 | + $probe_name = $extraction_class::table_alias().'_'.$column_name; |
|
| 42 | 42 | |
| 43 | 43 | if (!is_null($probe_res = $this->get($probe_name))) { |
| 44 | 44 | $extract_model->set($column_name, $probe_res); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $ret = []; |
| 245 | 245 | $pk_name = implode('_', array_keys($Query->table()->primary_keys())); |
| 246 | 246 | |
| 247 | - if (count($pks = $Query->table()->primary_keys()) > 1) { |
|
| 247 | + if (count($pks = $Query->table()->primary_keys())>1) { |
|
| 248 | 248 | $concat_pk = sprintf('CONCAT(%s) as %s', implode(',', $pks), $pk_name); |
| 249 | 249 | $Query->select_also([$concat_pk]); |
| 250 | 250 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | */ |
| 285 | 285 | public static function table_alias(): string |
| 286 | 286 | { |
| 287 | - return defined(get_called_class() . '::TABLE_ALIAS') ? static::TABLE_ALIAS : static::model_type(); |
|
| 287 | + return defined(get_called_class().'::TABLE_ALIAS') ? static::TABLE_ALIAS : static::model_type(); |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | public static function class_short_name() |