@@ -15,13 +15,13 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | class Crypt extends Facade |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * Get the registered name of the component. |
|
| 20 | - * |
|
| 21 | - * @return string |
|
| 22 | - */ |
|
| 23 | - protected static function getFacadeAccessor() |
|
| 24 | - { |
|
| 25 | - return 'encrypter'; |
|
| 26 | - } |
|
| 18 | + /** |
|
| 19 | + * Get the registered name of the component. |
|
| 20 | + * |
|
| 21 | + * @return string |
|
| 22 | + */ |
|
| 23 | + protected static function getFacadeAccessor() |
|
| 24 | + { |
|
| 25 | + return 'encrypter'; |
|
| 26 | + } |
|
| 27 | 27 | } |
@@ -11,15 +11,13 @@ |
||
| 11 | 11 | /** |
| 12 | 12 | * @see \Illuminate\Encryption\Encrypter |
| 13 | 13 | */ |
| 14 | -class Crypt extends Facade |
|
| 15 | -{ |
|
| 14 | +class Crypt 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 'encrypter'; |
| 24 | 22 | } |
| 25 | 23 | } |
@@ -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 | } |