@@ -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 |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function getFieldType() |
68 | 68 | { |
69 | 69 | if ($this->isDouble) { |
70 | - return "decimal(" . Field::DEFAULT_DOUBLE_LENGTH . "," . Field::DEFAULT_DOUBLE_DECIMALS . ")"; |
|
70 | + return "decimal(".Field::DEFAULT_DOUBLE_LENGTH.",".Field::DEFAULT_DOUBLE_DECIMALS.")"; |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | if ($this->isText) { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | |
89 | - return "string(" . Field::DEFAULT_STRING_LENGTH . ")"; |
|
89 | + return "string(".Field::DEFAULT_STRING_LENGTH.")"; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | return "integer"; |
122 | 122 | break; |
123 | 123 | case self::SYSFIELD_TOKEN: |
124 | - return "string(36) " . $this->tokenFieldCollation; |
|
124 | + return "string(36) ".$this->tokenFieldCollation; |
|
125 | 125 | break; |
126 | 126 | case self::SYSFIELD_REFURL: |
127 | 127 | return "text"; |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | if ($driverName == 'sqlsrv' || $driverName == 'dblib' || $driverName == 'mssql') { |
164 | 164 | return " COLLATE SQL_Latin1_General_CP1_CS_AS"; |
165 | 165 | } |
166 | - throw new \Exception('Unsupported database engine ' . $driverName); |
|
166 | + throw new \Exception('Unsupported database engine '.$driverName); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 |