1 | <?php |
||
8 | class RemoteProvider extends AbstractProvider |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Registers services on the given app. |
||
13 | * |
||
14 | * @param Application $app An Application instance |
||
15 | */ |
||
16 | public function register(Application $app) |
||
17 | { |
||
18 | $app['remote'] = $this; |
||
19 | $this->app = $app; |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param $url |
||
24 | * @param string $contentType |
||
|
|||
25 | * @param string $filename |
||
26 | * @return string |
||
27 | */ |
||
28 | public function curl($url, $contentType = null, $filename = null, $cacheTimeInSeconds = 0, $username = null, $password = null) |
||
59 | |||
60 | /** |
||
61 | * @param string|null $filename |
||
62 | * @param resource $ch |
||
63 | */ |
||
64 | private function setDownloadHeaders($filename, $ch) |
||
76 | |||
77 | private function closeFile($tempFP) |
||
83 | |||
84 | } |
||
85 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.