@@ -1,17 +1,17 @@ discard block |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Http\Middleware; |
|
3 | + namespace App\Http\Middleware; |
|
4 | 4 | |
5 | -use Closure; |
|
6 | -use Illuminate\Http\Request; |
|
7 | -use Illuminate\Support\Facades\Config; |
|
5 | + use Closure; |
|
6 | + use Illuminate\Http\Request; |
|
7 | + use Illuminate\Support\Facades\Config; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class Cors. |
11 | 11 | */ |
12 | -class Cors |
|
13 | -{ |
|
14 | - /** |
|
12 | + class Cors |
|
13 | + { |
|
14 | + /** |
|
15 | 15 | * Handle an incoming request. |
16 | 16 | * |
17 | 17 | * @param Request $request |
@@ -19,10 +19,10 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @return mixed |
21 | 21 | */ |
22 | - public function handle($request, Closure $next) |
|
23 | - { |
|
24 | - return $next($request) |
|
25 | - ->header('Access-Control-Allow-Origin', implode(',', Config::get('chocolatey.cors'))) |
|
26 | - ->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); |
|
27 | - } |
|
22 | + public function handle($request, Closure $next) |
|
23 | + { |
|
24 | + return $next($request) |
|
25 | + ->header('Access-Control-Allow-Origin', implode(',', Config::get('chocolatey.cors'))) |
|
26 | + ->header('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE, OPTIONS'); |
|
27 | + } |
|
28 | 28 | } |
@@ -1,24 +1,24 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Providers; |
|
3 | + namespace App\Providers; |
|
4 | 4 | |
5 | -use App\Helpers\Mail; |
|
6 | -use Illuminate\Support\ServiceProvider; |
|
5 | + use App\Helpers\Mail; |
|
6 | + use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class MailServiceProvider. |
10 | 10 | */ |
11 | -class MailServiceProvider extends ServiceProvider |
|
12 | -{ |
|
13 | - /** |
|
11 | + class MailServiceProvider extends ServiceProvider |
|
12 | + { |
|
13 | + /** |
|
14 | 14 | * Register the Session Service Provider. |
15 | 15 | * |
16 | 16 | * @return void |
17 | 17 | */ |
18 | - public function register() |
|
19 | - { |
|
20 | - $this->app->bind('chocomail', function () { |
|
21 | - return Mail::getInstance(); |
|
22 | - }); |
|
23 | - } |
|
18 | + public function register() |
|
19 | + { |
|
20 | + $this->app->bind('chocomail', function () { |
|
21 | + return Mail::getInstance(); |
|
22 | + }); |
|
23 | + } |
|
24 | 24 | } |
@@ -1,24 +1,24 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Providers; |
|
3 | + namespace App\Providers; |
|
4 | 4 | |
5 | -use App\Helpers\User; |
|
6 | -use Illuminate\Support\ServiceProvider; |
|
5 | + use App\Helpers\User; |
|
6 | + use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class UserServiceProvider. |
10 | 10 | */ |
11 | -class UserServiceProvider extends ServiceProvider |
|
12 | -{ |
|
13 | - /** |
|
11 | + class UserServiceProvider extends ServiceProvider |
|
12 | + { |
|
13 | + /** |
|
14 | 14 | * Register the Session Service Provider. |
15 | 15 | * |
16 | 16 | * @return void |
17 | 17 | */ |
18 | - public function register() |
|
19 | - { |
|
20 | - $this->app->bind('chocouser', function () { |
|
21 | - return User::getInstance(); |
|
22 | - }); |
|
23 | - } |
|
18 | + public function register() |
|
19 | + { |
|
20 | + $this->app->bind('chocouser', function () { |
|
21 | + return User::getInstance(); |
|
22 | + }); |
|
23 | + } |
|
24 | 24 | } |
@@ -1,26 +1,26 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Providers; |
|
3 | + namespace App\Providers; |
|
4 | 4 | |
5 | -use App\Helpers\Session; |
|
6 | -use Illuminate\Support\ServiceProvider; |
|
5 | + use App\Helpers\Session; |
|
6 | + use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class SessionServiceProvider. |
10 | 10 | */ |
11 | -class SessionServiceProvider extends ServiceProvider |
|
12 | -{ |
|
13 | - /** |
|
11 | + class SessionServiceProvider extends ServiceProvider |
|
12 | + { |
|
13 | + /** |
|
14 | 14 | * Register the Session Service Provider. |
15 | 15 | * |
16 | 16 | * @return void |
17 | 17 | */ |
18 | - public function register() |
|
19 | - { |
|
20 | - $this->app->bind('chocosession', function () { |
|
21 | - return Session::getInstance(); |
|
22 | - }); |
|
18 | + public function register() |
|
19 | + { |
|
20 | + $this->app->bind('chocosession', function () { |
|
21 | + return Session::getInstance(); |
|
22 | + }); |
|
23 | 23 | |
24 | - Session::getInstance()->start(); |
|
25 | - } |
|
24 | + Session::getInstance()->start(); |
|
25 | + } |
|
26 | 26 | } |
@@ -1,24 +1,24 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Providers; |
|
3 | + namespace App\Providers; |
|
4 | 4 | |
5 | -use App\Helpers\Nux; |
|
6 | -use Illuminate\Support\ServiceProvider; |
|
5 | + use App\Helpers\Nux; |
|
6 | + use Illuminate\Support\ServiceProvider; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class NuxServiceProvider. |
10 | 10 | */ |
11 | -class NuxServiceProvider extends ServiceProvider |
|
12 | -{ |
|
13 | - /** |
|
11 | + class NuxServiceProvider extends ServiceProvider |
|
12 | + { |
|
13 | + /** |
|
14 | 14 | * Register the Session Service Provider. |
15 | 15 | * |
16 | 16 | * @return void |
17 | 17 | */ |
18 | - public function register() |
|
19 | - { |
|
20 | - $this->app->bind('choconux', function () { |
|
21 | - return Nux::getInstance(); |
|
22 | - }); |
|
23 | - } |
|
18 | + public function register() |
|
19 | + { |
|
20 | + $this->app->bind('choconux', function () { |
|
21 | + return Nux::getInstance(); |
|
22 | + }); |
|
23 | + } |
|
24 | 24 | } |
@@ -1,21 +1,21 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Facades; |
|
3 | + namespace App\Facades; |
|
4 | 4 | |
5 | -use Illuminate\Support\Facades\Facade; |
|
5 | + use Illuminate\Support\Facades\Facade; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Class User. |
9 | 9 | */ |
10 | -class User extends Facade |
|
11 | -{ |
|
12 | - /** |
|
10 | + class User extends Facade |
|
11 | + { |
|
12 | + /** |
|
13 | 13 | * Get the registered name of the component. |
14 | 14 | * |
15 | 15 | * @return string |
16 | 16 | */ |
17 | - protected static function getFacadeAccessor() |
|
18 | - { |
|
19 | - return 'chocouser'; |
|
20 | - } |
|
17 | + protected static function getFacadeAccessor() |
|
18 | + { |
|
19 | + return 'chocouser'; |
|
20 | + } |
|
21 | 21 | } |
@@ -1,21 +1,21 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Facades; |
|
3 | + namespace App\Facades; |
|
4 | 4 | |
5 | -use Illuminate\Support\Facades\Facade; |
|
5 | + use Illuminate\Support\Facades\Facade; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Class Mail. |
9 | 9 | */ |
10 | -class Mail extends Facade |
|
11 | -{ |
|
12 | - /** |
|
10 | + class Mail extends Facade |
|
11 | + { |
|
12 | + /** |
|
13 | 13 | * Get the registered name of the component. |
14 | 14 | * |
15 | 15 | * @return string |
16 | 16 | */ |
17 | - protected static function getFacadeAccessor() |
|
18 | - { |
|
19 | - return 'chocomail'; |
|
20 | - } |
|
17 | + protected static function getFacadeAccessor() |
|
18 | + { |
|
19 | + return 'chocomail'; |
|
20 | + } |
|
21 | 21 | } |
@@ -1,21 +1,21 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Facades; |
|
3 | + namespace App\Facades; |
|
4 | 4 | |
5 | -use Illuminate\Support\Facades\Facade; |
|
5 | + use Illuminate\Support\Facades\Facade; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Class Nux. |
9 | 9 | */ |
10 | -class Nux extends Facade |
|
11 | -{ |
|
12 | - /** |
|
10 | + class Nux extends Facade |
|
11 | + { |
|
12 | + /** |
|
13 | 13 | * Get the registered name of the component. |
14 | 14 | * |
15 | 15 | * @return string |
16 | 16 | */ |
17 | - protected static function getFacadeAccessor() |
|
18 | - { |
|
19 | - return 'choconux'; |
|
20 | - } |
|
17 | + protected static function getFacadeAccessor() |
|
18 | + { |
|
19 | + return 'choconux'; |
|
20 | + } |
|
21 | 21 | } |
@@ -1,21 +1,21 @@ |
||
1 | -<?php |
|
1 | + <?php |
|
2 | 2 | |
3 | -namespace App\Facades; |
|
3 | + namespace App\Facades; |
|
4 | 4 | |
5 | -use Illuminate\Support\Facades\Facade; |
|
5 | + use Illuminate\Support\Facades\Facade; |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * Class Session. |
9 | 9 | */ |
10 | -class Session extends Facade |
|
11 | -{ |
|
12 | - /** |
|
10 | + class Session extends Facade |
|
11 | + { |
|
12 | + /** |
|
13 | 13 | * Get the registered name of the component. |
14 | 14 | * |
15 | 15 | * @return string |
16 | 16 | */ |
17 | - protected static function getFacadeAccessor() |
|
18 | - { |
|
19 | - return 'chocosession'; |
|
20 | - } |
|
17 | + protected static function getFacadeAccessor() |
|
18 | + { |
|
19 | + return 'chocosession'; |
|
20 | + } |
|
21 | 21 | } |