@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @return void |
23 | 23 | */ |
24 | - public function boot() |
|
24 | + public function boot () |
|
25 | 25 | { |
26 | 26 | // |
27 | 27 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @return void |
35 | 35 | */ |
36 | - public function map() |
|
36 | + public function map () |
|
37 | 37 | { |
38 | 38 | $this->mapApiRoutes(); |
39 | 39 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return void |
51 | 51 | */ |
52 | - protected function mapWebRoutes() |
|
52 | + protected function mapWebRoutes () |
|
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | 55 | ->namespace($this->namespace) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @return void |
65 | 65 | */ |
66 | - protected function mapApiRoutes() |
|
66 | + protected function mapApiRoutes () |
|
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | 69 | ->middleware('api') |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
6 | 6 | use Illuminate\Support\Facades\Route; |
7 | 7 | |
8 | -class RouteServiceProvider extends ServiceProvider |
|
9 | -{ |
|
8 | +class RouteServiceProvider extends ServiceProvider { |
|
10 | 9 | /** |
11 | 10 | * This namespace is applied to your controller routes. |
12 | 11 | * |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * |
12 | 12 | * @return void |
13 | 13 | */ |
14 | - public function boot() |
|
14 | + public function boot () |
|
15 | 15 | { |
16 | 16 | // |
17 | 17 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * |
22 | 22 | * @return void |
23 | 23 | */ |
24 | - public function register() |
|
24 | + public function register () |
|
25 | 25 | { |
26 | 26 | // |
27 | 27 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\ServiceProvider; |
6 | 6 | |
7 | -class AppServiceProvider extends ServiceProvider |
|
8 | -{ |
|
7 | +class AppServiceProvider extends ServiceProvider { |
|
9 | 8 | /** |
10 | 9 | * Bootstrap any application services. |
11 | 10 | * |
@@ -12,7 +12,7 @@ |
||
12 | 12 | * |
13 | 13 | * @return void |
14 | 14 | */ |
15 | - public function boot() |
|
15 | + public function boot () |
|
16 | 16 | { |
17 | 17 | Broadcast::routes(); |
18 | 18 |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Support\Facades\Broadcast; |
6 | 6 | use Illuminate\Support\ServiceProvider; |
7 | 7 | |
8 | -class BroadcastServiceProvider extends ServiceProvider |
|
9 | -{ |
|
8 | +class BroadcastServiceProvider extends ServiceProvider { |
|
10 | 9 | /** |
11 | 10 | * Bootstrap any application services. |
12 | 11 | * |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * |
24 | 24 | * @return void |
25 | 25 | */ |
26 | - public function boot() |
|
26 | + public function boot () |
|
27 | 27 | { |
28 | 28 | parent::boot(); |
29 | 29 |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; |
6 | 6 | use Illuminate\Support\Facades\Event; |
7 | 7 | |
8 | -class EventServiceProvider extends ServiceProvider |
|
9 | -{ |
|
8 | +class EventServiceProvider extends ServiceProvider { |
|
10 | 9 | /** |
11 | 10 | * The event listener mappings for the application. |
12 | 11 | * |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * |
21 | 21 | * @return void |
22 | 22 | */ |
23 | - public function boot() |
|
23 | + public function boot () |
|
24 | 24 | { |
25 | 25 | $this->registerPolicies(); |
26 | 26 |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; |
6 | 6 | |
7 | -class AuthServiceProvider extends ServiceProvider |
|
8 | -{ |
|
7 | +class AuthServiceProvider extends ServiceProvider { |
|
9 | 8 | /** |
10 | 9 | * The policy mappings for the application. |
11 | 10 | * |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Foundation\Auth\User as Authenticatable; |
6 | 6 | use Illuminate\Notifications\Notifiable; |
7 | 7 | |
8 | -class User extends Authenticatable |
|
9 | -{ |
|
8 | +class User extends Authenticatable { |
|
10 | 9 | use Notifiable; |
11 | 10 | |
12 | 11 | /** |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Illuminate\Foundation\Validation\ValidatesRequests; |
8 | 8 | use Illuminate\Routing\Controller as BaseController; |
9 | 9 | |
10 | -class Controller extends BaseController |
|
11 | -{ |
|
10 | +class Controller extends BaseController { |
|
12 | 11 | use AuthorizesRequests, DispatchesJobs, ValidatesRequests; |
13 | 12 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return void |
36 | 36 | */ |
37 | - public function __construct() |
|
37 | + public function __construct () |
|
38 | 38 | { |
39 | 39 | $this->middleware('guest'); |
40 | 40 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * |
47 | 47 | * @return \Illuminate\Contracts\Validation\Validator |
48 | 48 | */ |
49 | - protected function validator(array $data) |
|
49 | + protected function validator (array $data) |
|
50 | 50 | { |
51 | 51 | return Validator::make($data, [ |
52 | 52 | 'name' => 'required|string|max:255', |
@@ -62,12 +62,12 @@ discard block |
||
62 | 62 | * |
63 | 63 | * @return \App\User |
64 | 64 | */ |
65 | - protected function create(array $data) |
|
65 | + protected function create (array $data) |
|
66 | 66 | { |
67 | 67 | return User::create([ |
68 | - 'name' => $data['name'], |
|
69 | - 'email' => $data['email'], |
|
70 | - 'password' => bcrypt($data['password']), |
|
68 | + 'name' => $data[ 'name' ], |
|
69 | + 'email' => $data[ 'email' ], |
|
70 | + 'password' => bcrypt($data[ 'password' ]), |
|
71 | 71 | ]); |
72 | 72 | } |
73 | 73 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Illuminate\Foundation\Auth\RegistersUsers; |
8 | 8 | use Illuminate\Support\Facades\Validator; |
9 | 9 | |
10 | -class RegisterController extends Controller |
|
11 | -{ |
|
10 | +class RegisterController extends Controller { |
|
12 | 11 | /* |
13 | 12 | |-------------------------------------------------------------------------- |
14 | 13 | | Register Controller |
@@ -32,7 +32,7 @@ |
||
32 | 32 | * |
33 | 33 | * @return void |
34 | 34 | */ |
35 | - public function __construct() |
|
35 | + public function __construct () |
|
36 | 36 | { |
37 | 37 | $this->middleware('guest'); |
38 | 38 | } |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use App\Http\Controllers\Controller; |
6 | 6 | use Illuminate\Foundation\Auth\ResetsPasswords; |
7 | 7 | |
8 | -class ResetPasswordController extends Controller |
|
9 | -{ |
|
8 | +class ResetPasswordController extends Controller { |
|
10 | 9 | /* |
11 | 10 | |-------------------------------------------------------------------------- |
12 | 11 | | Password Reset Controller |