@@ -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\Support\Facades\Route; |
6 | 6 | use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; |
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 | * |
@@ -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 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -define('LARAVEL_START', microtime(true)); |
|
3 | +define('LARAVEL_START', microtime(TRUE)); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | |-------------------------------------------------------------------------- |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | |
32 | 32 | 'lifetime' => 120, |
33 | 33 | |
34 | - 'expire_on_close' => false, |
|
34 | + 'expire_on_close' => FALSE, |
|
35 | 35 | |
36 | 36 | /* |
37 | 37 | |-------------------------------------------------------------------------- |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | | |
45 | 45 | */ |
46 | 46 | |
47 | - 'encrypt' => false, |
|
47 | + 'encrypt' => FALSE, |
|
48 | 48 | |
49 | 49 | /* |
50 | 50 | |-------------------------------------------------------------------------- |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | | |
71 | 71 | */ |
72 | 72 | |
73 | - 'connection' => null, |
|
73 | + 'connection' => NULL, |
|
74 | 74 | |
75 | 75 | /* |
76 | 76 | |-------------------------------------------------------------------------- |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | | |
97 | 97 | */ |
98 | 98 | |
99 | - 'store' => null, |
|
99 | + 'store' => NULL, |
|
100 | 100 | |
101 | 101 | /* |
102 | 102 | |-------------------------------------------------------------------------- |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | | |
149 | 149 | */ |
150 | 150 | |
151 | - 'domain' => env('SESSION_DOMAIN', null), |
|
151 | + 'domain' => env('SESSION_DOMAIN', NULL), |
|
152 | 152 | |
153 | 153 | /* |
154 | 154 | |-------------------------------------------------------------------------- |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | | |
162 | 162 | */ |
163 | 163 | |
164 | - 'secure' => env('SESSION_SECURE_COOKIE', false), |
|
164 | + 'secure' => env('SESSION_SECURE_COOKIE', FALSE), |
|
165 | 165 | |
166 | 166 | /* |
167 | 167 | |-------------------------------------------------------------------------- |
@@ -174,6 +174,6 @@ discard block |
||
174 | 174 | | |
175 | 175 | */ |
176 | 176 | |
177 | - 'http_only' => true, |
|
177 | + 'http_only' => TRUE, |
|
178 | 178 | |
179 | 179 | ]; |
@@ -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 | ], |
@@ -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' => [ |
@@ -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 | } |
@@ -2,8 +2,7 @@ |
||
2 | 2 | |
3 | 3 | namespace Bludata\Doctrine\Common\Contracts; |
4 | 4 | |
5 | -interface Repository |
|
6 | -{ |
|
5 | +interface Repository { |
|
7 | 6 | public function findAll(); |
8 | 7 | |
9 | 8 | public function findBy(array $filters): array; |
@@ -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 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use DateTime; |
6 | 6 | |
7 | -interface Entity |
|
8 | -{ |
|
7 | +interface Entity { |
|
9 | 8 | public function getId(); |
10 | 9 | |
11 | 10 | public function getCreatedAt(): DateTime; |
@@ -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 |