@@ -3,7 +3,7 @@ |
||
3 | 3 | // User |
4 | 4 | use App\Containers\Authorization\Models\Role; |
5 | 5 | |
6 | -$factory->define(Role::class, function (Faker\Generator $faker) { |
|
6 | +$factory->define(Role::class, function(Faker\Generator $faker) { |
|
7 | 7 | |
8 | 8 | return [ |
9 | 9 | 'name' => $faker->slug, |
@@ -97,8 +97,8 @@ |
||
97 | 97 | * |
98 | 98 | * Extend the default Laravel validation rules. |
99 | 99 | */ |
100 | - private function extendValidationRules(){ |
|
101 | - \Validator::extend('no_spaces', function($attr, $value){ |
|
100 | + private function extendValidationRules() { |
|
101 | + \Validator::extend('no_spaces', function($attr, $value) { |
|
102 | 102 | return preg_match('/^\S*$/u', $value); |
103 | 103 | }, ['String should not contain space.']); |
104 | 104 | } |