1 | <?php |
||
7 | class GitApplication extends Application implements ApplicationContract |
||
8 | { |
||
9 | /** |
||
10 | * Application type. |
||
11 | * |
||
12 | * @return string |
||
13 | */ |
||
14 | public function type() |
||
18 | |||
19 | /** |
||
20 | * Indicates that application will be installed from GitHub repository. |
||
21 | * |
||
22 | * @param string $repository |
||
23 | * |
||
24 | * @return static |
||
25 | */ |
||
26 | public function fromGithub(string $repository) |
||
30 | |||
31 | /** |
||
32 | * Indicates that application will be installed from Bitbucket repository. |
||
33 | * |
||
34 | * @param string $repository |
||
35 | * |
||
36 | * @return static |
||
37 | */ |
||
38 | public function fromBitbucket(string $repository) |
||
42 | |||
43 | /** |
||
44 | * Indicates that application will be installed from Gitlab repository. |
||
45 | * |
||
46 | * @param string $repository |
||
47 | * |
||
48 | * @return static |
||
49 | */ |
||
50 | public function fromGitlab(string $repository) |
||
54 | |||
55 | /** |
||
56 | * Indicates that application will be installed from custom git repository. |
||
57 | * |
||
58 | * @param string $repository |
||
|
|||
59 | * |
||
60 | * @return static |
||
61 | */ |
||
62 | public function fromGit(string $url) |
||
66 | |||
67 | /** |
||
68 | * Indicates which branch from the repository should be used. |
||
69 | * |
||
70 | * @param string $branch |
||
71 | * |
||
72 | * @return static |
||
73 | */ |
||
74 | public function usingBranch(string $branch) |
||
78 | |||
79 | /** |
||
80 | * Set git provider and repository name. |
||
81 | * |
||
82 | * @param string $provider |
||
83 | * @param string $repository |
||
84 | * |
||
85 | * @return static |
||
86 | */ |
||
87 | protected function setRepositorySource(string $provider, string $repository) |
||
96 | |||
97 | /** |
||
98 | * Set the branch name. |
||
99 | * |
||
100 | * @param string $branch |
||
101 | * |
||
102 | * @return static |
||
103 | */ |
||
104 | protected function setRepositoryBranch(string $branch) |
||
110 | } |
||
111 |
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.