1 | <?php |
||
25 | class AccessService extends AbstractService |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * Session service |
||
30 | * |
||
31 | * @var \HVP\Html5videoplayerPowermail\Service\SessionService |
||
32 | * @inject |
||
33 | */ |
||
34 | protected $sessionService; |
||
35 | |||
36 | /** |
||
37 | * Uri Builder |
||
38 | * |
||
39 | * @var \TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder |
||
40 | * @inject |
||
41 | */ |
||
42 | protected $uriBuilder; |
||
43 | |||
44 | /** |
||
45 | * Flexform service |
||
46 | * |
||
47 | * @var \TYPO3\CMS\Extbase\Service\FlexFormService |
||
48 | * @inject |
||
49 | */ |
||
50 | protected $flexFormService; |
||
51 | |||
52 | /** |
||
53 | * The session name |
||
54 | * |
||
55 | * @var string |
||
56 | */ |
||
57 | protected $sessionName = 'submittedForms'; |
||
58 | |||
59 | /** |
||
60 | * @param Video $video |
||
61 | */ |
||
62 | public function checkVideoAccess(Video $video = null) |
||
91 | |||
92 | /** |
||
93 | * @param Form $form |
||
94 | */ |
||
95 | public function triggerFormSubmit(Form $form) |
||
104 | |||
105 | /** |
||
106 | * Find the given page UID of the form Protection ID |
||
107 | * |
||
108 | * @param int $formProtectionId |
||
109 | * |
||
110 | * @return int |
||
111 | */ |
||
112 | protected function findFormPage($formProtectionId) |
||
126 | |||
127 | /** |
||
128 | * Find all includes Powermail plugins |
||
129 | * |
||
130 | * @return array |
||
131 | */ |
||
132 | protected function findPowermailPlugins() |
||
139 | |||
140 | /** |
||
141 | * @param $formProtectionId |
||
142 | * |
||
143 | * @return bool |
||
144 | */ |
||
145 | protected function isAccessableByCurrentUser($formProtectionId) |
||
150 | |||
151 | /** |
||
152 | * @param Form $form |
||
153 | * |
||
154 | * @return bool |
||
155 | */ |
||
156 | protected function isProtectionForm(Form $form) |
||
161 | |||
162 | /** |
||
163 | * Get the Form protection value |
||
164 | * |
||
165 | * @param Video $video |
||
166 | * |
||
167 | * @return int |
||
168 | */ |
||
169 | protected function getFormProtection(Video $video) |
||
174 | } |
||
175 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.