@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function rules() |
| 36 | 36 | { |
| 37 | 37 | return [ |
| 38 | - ['phone', 'string',], |
|
| 38 | + ['phone', 'string', ], |
|
| 39 | 39 | ]; |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | return [ |
| 34 | 34 | 'flexibleTimestamp' => [ |
| 35 | 35 | 'class' => FlexibleTimestampBehavior::class, |
| 36 | - 'attributes' => ['timestamp', 'date1', 'date2',], |
|
| 36 | + 'attributes' => ['timestamp', 'date1', 'date2', ], |
|
| 37 | 37 | 'format' => $this->format, |
| 38 | 38 | ], |
| 39 | 39 | ]; |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public function rules() |
| 46 | 46 | { |
| 47 | 47 | return [ |
| 48 | - [['timestamp', 'date1', 'date2',], 'date', 'format' => 'php:Y-m-d',], |
|
| 48 | + [['timestamp', 'date1', 'date2', ], 'date', 'format' => 'php:Y-m-d', ], |
|
| 49 | 49 | ]; |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function getClosure(): \Closure |
| 59 | 59 | { |
| 60 | - return function ($model, $attribute) { |
|
| 60 | + return function($model, $attribute) { |
|
| 61 | 61 | $prefix = $this->prefix ?? strtoupper($attribute) . '_'; |
| 62 | 62 | $class = $this->targetClass ?? get_class($model); |
| 63 | 63 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | return $constants; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | - return array_filter($constants, function (string $constant): bool { |
|
| 109 | + return array_filter($constants, function(string $constant): bool { |
|
| 110 | 110 | return !in_array($constant, $this->except); |
| 111 | 111 | }); |
| 112 | 112 | } |