@@ -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') |
@@ -8,7 +8,7 @@ |
||
8 | 8 | */ |
9 | 9 | |
10 | 10 | $uri = urldecode( |
11 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
11 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
12 | 12 | ); |
13 | 13 | |
14 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -4,19 +4,19 @@ |
||
4 | 4 | |
5 | 5 | interface Repository |
6 | 6 | { |
7 | - public function findAll(); |
|
7 | + public function findAll (); |
|
8 | 8 | |
9 | - public function findBy(array $filters): array; |
|
9 | + public function findBy (array $filters): array; |
|
10 | 10 | |
11 | - public function findOneBy(array $filters): Entity; |
|
11 | + public function findOneBy (array $filters): Entity; |
|
12 | 12 | |
13 | - public function find($id): Entity; |
|
13 | + public function find ($id): Entity; |
|
14 | 14 | |
15 | - public function findAllRemoved(); |
|
15 | + public function findAllRemoved (); |
|
16 | 16 | |
17 | - public function findRemoved(): Entity; |
|
17 | + public function findRemoved (): Entity; |
|
18 | 18 | |
19 | - public function createEntity(): Entity; |
|
19 | + public function createEntity (): Entity; |
|
20 | 20 | |
21 | - public function remove(): Entity; |
|
21 | + public function remove (): Entity; |
|
22 | 22 | } |
@@ -6,47 +6,47 @@ |
||
6 | 6 | |
7 | 7 | interface Entity |
8 | 8 | { |
9 | - public function getId(); |
|
9 | + public function getId (); |
|
10 | 10 | |
11 | - public function getCreatedAt(): DateTime; |
|
11 | + public function getCreatedAt (): DateTime; |
|
12 | 12 | |
13 | - public function getUpdatedAt(): DateTime; |
|
13 | + public function getUpdatedAt (): DateTime; |
|
14 | 14 | |
15 | - public function getDeletedAt(): DateTime; |
|
15 | + public function getDeletedAt (): DateTime; |
|
16 | 16 | |
17 | - public function getRepository(): Repository; |
|
17 | + public function getRepository (): Repository; |
|
18 | 18 | |
19 | - public function preRemove(); |
|
19 | + public function preRemove (); |
|
20 | 20 | |
21 | - public function postRemove(); |
|
21 | + public function postRemove (); |
|
22 | 22 | |
23 | - public function prePersist(); |
|
23 | + public function prePersist (); |
|
24 | 24 | |
25 | - public function postPersist(); |
|
25 | + public function postPersist (); |
|
26 | 26 | |
27 | - public function preUpdate(); |
|
27 | + public function preUpdate (); |
|
28 | 28 | |
29 | - public function postUpdate(); |
|
29 | + public function postUpdate (); |
|
30 | 30 | |
31 | - public function preFlush(); |
|
31 | + public function preFlush (); |
|
32 | 32 | |
33 | - public function postFlush(); |
|
33 | + public function postFlush (); |
|
34 | 34 | |
35 | - public function persist(): Entity; |
|
35 | + public function persist (): Entity; |
|
36 | 36 | |
37 | - public function flush(): Entity; |
|
37 | + public function flush (): Entity; |
|
38 | 38 | |
39 | - public function remove(): Entity; |
|
39 | + public function remove (): Entity; |
|
40 | 40 | |
41 | - public function undelete(): Entity; |
|
41 | + public function undelete (): Entity; |
|
42 | 42 | |
43 | - public function fillable(): array; |
|
43 | + public function fillable (): array; |
|
44 | 44 | |
45 | - public function onlyStore(): array; |
|
45 | + public function onlyStore (): array; |
|
46 | 46 | |
47 | - public function onlyUpdate(): array; |
|
47 | + public function onlyUpdate (): array; |
|
48 | 48 | |
49 | - public function toArray(array $options = []): array; |
|
49 | + public function toArray (array $options = [ ]): array; |
|
50 | 50 | |
51 | - public function toObject(array $options): Entity; |
|
51 | + public function toObject (array $options): Entity; |
|
52 | 52 | } |
@@ -37,114 +37,114 @@ |
||
37 | 37 | */ |
38 | 38 | protected $deletedAt; |
39 | 39 | |
40 | - public function getId() |
|
40 | + public function getId () |
|
41 | 41 | { |
42 | 42 | return $this->id; |
43 | 43 | } |
44 | 44 | |
45 | - public function getCreatedAt(): DateTime |
|
45 | + public function getCreatedAt (): DateTime |
|
46 | 46 | { |
47 | 47 | return $this->createdAt; |
48 | 48 | } |
49 | 49 | |
50 | - public function getUpdatedAt(): DateTime |
|
50 | + public function getUpdatedAt (): DateTime |
|
51 | 51 | { |
52 | 52 | return $this->createdAt; |
53 | 53 | } |
54 | 54 | |
55 | - public function getDeletedAt(): DateTime |
|
55 | + public function getDeletedAt (): DateTime |
|
56 | 56 | { |
57 | 57 | return $this->deletedAt; |
58 | 58 | } |
59 | 59 | |
60 | - public function getRepository(): Repository |
|
60 | + public function getRepository (): Repository |
|
61 | 61 | { |
62 | 62 | |
63 | 63 | } |
64 | 64 | |
65 | - public function preRemove() |
|
65 | + public function preRemove () |
|
66 | 66 | { |
67 | 67 | |
68 | 68 | } |
69 | 69 | |
70 | - public function postRemove() |
|
70 | + public function postRemove () |
|
71 | 71 | { |
72 | 72 | |
73 | 73 | } |
74 | 74 | |
75 | - public function prePersist() |
|
75 | + public function prePersist () |
|
76 | 76 | { |
77 | 77 | |
78 | 78 | } |
79 | 79 | |
80 | - public function postPersist() |
|
80 | + public function postPersist () |
|
81 | 81 | { |
82 | 82 | |
83 | 83 | } |
84 | 84 | |
85 | - public function preUpdate() |
|
85 | + public function preUpdate () |
|
86 | 86 | { |
87 | 87 | |
88 | 88 | } |
89 | 89 | |
90 | - public function postUpdate() |
|
90 | + public function postUpdate () |
|
91 | 91 | { |
92 | 92 | |
93 | 93 | } |
94 | 94 | |
95 | - public function preFlush() |
|
95 | + public function preFlush () |
|
96 | 96 | { |
97 | 97 | |
98 | 98 | } |
99 | 99 | |
100 | - public function postFlush() |
|
100 | + public function postFlush () |
|
101 | 101 | { |
102 | 102 | |
103 | 103 | } |
104 | 104 | |
105 | - public function persist(): Entity |
|
105 | + public function persist (): Entity |
|
106 | 106 | { |
107 | 107 | |
108 | 108 | } |
109 | 109 | |
110 | - public function flush(): Entity |
|
110 | + public function flush (): Entity |
|
111 | 111 | { |
112 | 112 | |
113 | 113 | } |
114 | 114 | |
115 | - public function remove(): Entity |
|
115 | + public function remove (): Entity |
|
116 | 116 | { |
117 | 117 | |
118 | 118 | } |
119 | 119 | |
120 | - public function undelete(): Entity |
|
120 | + public function undelete (): Entity |
|
121 | 121 | { |
122 | 122 | $this->deletedAt = null; |
123 | 123 | |
124 | 124 | return $this; |
125 | 125 | } |
126 | 126 | |
127 | - public function fillable(): array |
|
127 | + public function fillable (): array |
|
128 | 128 | { |
129 | - return []; |
|
129 | + return [ ]; |
|
130 | 130 | } |
131 | 131 | |
132 | - public function onlyStore(): array |
|
132 | + public function onlyStore (): array |
|
133 | 133 | { |
134 | - return []; |
|
134 | + return [ ]; |
|
135 | 135 | } |
136 | 136 | |
137 | - public function onlyUpdate(): array |
|
137 | + public function onlyUpdate (): array |
|
138 | 138 | { |
139 | - return []; |
|
139 | + return [ ]; |
|
140 | 140 | } |
141 | 141 | |
142 | - public function toArray(array $options = []): array |
|
142 | + public function toArray (array $options = [ ]): array |
|
143 | 143 | { |
144 | 144 | |
145 | 145 | } |
146 | 146 | |
147 | - public function toObject(array $options): Entity |
|
147 | + public function toObject (array $options): Entity |
|
148 | 148 | { |
149 | 149 | |
150 | 150 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param \Exception $exception |
31 | 31 | * @return void |
32 | 32 | */ |
33 | - public function report(Exception $exception) |
|
33 | + public function report (Exception $exception) |
|
34 | 34 | { |
35 | 35 | parent::report($exception); |
36 | 36 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * @param \Exception $exception |
43 | 43 | * @return \Illuminate\Http\Response |
44 | 44 | */ |
45 | - public function render($request, Exception $exception) |
|
45 | + public function render ($request, Exception $exception) |
|
46 | 46 | { |
47 | 47 | return parent::render($request, $exception); |
48 | 48 | } |
@@ -54,10 +54,10 @@ discard block |
||
54 | 54 | * @param \Illuminate\Auth\AuthenticationException $exception |
55 | 55 | * @return \Illuminate\Http\Response |
56 | 56 | */ |
57 | - protected function unauthenticated($request, AuthenticationException $exception) |
|
57 | + protected function unauthenticated ($request, AuthenticationException $exception) |
|
58 | 58 | { |
59 | 59 | if ($request->expectsJson()) { |
60 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | return redirect()->guest(route('login')); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param \Illuminate\Console\Scheduling\Schedule $schedule |
23 | 23 | * @return void |
24 | 24 | */ |
25 | - protected function schedule(Schedule $schedule) |
|
25 | + protected function schedule (Schedule $schedule) |
|
26 | 26 | { |
27 | 27 | // $schedule->command('inspire') |
28 | 28 | // ->hourly(); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @return void |
35 | 35 | */ |
36 | - protected function commands() |
|
36 | + protected function commands () |
|
37 | 37 | { |
38 | 38 | require base_path('routes/console.php'); |
39 | 39 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | * @param string|null $guard |
16 | 16 | * @return mixed |
17 | 17 | */ |
18 | - public function handle($request, Closure $next, $guard = null) |
|
18 | + public function handle ($request, Closure $next, $guard = null) |
|
19 | 19 | { |
20 | 20 | if (Auth::guard($guard)->check()) { |
21 | 21 | return redirect('/home'); |
@@ -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 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | * @param array $data |
46 | 46 | * @return \Illuminate\Contracts\Validation\Validator |
47 | 47 | */ |
48 | - protected function validator(array $data) |
|
48 | + protected function validator (array $data) |
|
49 | 49 | { |
50 | 50 | return Validator::make($data, [ |
51 | 51 | 'name' => 'required|string|max:255', |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | * @param array $data |
61 | 61 | * @return \LaravelSeed\User |
62 | 62 | */ |
63 | - protected function create(array $data) |
|
63 | + protected function create (array $data) |
|
64 | 64 | { |
65 | 65 | return User::create([ |
66 | - 'name' => $data['name'], |
|
67 | - 'email' => $data['email'], |
|
68 | - 'password' => bcrypt($data['password']), |
|
66 | + 'name' => $data[ 'name' ], |
|
67 | + 'email' => $data[ 'email' ], |
|
68 | + 'password' => bcrypt($data[ 'password' ]), |
|
69 | 69 | ]); |
70 | 70 | } |
71 | 71 | } |