@@ -82,7 +82,7 @@ |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | - * @return array |
|
| 85 | + * @return string[] |
|
| 86 | 86 | */ |
| 87 | 87 | public function getStatusList() |
| 88 | 88 | { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | [['id'], 'trim'], |
| 40 | 40 | [['id'], 'required'], |
| 41 | 41 | [['id'], 'string', 'min' => 2, 'max' => 2], |
| 42 | - [['id'], 'match', 'pattern' => '/^' . self::PATTERN . '$/'], |
|
| 42 | + [['id'], 'match', 'pattern' => '/^'.self::PATTERN.'$/'], |
|
| 43 | 43 | [['id'], 'unique'], |
| 44 | 44 | |
| 45 | 45 | [['name'], 'trim'], |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | */ |
| 162 | 162 | public function __get($name) |
| 163 | 163 | { |
| 164 | - $getter = 'get' . $name; |
|
| 164 | + $getter = 'get'.$name; |
|
| 165 | 165 | if (method_exists($this, $getter)) { |
| 166 | 166 | return $this->$getter(); |
| 167 | 167 | } else { |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | */ |
| 176 | 176 | public function __set($name, $value) |
| 177 | 177 | { |
| 178 | - $setter = 'set' . $name; |
|
| 178 | + $setter = 'set'.$name; |
|
| 179 | 179 | if (method_exists($this, $setter)) { |
| 180 | 180 | $this->$setter($value); |
| 181 | 181 | } else { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | foreach ($this->languages as $lang_id => $lang) { |
| 51 | 51 | $name = "update-$lang_id"; |
| 52 | - $this->template .= ' {' . $name . '}'; |
|
| 52 | + $this->template .= ' {'.$name.'}'; |
|
| 53 | 53 | if (!isset($this->buttons[$name])) { |
| 54 | 54 | $this->buttons[$name] = function() use ($lang, $lang_id) { |
| 55 | 55 | /** @var TranslatedTrait $model */ |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | $params = is_array($key) ? $key : ['id' => (string) $key]; |
| 60 | 60 | $params[$this->languageAttribute] = $lang_id; |
| 61 | - $params[0] = $this->controller ? $this->controller . '/update' : 'update'; |
|
| 61 | + $params[0] = $this->controller ? $this->controller.'/update' : 'update'; |
|
| 62 | 62 | |
| 63 | 63 | $url = Url::toRoute($params); |
| 64 | 64 | |
@@ -72,9 +72,9 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | if ($this->ajax) { |
| 74 | 74 | $options['data-href'] = $url; |
| 75 | - return Html::button('<span class="glyphicon glyphicon-pencil"></span> ' . $lang, $options); |
|
| 75 | + return Html::button('<span class="glyphicon glyphicon-pencil"></span> '.$lang, $options); |
|
| 76 | 76 | } else { |
| 77 | - return Html::a('<span class="glyphicon glyphicon-pencil"></span> ' . $lang, $url, $options); |
|
| 77 | + return Html::a('<span class="glyphicon glyphicon-pencil"></span> '.$lang, $url, $options); |
|
| 78 | 78 | } |
| 79 | 79 | }; |
| 80 | 80 | } |