@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | { |
| 14 | 14 | protected $path; |
| 15 | 15 | protected $defaultPath; |
| 16 | - protected $supportLang = ['ar']; |
|
| 16 | + protected $supportLang = [ 'ar' ]; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * TranslateLoader constructor. |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | return include $this->getFilePath($locale, true); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - return []; |
|
| 43 | + return [ ]; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | return include $this->getFilePath($locale); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | trait HasValidator |
| 17 | 17 | { |
| 18 | 18 | /** @var array */ |
| 19 | - protected $aliases = []; |
|
| 19 | + protected $aliases = [ ]; |
|
| 20 | 20 | /** @var string */ |
| 21 | 21 | protected $validatorLocal = 'ar'; |
| 22 | 22 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * |
| 39 | 39 | * @return mixed|\Rakit\Validation\Validation |
| 40 | 40 | */ |
| 41 | - protected function valid(array $data, array $rules, array $messages = [], array $aliases = []) |
|
| 41 | + protected function valid(array $data, array $rules, array $messages = [ ], array $aliases = [ ]) |
|
| 42 | 42 | { |
| 43 | 43 | // load translate. |
| 44 | 44 | $this->loadTranslate(); |