@@ -84,7 +84,7 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | /** |
87 | - * @param $name |
|
87 | + * @param string $name |
|
88 | 88 | * @return bool |
89 | 89 | */ |
90 | 90 | protected static function hasImplementation($name) : bool |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function getProviders() : array |
47 | 47 | { |
48 | - $method = 'resolve' . ucfirst($this->getImplementation()); |
|
48 | + $method = 'resolve'.ucfirst($this->getImplementation()); |
|
49 | 49 | |
50 | 50 | if (isset(static::$custom[$this->getImplementation()])) { |
51 | 51 | return $this->resolveCustom(static::$custom[$this->getImplementation()]); |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public static function __callStatic(string $name, array $arguments = []) : Component |
78 | 78 | { |
79 | - if (!static::hasImplementation($name)) { |
|
80 | - throw new InvalidArgumentException('Implementation [' . $name . '] does not exist'); |
|
79 | + if ( ! static::hasImplementation($name)) { |
|
80 | + throw new InvalidArgumentException('Implementation ['.$name.'] does not exist'); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | return new static($name, ...$arguments); |
@@ -89,6 +89,6 @@ discard block |
||
89 | 89 | */ |
90 | 90 | protected static function hasImplementation($name) : bool |
91 | 91 | { |
92 | - return isset(static::$custom[$name]) || method_exists(get_called_class(), 'resolve' . ucfirst($name)); |
|
92 | + return isset(static::$custom[$name]) || method_exists(get_called_class(), 'resolve'.ucfirst($name)); |
|
93 | 93 | } |
94 | 94 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | public function viewPaths() : array |
32 | 32 | { |
33 | 33 | return [ |
34 | - $this->basePath . DIRECTORY_SEPARATOR . 'resources' . DIRECTORY_SEPARATOR . 'views' |
|
34 | + $this->basePath.DIRECTORY_SEPARATOR.'resources'.DIRECTORY_SEPARATOR.'views' |
|
35 | 35 | ]; |
36 | 36 | } |
37 | 37 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function storagePath() : string |
42 | 42 | { |
43 | - return $this->basePath . DIRECTORY_SEPARATOR . 'storage'; |
|
43 | + return $this->basePath.DIRECTORY_SEPARATOR.'storage'; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function viewCachePath() : string |
50 | 50 | { |
51 | - return $this->storagePath() . DIRECTORY_SEPARATOR . 'views'; |
|
51 | + return $this->storagePath().DIRECTORY_SEPARATOR.'views'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
@@ -56,6 +56,6 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function cachePath() : string |
58 | 58 | { |
59 | - return $this->storagePath() . DIRECTORY_SEPARATOR . 'cache'; |
|
59 | + return $this->storagePath().DIRECTORY_SEPARATOR.'cache'; |
|
60 | 60 | } |
61 | 61 | } |