@@ -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 | } |
@@ -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,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 | } |
@@ -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 | } |
@@ -6,35 +6,35 @@ |
||
| 6 | 6 | |
| 7 | 7 | interface Pipeline |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Set the traveler object being sent on the pipeline. |
|
| 11 | - * |
|
| 12 | - * @param mixed $traveler |
|
| 13 | - * @return $this |
|
| 14 | - */ |
|
| 15 | - public function send($traveler); |
|
| 9 | + /** |
|
| 10 | + * Set the traveler object being sent on the pipeline. |
|
| 11 | + * |
|
| 12 | + * @param mixed $traveler |
|
| 13 | + * @return $this |
|
| 14 | + */ |
|
| 15 | + public function send($traveler); |
|
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * Set the stops of the pipeline. |
|
| 19 | - * |
|
| 20 | - * @param dynamic|array $stops |
|
| 21 | - * @return $this |
|
| 22 | - */ |
|
| 23 | - public function through($stops); |
|
| 17 | + /** |
|
| 18 | + * Set the stops of the pipeline. |
|
| 19 | + * |
|
| 20 | + * @param dynamic|array $stops |
|
| 21 | + * @return $this |
|
| 22 | + */ |
|
| 23 | + public function through($stops); |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Set the method to call on the stops. |
|
| 27 | - * |
|
| 28 | - * @param string $method |
|
| 29 | - * @return $this |
|
| 30 | - */ |
|
| 31 | - public function via($method); |
|
| 25 | + /** |
|
| 26 | + * Set the method to call on the stops. |
|
| 27 | + * |
|
| 28 | + * @param string $method |
|
| 29 | + * @return $this |
|
| 30 | + */ |
|
| 31 | + public function via($method); |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * Run the pipeline with a final destination callback. |
|
| 35 | - * |
|
| 36 | - * @param \Closure $destination |
|
| 37 | - * @return mixed |
|
| 38 | - */ |
|
| 39 | - public function then(Closure $destination); |
|
| 33 | + /** |
|
| 34 | + * Run the pipeline with a final destination callback. |
|
| 35 | + * |
|
| 36 | + * @param \Closure $destination |
|
| 37 | + * @return mixed |
|
| 38 | + */ |
|
| 39 | + public function then(Closure $destination); |
|
| 40 | 40 | } |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface Hub |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Send an object through one of the available pipelines. |
|
| 9 | - * |
|
| 10 | - * @param mixed $object |
|
| 11 | - * @param string|null $pipeline |
|
| 12 | - * @return mixed |
|
| 13 | - */ |
|
| 14 | - public function pipe($object, $pipeline = null); |
|
| 7 | + /** |
|
| 8 | + * Send an object through one of the available pipelines. |
|
| 9 | + * |
|
| 10 | + * @param mixed $object |
|
| 11 | + * @param string|null $pipeline |
|
| 12 | + * @return mixed |
|
| 13 | + */ |
|
| 14 | + public function pipe($object, $pipeline = null); |
|
| 15 | 15 | } |
@@ -4,5 +4,5 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface ShouldBroadcastNow extends ShouldBroadcast |
| 6 | 6 | { |
| 7 | - // |
|
| 7 | + // |
|
| 8 | 8 | } |
@@ -4,30 +4,30 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface Broadcaster |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Authenticate the incoming request for a given channel. |
|
| 9 | - * |
|
| 10 | - * @param \Illuminate\Http\Request $request |
|
| 11 | - * @return mixed |
|
| 12 | - */ |
|
| 13 | - public function auth($request); |
|
| 7 | + /** |
|
| 8 | + * Authenticate the incoming request for a given channel. |
|
| 9 | + * |
|
| 10 | + * @param \Illuminate\Http\Request $request |
|
| 11 | + * @return mixed |
|
| 12 | + */ |
|
| 13 | + public function auth($request); |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * Return the valid authentication response. |
|
| 17 | - * |
|
| 18 | - * @param \Illuminate\Http\Request $request |
|
| 19 | - * @param mixed $result |
|
| 20 | - * @return mixed |
|
| 21 | - */ |
|
| 22 | - public function validAuthenticationResponse($request, $result); |
|
| 15 | + /** |
|
| 16 | + * Return the valid authentication response. |
|
| 17 | + * |
|
| 18 | + * @param \Illuminate\Http\Request $request |
|
| 19 | + * @param mixed $result |
|
| 20 | + * @return mixed |
|
| 21 | + */ |
|
| 22 | + public function validAuthenticationResponse($request, $result); |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * Broadcast the given event. |
|
| 26 | - * |
|
| 27 | - * @param array $channels |
|
| 28 | - * @param string $event |
|
| 29 | - * @param array $payload |
|
| 30 | - * @return void |
|
| 31 | - */ |
|
| 32 | - public function broadcast(array $channels, $event, array $payload = []); |
|
| 24 | + /** |
|
| 25 | + * Broadcast the given event. |
|
| 26 | + * |
|
| 27 | + * @param array $channels |
|
| 28 | + * @param string $event |
|
| 29 | + * @param array $payload |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 32 | + public function broadcast(array $channels, $event, array $payload = []); |
|
| 33 | 33 | } |
@@ -4,10 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface MessageProvider |
| 6 | 6 | { |
| 7 | - /** |
|
| 8 | - * Get the messages for the instance. |
|
| 9 | - * |
|
| 10 | - * @return \Illuminate\Contracts\Support\MessageBag |
|
| 11 | - */ |
|
| 12 | - public function getMessageBag(); |
|
| 7 | + /** |
|
| 8 | + * Get the messages for the instance. |
|
| 9 | + * |
|
| 10 | + * @return \Illuminate\Contracts\Support\MessageBag |
|
| 11 | + */ |
|
| 12 | + public function getMessageBag(); |
|
| 13 | 13 | } |