1 | <?php |
||
12 | class ProcessProvider extends AbstractProvider |
||
13 | { |
||
14 | /** |
||
15 | * Registers services on the given app. |
||
16 | * |
||
17 | * @param Application $app An Application instance |
||
18 | */ |
||
19 | public function register(Application $app) |
||
24 | |||
25 | /** |
||
26 | * @param string $command The command |
||
27 | * @param bool $silent Be silent or not |
||
28 | * |
||
29 | * @param \Closure $callback |
||
|
|||
30 | * @return bool|string |
||
31 | */ |
||
32 | public function executeCommand($command, $silent = false, \Closure $callback = null, $env=array()) |
||
36 | |||
37 | /** |
||
38 | * @param string $command The command |
||
39 | * @param bool $silent Be silent or not |
||
40 | * @param string $sudoAs Sudo as a different user then the root user |
||
41 | * |
||
42 | * @return bool|string |
||
43 | */ |
||
44 | public function executeSudoCommand($command, $silent = false, $sudoAs = null, \Closure $callback = null, $env=array()) |
||
53 | |||
54 | /** |
||
55 | * @param string $cmd |
||
56 | * @return bool |
||
57 | */ |
||
58 | public function commandExists($cmd) |
||
62 | |||
63 | /** |
||
64 | * @param $command |
||
65 | * @param $silent |
||
66 | * @param \Closure $callback |
||
67 | * @param $env |
||
68 | * @return bool|string |
||
69 | * @throws \Kunstmaan\Skylab\Exceptions\SkylabException |
||
70 | */ |
||
71 | private function performCommand($command, $silent=false, \Closure $callback = null, $env=array()) |
||
98 | } |
||
99 |
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.