@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Template extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Template::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Template::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Template extends Facade |
|
| 8 | -{ |
|
| 7 | +class Template extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Utility extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Utility::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Utility::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Utility extends Facade |
|
| 8 | -{ |
|
| 7 | +class Utility extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Theme extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Theme::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Theme::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Theme extends Facade |
|
| 8 | -{ |
|
| 7 | +class Theme extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Development extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Development::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Development::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Development extends Facade |
|
| 8 | -{ |
|
| 7 | +class Development extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class PostMeta extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\PostMeta::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\PostMeta::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class PostMeta extends Facade |
|
| 8 | -{ |
|
| 7 | +class PostMeta extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Media extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Media::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Media::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Media extends Facade |
|
| 8 | -{ |
|
| 7 | +class Media extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class Render extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\Render::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\Render::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class Render extends Facade |
|
| 8 | -{ |
|
| 7 | +class Render extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |
@@ -18,18 +18,18 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | protected static $instance; |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * The container's bound services. |
|
| 23 | - * |
|
| 24 | - * @var array |
|
| 25 | - */ |
|
| 21 | + /** |
|
| 22 | + * The container's bound services. |
|
| 23 | + * |
|
| 24 | + * @var array |
|
| 25 | + */ |
|
| 26 | 26 | protected $services = []; |
| 27 | 27 | |
| 28 | - /** |
|
| 29 | - * The container's bucket items |
|
| 30 | - * |
|
| 31 | - * @var array |
|
| 32 | - */ |
|
| 28 | + /** |
|
| 29 | + * The container's bucket items |
|
| 30 | + * |
|
| 31 | + * @var array |
|
| 32 | + */ |
|
| 33 | 33 | protected $bucket = []; |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public static function getInstance() |
| 41 | 41 | { |
| 42 | - if( is_null( static::$instance )) { |
|
| 42 | + if( is_null( static::$instance ) ) { |
|
| 43 | 43 | static::$instance = new static; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -74,10 +74,10 @@ discard block |
||
| 74 | 74 | ? $this->services[$abstract] |
| 75 | 75 | : $this->addNamespace( $abstract ); |
| 76 | 76 | |
| 77 | - if( is_callable( $service )) { |
|
| 77 | + if( is_callable( $service ) ) { |
|
| 78 | 78 | return call_user_func_array( $service, [$this] ); |
| 79 | 79 | } |
| 80 | - if( is_object( $service )) { |
|
| 80 | + if( is_object( $service ) ) { |
|
| 81 | 81 | return $service; |
| 82 | 82 | } |
| 83 | 83 | |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | public function singleton( $abstract, $concrete ) |
| 96 | 96 | { |
| 97 | - $this->bind( $abstract, $this->make( $concrete )); |
|
| 97 | + $this->bind( $abstract, $this->make( $concrete ) ); |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
@@ -133,8 +133,8 @@ discard block |
||
| 133 | 133 | */ |
| 134 | 134 | protected function addNamespace( $abstract ) |
| 135 | 135 | { |
| 136 | - if( strpos( $abstract, __NAMESPACE__ ) === false && !class_exists( $abstract )) { |
|
| 137 | - $abstract = __NAMESPACE__ . "\\$abstract"; |
|
| 136 | + if( strpos( $abstract, __NAMESPACE__ ) === false && !class_exists( $abstract ) ) { |
|
| 137 | + $abstract = __NAMESPACE__."\\$abstract"; |
|
| 138 | 138 | } |
| 139 | 139 | |
| 140 | 140 | return $abstract; |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | return $this->notInstantiable( $concrete ); |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | - if( is_null(( $constructor = $reflector->getConstructor() ))) { |
|
| 178 | + if( is_null( ( $constructor = $reflector->getConstructor() ) ) ) { |
|
| 179 | 179 | return new $concrete; |
| 180 | 180 | } |
| 181 | 181 | |
@@ -9,8 +9,7 @@ |
||
| 9 | 9 | use ReflectionParameter; |
| 10 | 10 | use RuntimeException; |
| 11 | 11 | |
| 12 | -abstract class Container |
|
| 13 | -{ |
|
| 12 | +abstract class Container { |
|
| 14 | 13 | /** |
| 15 | 14 | * The current globally available container (if any). |
| 16 | 15 | * |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | |
| 7 | 7 | class SiteMeta extends Facade |
| 8 | 8 | { |
| 9 | - /** |
|
| 10 | - * Get the fully qualified class name of the component. |
|
| 11 | - * |
|
| 12 | - * @return string |
|
| 13 | - */ |
|
| 14 | - protected static function getFacadeAccessor() |
|
| 15 | - { |
|
| 16 | - return \GeminiLabs\Castor\Helpers\SiteMeta::class; |
|
| 17 | - } |
|
| 9 | + /** |
|
| 10 | + * Get the fully qualified class name of the component. |
|
| 11 | + * |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 14 | + protected static function getFacadeAccessor() |
|
| 15 | + { |
|
| 16 | + return \GeminiLabs\Castor\Helpers\SiteMeta::class; |
|
| 17 | + } |
|
| 18 | 18 | } |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use GeminiLabs\Castor\Facade; |
| 6 | 6 | |
| 7 | -class SiteMeta extends Facade |
|
| 8 | -{ |
|
| 7 | +class SiteMeta extends Facade { |
|
| 9 | 8 | /** |
| 10 | 9 | * Get the fully qualified class name of the component. |
| 11 | 10 | * |