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) |
||
90 | |||
91 | /** |
||
92 | * @param Form $form |
||
93 | */ |
||
94 | public function triggerFormSubmit(Form $form) |
||
103 | |||
104 | /** |
||
105 | * Find the given page UID of the form Protection ID |
||
106 | * |
||
107 | * @param int $formProtectionId |
||
108 | * |
||
109 | * @return int |
||
110 | */ |
||
111 | protected function findFormPage($formProtectionId) |
||
125 | |||
126 | /** |
||
127 | * Find all includes Powermail plugins |
||
128 | * |
||
129 | * @return array |
||
130 | */ |
||
131 | protected function findPowermailPlugins() |
||
137 | |||
138 | /** |
||
139 | * @param $formProtectionId |
||
140 | * |
||
141 | * @return bool |
||
142 | */ |
||
143 | protected function isAccessableByCurrentUser($formProtectionId) |
||
148 | |||
149 | /** |
||
150 | * @param Form $form |
||
151 | * |
||
152 | * @return bool |
||
153 | */ |
||
154 | protected function isProtectionForm(Form $form) |
||
159 | |||
160 | /** |
||
161 | * Get the Form protection value |
||
162 | * |
||
163 | * @param Video $video |
||
164 | * |
||
165 | * @return int |
||
166 | */ |
||
167 | protected function getFormProtection(Video $video) |
||
172 | } |
||
173 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.