@@ -18,7 +18,7 @@ |
||
18 | 18 | public static function primaryKeySingle() |
19 | 19 | { |
20 | 20 | if (count(self::primaryKey()) === 1) { |
21 | - return static::tableName() . "_id"; |
|
21 | + return static::tableName()."_id"; |
|
22 | 22 | } |
23 | 23 | throw new NotSupportedException('Not supported for multi-column primary keys'); |
24 | 24 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $parent = static::$parentClass; |
40 | 40 | /** @var DActiveRecord $child */ |
41 | 41 | $child = static::$childClass; |
42 | - return $parent::tableName() . '_' . $child::tableName() . "_id"; |
|
42 | + return $parent::tableName().'_'.$child::tableName()."_id"; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | { |
51 | 51 | parent::init(); |
52 | 52 | if (is_null($this->parentModel) or is_null($this->childModel)) { |
53 | - throw new InvalidConfigException('Parent & Child class name must be defined for ' . static::class); |
|
53 | + throw new InvalidConfigException('Parent & Child class name must be defined for '.static::class); |
|
54 | 54 | } |
55 | 55 | } |
56 | 56 |