@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Bludata\Doctrine\Common\Contracts\Repository; |
6 | 6 | |
7 | -abstract class BaseRepository implements Repository |
|
8 | -{ |
|
7 | +abstract class BaseRepository implements Repository { |
|
9 | 8 | |
10 | 9 | } |
11 | 10 |
@@ -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 | } |
@@ -11,8 +11,7 @@ |
||
11 | 11 | * @ORM\HasLifecycleCallbacks |
12 | 12 | * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false) |
13 | 13 | */ |
14 | -abstract class BaseEntity implements Entity |
|
15 | -{ |
|
14 | +abstract class BaseEntity implements Entity { |
|
16 | 15 | /** |
17 | 16 | * @ORM\Id |
18 | 17 | * @ORM\Column(type="guid", name="id") |
@@ -119,7 +119,7 @@ |
||
119 | 119 | |
120 | 120 | public function undelete(): Entity |
121 | 121 | { |
122 | - $this->deletedAt = null; |
|
122 | + $this->deletedAt = NULL; |
|
123 | 123 | |
124 | 124 | return $this; |
125 | 125 | } |
@@ -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')); |
@@ -6,8 +6,7 @@ |
||
6 | 6 | use Illuminate\Auth\AuthenticationException; |
7 | 7 | use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
8 | 8 | |
9 | -class Handler extends ExceptionHandler |
|
10 | -{ |
|
9 | +class Handler extends ExceptionHandler { |
|
11 | 10 | /** |
12 | 11 | * A list of the exception types that should not be reported. |
13 | 12 | * |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier; |
6 | 6 | |
7 | -class VerifyCsrfToken extends BaseVerifier |
|
8 | -{ |
|
7 | +class VerifyCsrfToken extends BaseVerifier { |
|
9 | 8 | /** |
10 | 9 | * The URIs that should be excluded from CSRF verification. |
11 | 10 | * |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer; |
6 | 6 | |
7 | -class TrimStrings extends BaseTrimmer |
|
8 | -{ |
|
7 | +class TrimStrings extends BaseTrimmer { |
|
9 | 8 | /** |
10 | 9 | * The names of the attributes that should not be trimmed. |
11 | 10 | * |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Cookie\Middleware\EncryptCookies as BaseEncrypter; |
6 | 6 | |
7 | -class EncryptCookies extends BaseEncrypter |
|
8 | -{ |
|
7 | +class EncryptCookies extends BaseEncrypter { |
|
9 | 8 | /** |
10 | 9 | * The names of the cookies that should not be encrypted. |
11 | 10 | * |
@@ -7,7 +7,6 @@ |
||
7 | 7 | use Illuminate\Foundation\Validation\ValidatesRequests; |
8 | 8 | use Illuminate\Foundation\Auth\Access\AuthorizesRequests; |
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 | } |
@@ -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 | } |
@@ -7,8 +7,7 @@ |
||
7 | 7 | use Illuminate\Support\Facades\Validator; |
8 | 8 | use Illuminate\Foundation\Auth\RegistersUsers; |
9 | 9 | |
10 | -class RegisterController extends Controller |
|
11 | -{ |
|
10 | +class RegisterController extends Controller { |
|
12 | 11 | /* |
13 | 12 | |-------------------------------------------------------------------------- |
14 | 13 | | Register Controller |
@@ -5,8 +5,7 @@ |
||
5 | 5 | use Illuminate\Notifications\Notifiable; |
6 | 6 | use Illuminate\Foundation\Auth\User as Authenticatable; |
7 | 7 | |
8 | -class User extends Authenticatable |
|
9 | -{ |
|
8 | +class User extends Authenticatable { |
|
10 | 9 | use Notifiable; |
11 | 10 | |
12 | 11 | /** |