@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @inheritdoc |
| 32 | 32 | * @return void |
| 33 | 33 | */ |
| 34 | - public function init() |
|
| 34 | + public function init () |
|
| 35 | 35 | { |
| 36 | 36 | parent::init(); |
| 37 | 37 | if ($this->message === null) { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @inheritdoc |
| 48 | 48 | * @return void |
| 49 | 49 | */ |
| 50 | - public function validateAttribute($model, $attribute) |
|
| 50 | + public function validateAttribute ($model, $attribute) |
|
| 51 | 51 | { |
| 52 | 52 | if (!$this->isAbleToAccess($model->$attribute)) { |
| 53 | 53 | $this->addError($model, $attribute, (string)$this->message); |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * @inheritdoc |
| 59 | 59 | */ |
| 60 | - protected function validateValue($value) |
|
| 60 | + protected function validateValue ($value) |
|
| 61 | 61 | { |
| 62 | 62 | if (!$this->isAbleToAccess($value)) { |
| 63 | 63 | return [$this->message, []]; |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | return null; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - private function isAbleToAccess(mixed $url): bool |
|
| 69 | + private function isAbleToAccess (mixed $url): bool |
|
| 70 | 70 | { |
| 71 | 71 | if (!is_string($url)) { |
| 72 | 72 | return false; |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @inheritdoc |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function init() |
|
| 35 | + public function init () |
|
| 36 | 36 | { |
| 37 | 37 | parent::init(); |
| 38 | 38 | if ($this->message === null) { |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * @inheritdoc |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - public function validateAttribute($model, $attribute) |
|
| 63 | + public function validateAttribute ($model, $attribute) |
|
| 64 | 64 | { |
| 65 | 65 | $ret = $this->validateValue($model->$attribute); |
| 66 | 66 | if (is_array($ret)) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | * @inheritdoc |
| 73 | 73 | * @return array{string, array}|null |
| 74 | 74 | */ |
| 75 | - protected function validateValue($value) |
|
| 75 | + protected function validateValue ($value) |
|
| 76 | 76 | { |
| 77 | 77 | if (!is_string($value)) { |
| 78 | 78 | return [(string)$this->message, []]; |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * @inheritdoc |
| 35 | 35 | * @return void |
| 36 | 36 | */ |
| 37 | - public function init() |
|
| 37 | + public function init () |
|
| 38 | 38 | { |
| 39 | 39 | if ($this->charset === null) { |
| 40 | 40 | $this->charset = Yii::$app->charset; |