1 | <?php |
||
24 | class Service { |
||
25 | |||
26 | const SUMMARY = 'summary'; |
||
27 | const ADMIN = 'admin'; |
||
28 | const FORUM = 'forum'; |
||
29 | const HOMEPAGE = 'homepage'; |
||
30 | const ML = 'mail'; |
||
31 | const SURVEY = 'survey'; |
||
32 | const NEWS = 'news'; |
||
33 | const CVS = 'cvs'; |
||
34 | const FILE = 'file'; |
||
35 | const SVN = 'svn'; |
||
36 | const WIKI = 'wiki'; |
||
37 | const TRACKERV3 = 'tracker'; |
||
38 | const LEGACYDOC = 'doc'; |
||
39 | |||
40 | public $data; |
||
41 | |||
42 | /** |
||
43 | * @var Project |
||
44 | */ |
||
45 | public $project; |
||
46 | |||
47 | /** |
||
48 | * Create an instance of Service |
||
49 | * |
||
50 | * @param Project $project The project the service belongs to |
||
51 | * @param array $data The service data coming from the db |
||
52 | * |
||
53 | * @throws ServiceNotAllowedForProjectException if the Service is not allowed for the project (mainly for plugins) |
||
54 | */ |
||
55 | public function __construct($project, $data) { |
||
62 | |||
63 | public function getProject() { |
||
99 | |||
100 | public function getScope() { |
||
103 | |||
104 | /** |
||
105 | * @see http://www.ietf.org/rfc/rfc2396.txt Annex B |
||
106 | */ |
||
107 | function isAbsolute($url) { |
||
120 | |||
121 | public function displayHeader($title, $breadcrumbs, $toolbar, $params = array()) { |
||
147 | |||
148 | /** |
||
149 | * Display a warning if the service configuration is not inherited on project creation |
||
150 | */ |
||
151 | public function displayDuplicateInheritanceWarning() { |
||
156 | |||
157 | public function displayFooter() { |
||
166 | |||
167 | public function duplicate($to_project_id, $ugroup_mapping) { |
||
169 | |||
170 | /** |
||
171 | * Say if the service is allowed for the project |
||
172 | * |
||
173 | * @param Project $project |
||
174 | * |
||
175 | * @return bool |
||
176 | */ |
||
177 | protected function isAllowed($project) { |
||
180 | |||
181 | /** |
||
182 | * Say if the service is restricted |
||
183 | * |
||
184 | * @param Project $project |
||
|
|||
185 | * |
||
186 | * @return bool |
||
187 | */ |
||
188 | public function isRestricted() { |
||
191 | |||
192 | /** |
||
193 | * Return true if service configuration is inherited on clone |
||
194 | * |
||
195 | * @return Boolean |
||
196 | */ |
||
197 | public function isInheritedOnDuplicate() { |
||
200 | |||
201 | public function getInternationalizedName() { |
||
204 | } |
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.