1 | <?php |
||
12 | class Facade extends LaravelFacade |
||
13 | { |
||
14 | protected static $tmpDriver = null; |
||
15 | |||
16 | /** |
||
17 | * Get the registered name of the component. |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | 7 | protected static function getFacadeAccessor() |
|
30 | |||
31 | /** |
||
32 | * Temporarily changes the driver, only for the next call. |
||
33 | * |
||
34 | * @param \Closure|string $name |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function changeProxyTo($name) |
||
44 | |||
45 | /** |
||
46 | * Temporarily changes the driver, only for the next call. |
||
47 | * |
||
48 | * @param \Closure|string $name |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public static function withDriver($name) |
||
56 | |||
57 | /** |
||
58 | * Changes the default driver of the facade |
||
59 | * |
||
60 | * @param \Closure|string $name |
||
|
|||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 7 | public static function shouldProxyTo($class) |
|
70 | |||
71 | /** |
||
72 | * Sets up a listener to be invoked before the actual method call |
||
73 | * |
||
74 | * @param string $methodName |
||
75 | * @param \Closure|string $listener |
||
76 | */ |
||
77 | 3 | public static function preCall($methodName, $listener) |
|
83 | |||
84 | /** |
||
85 | * Sets up a listener to be invoked after the actual method |
||
86 | * |
||
87 | * @param string $methodName |
||
88 | * @param \Closure|string $listener |
||
89 | */ |
||
90 | 3 | public static function postCall($methodName, $listener) |
|
96 | |||
97 | |||
98 | /** |
||
99 | * Handle dynamic, static calls to the object. |
||
100 | * |
||
101 | * @param string $method |
||
102 | * @param array $args |
||
103 | * @return mixed |
||
104 | * |
||
105 | * @throws \RuntimeException |
||
106 | * @throws \ReflectionException |
||
107 | */ |
||
108 | 7 | public static function __callStatic($method, $args) |
|
131 | |||
132 | /** |
||
133 | * Adds missing dependencies to the user-provided input. |
||
134 | * |
||
135 | * @param ReflectionParameter[] $parameters |
||
136 | * @param array $inputData |
||
137 | */ |
||
138 | 4 | private static function addMissingDependencies($parameters, array &$inputData) |
|
150 | |||
151 | 3 | private static function makeListener(string $method, $listener) |
|
169 | } |
||
170 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.