@@ -41,7 +41,7 @@ |
||
41 | 41 | 'database' => [ |
42 | 42 | 'driver' => 'database', |
43 | 43 | 'table' => 'cache', |
44 | - 'connection' => null, |
|
44 | + 'connection' => NULL, |
|
45 | 45 | ], |
46 | 46 | |
47 | 47 | 'file' => [ |
@@ -50,8 +50,8 @@ discard block |
||
50 | 50 | 'charset' => 'utf8mb4', |
51 | 51 | 'collation' => 'utf8mb4_unicode_ci', |
52 | 52 | 'prefix' => '', |
53 | - 'strict' => true, |
|
54 | - 'engine' => null, |
|
53 | + 'strict' => TRUE, |
|
54 | + 'engine' => NULL, |
|
55 | 55 | ], |
56 | 56 | |
57 | 57 | 'pgsql' => [ |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | 'default' => [ |
112 | 112 | 'host' => env('REDIS_HOST', '127.0.0.1'), |
113 | - 'password' => env('REDIS_PASSWORD', null), |
|
113 | + 'password' => env('REDIS_PASSWORD', NULL), |
|
114 | 114 | 'port' => env('REDIS_PORT', 6379), |
115 | 115 | 'database' => 0, |
116 | 116 | ], |
@@ -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 \LaravelSeed\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 LaravelSeed\Http\Controllers\Controller; |
8 | 8 | use LaravelSeed\User; |
9 | 9 | |
10 | -class RegisterController extends Controller |
|
11 | -{ |
|
10 | +class RegisterController extends Controller { |
|
12 | 11 | /* |
13 | 12 | |-------------------------------------------------------------------------- |
14 | 13 | | Register Controller |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @return void |
25 | 25 | */ |
26 | - protected function schedule(Schedule $schedule) |
|
26 | + protected function schedule (Schedule $schedule) |
|
27 | 27 | { |
28 | 28 | // $schedule->command('inspire') |
29 | 29 | // ->hourly(); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @return void |
36 | 36 | */ |
37 | - protected function commands() |
|
37 | + protected function commands () |
|
38 | 38 | { |
39 | 39 | require base_path('routes/console.php'); |
40 | 40 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * |
32 | 32 | * @return void |
33 | 33 | */ |
34 | - public function report(Exception $exception) |
|
34 | + public function report (Exception $exception) |
|
35 | 35 | { |
36 | 36 | parent::report($exception); |
37 | 37 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @return \Illuminate\Http\Response |
46 | 46 | */ |
47 | - public function render($request, Exception $exception) |
|
47 | + public function render ($request, Exception $exception) |
|
48 | 48 | { |
49 | 49 | return parent::render($request, $exception); |
50 | 50 | } |
@@ -57,10 +57,10 @@ discard block |
||
57 | 57 | * |
58 | 58 | * @return \Illuminate\Http\Response |
59 | 59 | */ |
60 | - protected function unauthenticated($request, AuthenticationException $exception) |
|
60 | + protected function unauthenticated ($request, AuthenticationException $exception) |
|
61 | 61 | { |
62 | 62 | if ($request->expectsJson()) { |
63 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
63 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | return redirect()->guest(route('login')); |
@@ -37,101 +37,101 @@ |
||
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 | - public function preRemove() |
|
64 | + public function preRemove () |
|
65 | 65 | { |
66 | 66 | } |
67 | 67 | |
68 | - public function postRemove() |
|
68 | + public function postRemove () |
|
69 | 69 | { |
70 | 70 | } |
71 | 71 | |
72 | - public function prePersist() |
|
72 | + public function prePersist () |
|
73 | 73 | { |
74 | 74 | } |
75 | 75 | |
76 | - public function postPersist() |
|
76 | + public function postPersist () |
|
77 | 77 | { |
78 | 78 | } |
79 | 79 | |
80 | - public function preUpdate() |
|
80 | + public function preUpdate () |
|
81 | 81 | { |
82 | 82 | } |
83 | 83 | |
84 | - public function postUpdate() |
|
84 | + public function postUpdate () |
|
85 | 85 | { |
86 | 86 | } |
87 | 87 | |
88 | - public function preFlush() |
|
88 | + public function preFlush () |
|
89 | 89 | { |
90 | 90 | } |
91 | 91 | |
92 | - public function postFlush() |
|
92 | + public function postFlush () |
|
93 | 93 | { |
94 | 94 | } |
95 | 95 | |
96 | - public function persist(): Entity |
|
96 | + public function persist (): Entity |
|
97 | 97 | { |
98 | 98 | } |
99 | 99 | |
100 | - public function flush(): Entity |
|
100 | + public function flush (): Entity |
|
101 | 101 | { |
102 | 102 | } |
103 | 103 | |
104 | - public function remove(): Entity |
|
104 | + public function remove (): Entity |
|
105 | 105 | { |
106 | 106 | } |
107 | 107 | |
108 | - public function undelete(): Entity |
|
108 | + public function undelete (): Entity |
|
109 | 109 | { |
110 | 110 | $this->deletedAt = null; |
111 | 111 | |
112 | 112 | return $this; |
113 | 113 | } |
114 | 114 | |
115 | - public function fillable(): array |
|
115 | + public function fillable (): array |
|
116 | 116 | { |
117 | - return []; |
|
117 | + return [ ]; |
|
118 | 118 | } |
119 | 119 | |
120 | - public function onlyStore(): array |
|
120 | + public function onlyStore (): array |
|
121 | 121 | { |
122 | - return []; |
|
122 | + return [ ]; |
|
123 | 123 | } |
124 | 124 | |
125 | - public function onlyUpdate(): array |
|
125 | + public function onlyUpdate (): array |
|
126 | 126 | { |
127 | - return []; |
|
127 | + return [ ]; |
|
128 | 128 | } |
129 | 129 | |
130 | - public function toArray(array $options = []): array |
|
130 | + public function toArray (array $options = [ ]): array |
|
131 | 131 | { |
132 | 132 | } |
133 | 133 | |
134 | - public function toObject(array $options): Entity |
|
134 | + public function toObject (array $options): Entity |
|
135 | 135 | { |
136 | 136 | } |
137 | 137 | } |