@@ -91,13 +91,13 @@ |
||
91 | 91 | */ |
92 | 92 | class Request extends Facade |
93 | 93 | { |
94 | - /** |
|
95 | - * Get the registered name of the component. |
|
96 | - * |
|
97 | - * @return string |
|
98 | - */ |
|
99 | - protected static function getFacadeAccessor() |
|
100 | - { |
|
101 | - return 'request'; |
|
102 | - } |
|
94 | + /** |
|
95 | + * Get the registered name of the component. |
|
96 | + * |
|
97 | + * @return string |
|
98 | + */ |
|
99 | + protected static function getFacadeAccessor() |
|
100 | + { |
|
101 | + return 'request'; |
|
102 | + } |
|
103 | 103 | } |
@@ -11,15 +11,13 @@ |
||
11 | 11 | /** |
12 | 12 | * @see \Illuminate\Http\Request |
13 | 13 | */ |
14 | -class Request extends Facade |
|
15 | -{ |
|
14 | +class Request extends Facade { |
|
16 | 15 | /** |
17 | 16 | * Get the registered name of the component. |
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
20 | + protected static function getFacadeAccessor() { |
|
23 | 21 | return 'request'; |
24 | 22 | } |
25 | 23 | } |
@@ -23,13 +23,13 @@ |
||
23 | 23 | */ |
24 | 24 | class Redirect extends Facade |
25 | 25 | { |
26 | - /** |
|
27 | - * Get the registered name of the component. |
|
28 | - * |
|
29 | - * @return string |
|
30 | - */ |
|
31 | - protected static function getFacadeAccessor() |
|
32 | - { |
|
33 | - return 'redirect'; |
|
34 | - } |
|
26 | + /** |
|
27 | + * Get the registered name of the component. |
|
28 | + * |
|
29 | + * @return string |
|
30 | + */ |
|
31 | + protected static function getFacadeAccessor() |
|
32 | + { |
|
33 | + return 'redirect'; |
|
34 | + } |
|
35 | 35 | } |
@@ -11,15 +11,13 @@ |
||
11 | 11 | /** |
12 | 12 | * @see \Illuminate\Routing\Redirector |
13 | 13 | */ |
14 | -class Redirect extends Facade |
|
15 | -{ |
|
14 | +class Redirect extends Facade { |
|
16 | 15 | /** |
17 | 16 | * Get the registered name of the component. |
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
20 | + protected static function getFacadeAccessor() { |
|
23 | 21 | return 'redirect'; |
24 | 22 | } |
25 | 23 | } |
@@ -14,13 +14,13 @@ |
||
14 | 14 | */ |
15 | 15 | class Lang extends Facade |
16 | 16 | { |
17 | - /** |
|
18 | - * Get the registered name of the component. |
|
19 | - * |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - protected static function getFacadeAccessor() |
|
23 | - { |
|
24 | - return 'translator'; |
|
25 | - } |
|
17 | + /** |
|
18 | + * Get the registered name of the component. |
|
19 | + * |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + protected static function getFacadeAccessor() |
|
23 | + { |
|
24 | + return 'translator'; |
|
25 | + } |
|
26 | 26 | } |
@@ -5,15 +5,13 @@ |
||
5 | 5 | /** |
6 | 6 | * @see \Illuminate\Translation\Translator |
7 | 7 | */ |
8 | -class Lang extends Facade |
|
9 | -{ |
|
8 | +class Lang extends Facade { |
|
10 | 9 | /** |
11 | 10 | * Get the registered name of the component. |
12 | 11 | * |
13 | 12 | * @return string |
14 | 13 | */ |
15 | - protected static function getFacadeAccessor() |
|
16 | - { |
|
14 | + protected static function getFacadeAccessor() { |
|
17 | 15 | return 'translator'; |
18 | 16 | } |
19 | 17 | } |
@@ -13,13 +13,13 @@ |
||
13 | 13 | */ |
14 | 14 | class Hash extends Facade |
15 | 15 | { |
16 | - /** |
|
17 | - * Get the registered name of the component. |
|
18 | - * |
|
19 | - * @return string |
|
20 | - */ |
|
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
23 | - return 'hash'; |
|
24 | - } |
|
16 | + /** |
|
17 | + * Get the registered name of the component. |
|
18 | + * |
|
19 | + * @return string |
|
20 | + */ |
|
21 | + protected static function getFacadeAccessor() |
|
22 | + { |
|
23 | + return 'hash'; |
|
24 | + } |
|
25 | 25 | } |
@@ -11,15 +11,13 @@ |
||
11 | 11 | /** |
12 | 12 | * @see \Illuminate\Hashing\BcryptHasher |
13 | 13 | */ |
14 | -class Hash extends Facade |
|
15 | -{ |
|
14 | +class Hash extends Facade { |
|
16 | 15 | /** |
17 | 16 | * Get the registered name of the component. |
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
20 | + protected static function getFacadeAccessor() { |
|
23 | 21 | return 'hash'; |
24 | 22 | } |
25 | 23 | } |
@@ -14,13 +14,13 @@ |
||
14 | 14 | */ |
15 | 15 | class Config extends Facade |
16 | 16 | { |
17 | - /** |
|
18 | - * Get the registered name of the component. |
|
19 | - * |
|
20 | - * @return string |
|
21 | - */ |
|
22 | - protected static function getFacadeAccessor() |
|
23 | - { |
|
24 | - return 'config'; |
|
25 | - } |
|
17 | + /** |
|
18 | + * Get the registered name of the component. |
|
19 | + * |
|
20 | + * @return string |
|
21 | + */ |
|
22 | + protected static function getFacadeAccessor() |
|
23 | + { |
|
24 | + return 'config'; |
|
25 | + } |
|
26 | 26 | } |
@@ -11,15 +11,13 @@ |
||
11 | 11 | /** |
12 | 12 | * @see \Illuminate\Config\Repository |
13 | 13 | */ |
14 | -class Config extends Facade |
|
15 | -{ |
|
14 | +class Config extends Facade { |
|
16 | 15 | /** |
17 | 16 | * Get the registered name of the component. |
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
20 | + protected static function getFacadeAccessor() { |
|
23 | 21 | return 'config'; |
24 | 22 | } |
25 | 23 | } |
@@ -26,13 +26,13 @@ |
||
26 | 26 | */ |
27 | 27 | class URL extends Facade |
28 | 28 | { |
29 | - /** |
|
30 | - * Get the registered name of the component. |
|
31 | - * |
|
32 | - * @return string |
|
33 | - */ |
|
34 | - protected static function getFacadeAccessor() |
|
35 | - { |
|
36 | - return 'url'; |
|
37 | - } |
|
29 | + /** |
|
30 | + * Get the registered name of the component. |
|
31 | + * |
|
32 | + * @return string |
|
33 | + */ |
|
34 | + protected static function getFacadeAccessor() |
|
35 | + { |
|
36 | + return 'url'; |
|
37 | + } |
|
38 | 38 | } |
@@ -11,15 +11,13 @@ |
||
11 | 11 | /** |
12 | 12 | * @see \Illuminate\Routing\UrlGenerator |
13 | 13 | */ |
14 | -class URL extends Facade |
|
15 | -{ |
|
14 | +class URL extends Facade { |
|
16 | 15 | /** |
17 | 16 | * Get the registered name of the component. |
18 | 17 | * |
19 | 18 | * @return string |
20 | 19 | */ |
21 | - protected static function getFacadeAccessor() |
|
22 | - { |
|
20 | + protected static function getFacadeAccessor() { |
|
23 | 21 | return 'url'; |
24 | 22 | } |
25 | 23 | } |
@@ -26,13 +26,13 @@ |
||
26 | 26 | */ |
27 | 27 | class Gate extends Facade |
28 | 28 | { |
29 | - /** |
|
30 | - * Get the registered name of the component. |
|
31 | - * |
|
32 | - * @return string |
|
33 | - */ |
|
34 | - protected static function getFacadeAccessor() |
|
35 | - { |
|
36 | - return GateContract::class; |
|
37 | - } |
|
29 | + /** |
|
30 | + * Get the registered name of the component. |
|
31 | + * |
|
32 | + * @return string |
|
33 | + */ |
|
34 | + protected static function getFacadeAccessor() |
|
35 | + { |
|
36 | + return GateContract::class; |
|
37 | + } |
|
38 | 38 | } |
@@ -7,15 +7,13 @@ |
||
7 | 7 | /** |
8 | 8 | * @see \Illuminate\Contracts\Auth\Access\Gate |
9 | 9 | */ |
10 | -class Gate extends Facade |
|
11 | -{ |
|
10 | +class Gate extends Facade { |
|
12 | 11 | /** |
13 | 12 | * Get the registered name of the component. |
14 | 13 | * |
15 | 14 | * @return string |
16 | 15 | */ |
17 | - protected static function getFacadeAccessor() |
|
18 | - { |
|
16 | + protected static function getFacadeAccessor() { |
|
19 | 17 | return GateContract::class; |
20 | 18 | } |
21 | 19 | } |
@@ -7,63 +7,63 @@ |
||
7 | 7 | |
8 | 8 | trait CapsuleManagerTrait |
9 | 9 | { |
10 | - /** |
|
11 | - * The current globally used instance. |
|
12 | - * |
|
13 | - * @var object |
|
14 | - */ |
|
15 | - protected static $instance; |
|
10 | + /** |
|
11 | + * The current globally used instance. |
|
12 | + * |
|
13 | + * @var object |
|
14 | + */ |
|
15 | + protected static $instance; |
|
16 | 16 | |
17 | - /** |
|
18 | - * The container instance. |
|
19 | - * |
|
20 | - * @var \Illuminate\Contracts\Container\Container |
|
21 | - */ |
|
22 | - protected $container; |
|
17 | + /** |
|
18 | + * The container instance. |
|
19 | + * |
|
20 | + * @var \Illuminate\Contracts\Container\Container |
|
21 | + */ |
|
22 | + protected $container; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Setup the IoC container instance. |
|
26 | - * |
|
27 | - * @param \Illuminate\Contracts\Container\Container $container |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - protected function setupContainer(Container $container) |
|
31 | - { |
|
32 | - $this->container = $container; |
|
24 | + /** |
|
25 | + * Setup the IoC container instance. |
|
26 | + * |
|
27 | + * @param \Illuminate\Contracts\Container\Container $container |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + protected function setupContainer(Container $container) |
|
31 | + { |
|
32 | + $this->container = $container; |
|
33 | 33 | |
34 | - if (! $this->container->bound('config')) { |
|
35 | - $this->container->instance('config', new Fluent); |
|
36 | - } |
|
37 | - } |
|
34 | + if (! $this->container->bound('config')) { |
|
35 | + $this->container->instance('config', new Fluent); |
|
36 | + } |
|
37 | + } |
|
38 | 38 | |
39 | - /** |
|
40 | - * Make this capsule instance available globally. |
|
41 | - * |
|
42 | - * @return void |
|
43 | - */ |
|
44 | - public function setAsGlobal() |
|
45 | - { |
|
46 | - static::$instance = $this; |
|
47 | - } |
|
39 | + /** |
|
40 | + * Make this capsule instance available globally. |
|
41 | + * |
|
42 | + * @return void |
|
43 | + */ |
|
44 | + public function setAsGlobal() |
|
45 | + { |
|
46 | + static::$instance = $this; |
|
47 | + } |
|
48 | 48 | |
49 | - /** |
|
50 | - * Get the IoC container instance. |
|
51 | - * |
|
52 | - * @return \Illuminate\Contracts\Container\Container |
|
53 | - */ |
|
54 | - public function getContainer() |
|
55 | - { |
|
56 | - return $this->container; |
|
57 | - } |
|
49 | + /** |
|
50 | + * Get the IoC container instance. |
|
51 | + * |
|
52 | + * @return \Illuminate\Contracts\Container\Container |
|
53 | + */ |
|
54 | + public function getContainer() |
|
55 | + { |
|
56 | + return $this->container; |
|
57 | + } |
|
58 | 58 | |
59 | - /** |
|
60 | - * Set the IoC container instance. |
|
61 | - * |
|
62 | - * @param \Illuminate\Contracts\Container\Container $container |
|
63 | - * @return void |
|
64 | - */ |
|
65 | - public function setContainer(Container $container) |
|
66 | - { |
|
67 | - $this->container = $container; |
|
68 | - } |
|
59 | + /** |
|
60 | + * Set the IoC container instance. |
|
61 | + * |
|
62 | + * @param \Illuminate\Contracts\Container\Container $container |
|
63 | + * @return void |
|
64 | + */ |
|
65 | + public function setContainer(Container $container) |
|
66 | + { |
|
67 | + $this->container = $container; |
|
68 | + } |
|
69 | 69 | } |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | * @param \Illuminate\Contracts\Container\Container $container |
28 | 28 | * @return void |
29 | 29 | */ |
30 | - protected function setupContainer(Container $container) |
|
30 | + protected function setupContainer( Container $container ) |
|
31 | 31 | { |
32 | 32 | $this->container = $container; |
33 | 33 | |
34 | - if (! $this->container->bound('config')) { |
|
35 | - $this->container->instance('config', new Fluent); |
|
34 | + if ( ! $this->container->bound( 'config' ) ) { |
|
35 | + $this->container->instance( 'config', new Fluent ); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param \Illuminate\Contracts\Container\Container $container |
63 | 63 | * @return void |
64 | 64 | */ |
65 | - public function setContainer(Container $container) |
|
65 | + public function setContainer( Container $container ) |
|
66 | 66 | { |
67 | 67 | $this->container = $container; |
68 | 68 | } |
@@ -5,8 +5,7 @@ discard block |
||
5 | 5 | use Illuminate\Support\Fluent; |
6 | 6 | use Illuminate\Contracts\Container\Container; |
7 | 7 | |
8 | -trait CapsuleManagerTrait |
|
9 | -{ |
|
8 | +trait CapsuleManagerTrait { |
|
10 | 9 | /** |
11 | 10 | * The current globally used instance. |
12 | 11 | * |
@@ -27,8 +26,7 @@ discard block |
||
27 | 26 | * @param \Illuminate\Contracts\Container\Container $container |
28 | 27 | * @return void |
29 | 28 | */ |
30 | - protected function setupContainer(Container $container) |
|
31 | - { |
|
29 | + protected function setupContainer(Container $container) { |
|
32 | 30 | $this->container = $container; |
33 | 31 | |
34 | 32 | if (! $this->container->bound('config')) { |
@@ -41,8 +39,7 @@ discard block |
||
41 | 39 | * |
42 | 40 | * @return void |
43 | 41 | */ |
44 | - public function setAsGlobal() |
|
45 | - { |
|
42 | + public function setAsGlobal() { |
|
46 | 43 | static::$instance = $this; |
47 | 44 | } |
48 | 45 | |
@@ -51,8 +48,7 @@ discard block |
||
51 | 48 | * |
52 | 49 | * @return \Illuminate\Contracts\Container\Container |
53 | 50 | */ |
54 | - public function getContainer() |
|
55 | - { |
|
51 | + public function getContainer() { |
|
56 | 52 | return $this->container; |
57 | 53 | } |
58 | 54 | |
@@ -62,8 +58,7 @@ discard block |
||
62 | 58 | * @param \Illuminate\Contracts\Container\Container $container |
63 | 59 | * @return void |
64 | 60 | */ |
65 | - public function setContainer(Container $container) |
|
66 | - { |
|
61 | + public function setContainer(Container $container) { |
|
67 | 62 | $this->container = $container; |
68 | 63 | } |
69 | 64 | } |
@@ -4,49 +4,49 @@ |
||
4 | 4 | |
5 | 5 | class AggregateServiceProvider extends ServiceProvider |
6 | 6 | { |
7 | - /** |
|
8 | - * The provider class names. |
|
9 | - * |
|
10 | - * @var array |
|
11 | - */ |
|
12 | - protected $providers = []; |
|
13 | - |
|
14 | - /** |
|
15 | - * An array of the service provider instances. |
|
16 | - * |
|
17 | - * @var array |
|
18 | - */ |
|
19 | - protected $instances = []; |
|
20 | - |
|
21 | - /** |
|
22 | - * Register the service provider. |
|
23 | - * |
|
24 | - * @return void |
|
25 | - */ |
|
26 | - public function register() |
|
27 | - { |
|
28 | - $this->instances = []; |
|
29 | - |
|
30 | - foreach ($this->providers as $provider) { |
|
31 | - $this->instances[] = $this->app->register($provider); |
|
32 | - } |
|
33 | - } |
|
34 | - |
|
35 | - /** |
|
36 | - * Get the services provided by the provider. |
|
37 | - * |
|
38 | - * @return array |
|
39 | - */ |
|
40 | - public function provides() |
|
41 | - { |
|
42 | - $provides = []; |
|
43 | - |
|
44 | - foreach ($this->providers as $provider) { |
|
45 | - $instance = $this->app->resolveProvider($provider); |
|
46 | - |
|
47 | - $provides = array_merge($provides, $instance->provides()); |
|
48 | - } |
|
49 | - |
|
50 | - return $provides; |
|
51 | - } |
|
7 | + /** |
|
8 | + * The provider class names. |
|
9 | + * |
|
10 | + * @var array |
|
11 | + */ |
|
12 | + protected $providers = []; |
|
13 | + |
|
14 | + /** |
|
15 | + * An array of the service provider instances. |
|
16 | + * |
|
17 | + * @var array |
|
18 | + */ |
|
19 | + protected $instances = []; |
|
20 | + |
|
21 | + /** |
|
22 | + * Register the service provider. |
|
23 | + * |
|
24 | + * @return void |
|
25 | + */ |
|
26 | + public function register() |
|
27 | + { |
|
28 | + $this->instances = []; |
|
29 | + |
|
30 | + foreach ($this->providers as $provider) { |
|
31 | + $this->instances[] = $this->app->register($provider); |
|
32 | + } |
|
33 | + } |
|
34 | + |
|
35 | + /** |
|
36 | + * Get the services provided by the provider. |
|
37 | + * |
|
38 | + * @return array |
|
39 | + */ |
|
40 | + public function provides() |
|
41 | + { |
|
42 | + $provides = []; |
|
43 | + |
|
44 | + foreach ($this->providers as $provider) { |
|
45 | + $instance = $this->app->resolveProvider($provider); |
|
46 | + |
|
47 | + $provides = array_merge($provides, $instance->provides()); |
|
48 | + } |
|
49 | + |
|
50 | + return $provides; |
|
51 | + } |
|
52 | 52 | } |
@@ -9,14 +9,14 @@ discard block |
||
9 | 9 | * |
10 | 10 | * @var array |
11 | 11 | */ |
12 | - protected $providers = []; |
|
12 | + protected $providers = [ ]; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * An array of the service provider instances. |
16 | 16 | * |
17 | 17 | * @var array |
18 | 18 | */ |
19 | - protected $instances = []; |
|
19 | + protected $instances = [ ]; |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Register the service provider. |
@@ -25,10 +25,10 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function register() |
27 | 27 | { |
28 | - $this->instances = []; |
|
28 | + $this->instances = [ ]; |
|
29 | 29 | |
30 | - foreach ($this->providers as $provider) { |
|
31 | - $this->instances[] = $this->app->register($provider); |
|
30 | + foreach ( $this->providers as $provider ) { |
|
31 | + $this->instances[ ] = $this->app->register( $provider ); |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | |
@@ -39,12 +39,12 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public function provides() |
41 | 41 | { |
42 | - $provides = []; |
|
42 | + $provides = [ ]; |
|
43 | 43 | |
44 | - foreach ($this->providers as $provider) { |
|
45 | - $instance = $this->app->resolveProvider($provider); |
|
44 | + foreach ( $this->providers as $provider ) { |
|
45 | + $instance = $this->app->resolveProvider( $provider ); |
|
46 | 46 | |
47 | - $provides = array_merge($provides, $instance->provides()); |
|
47 | + $provides = array_merge( $provides, $instance->provides() ); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return $provides; |
@@ -2,8 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Illuminate\Support; |
4 | 4 | |
5 | -class AggregateServiceProvider extends ServiceProvider |
|
6 | -{ |
|
5 | +class AggregateServiceProvider extends ServiceProvider { |
|
7 | 6 | /** |
8 | 7 | * The provider class names. |
9 | 8 | * |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | * |
24 | 23 | * @return void |
25 | 24 | */ |
26 | - public function register() |
|
27 | - { |
|
25 | + public function register() { |
|
28 | 26 | $this->instances = []; |
29 | 27 | |
30 | 28 | foreach ($this->providers as $provider) { |
@@ -37,8 +35,7 @@ discard block |
||
37 | 35 | * |
38 | 36 | * @return array |
39 | 37 | */ |
40 | - public function provides() |
|
41 | - { |
|
38 | + public function provides() { |
|
42 | 39 | $provides = []; |
43 | 40 | |
44 | 41 | foreach ($this->providers as $provider) { |