1 | <?php |
||
14 | class HealthCheckController |
||
15 | { |
||
16 | protected $runnerManager; |
||
17 | protected $pathHelper; |
||
18 | protected $template; |
||
19 | |||
20 | /** |
||
21 | * @var Psr\Log\LoggerInterface |
||
22 | */ |
||
23 | protected $log; |
||
24 | |||
25 | /** |
||
26 | * @param RunnerManager $runnerManager |
||
27 | * @param PathHelper $pathHelper |
||
28 | * @param string $template |
||
29 | * @param LoggerInterface $log |
||
30 | */ |
||
31 | public function __construct(RunnerManager $runnerManager, PathHelper $pathHelper, $template, LoggerInterface $log) |
||
38 | |||
39 | /** |
||
40 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
41 | * |
||
42 | * @return \Symfony\Component\HttpFoundation\Response |
||
43 | */ |
||
44 | public function indexAction(Request $request) |
||
74 | |||
75 | /** |
||
76 | * @return \Symfony\Component\HttpFoundation\Response |
||
77 | */ |
||
78 | public function listAction(Request $request) |
||
90 | |||
91 | /** |
||
92 | * @return JsonResponse |
||
93 | */ |
||
94 | public function listAllAction() |
||
106 | |||
107 | /** |
||
108 | * @return JsonResponse |
||
109 | */ |
||
110 | public function listGroupsAction() |
||
116 | |||
117 | /** |
||
118 | * @param Request $request |
||
119 | * |
||
120 | * @return \Symfony\Component\HttpFoundation\Response |
||
121 | */ |
||
122 | public function runAllChecksAction(Request $request) |
||
131 | |||
132 | /** |
||
133 | * @param Request $request |
||
134 | * |
||
135 | * @return \Symfony\Component\HttpFoundation\Response |
||
136 | */ |
||
137 | public function runAllChecksHttpStatusAction(Request $request) |
||
146 | |||
147 | /** |
||
148 | * @param string $checkId |
||
149 | * @param Request $request |
||
150 | * |
||
151 | * @return \Symfony\Component\HttpFoundation\Response |
||
152 | */ |
||
153 | public function runSingleCheckHttpStatusAction($checkId, Request $request) |
||
162 | |||
163 | /** |
||
164 | * @param string $checkId |
||
165 | * @param Request $request |
||
166 | * |
||
167 | * @return \Symfony\Component\HttpFoundation\Response |
||
168 | */ |
||
169 | public function runSingleCheckAction($checkId, Request $request) |
||
175 | |||
176 | /** |
||
177 | * @param Request $request |
||
178 | * @param string|null $checkId |
||
179 | * |
||
180 | * @return ArrayReporter |
||
181 | */ |
||
182 | protected function runTests(Request $request, $checkId = null) |
||
202 | |||
203 | private function statusIsNotOK(array $resultItem) |
||
207 | |||
208 | /** |
||
209 | * Send results to the Log. |
||
210 | * |
||
211 | * @param bool $isOK Did all the checks all returned OK? |
||
212 | * @param ArrayReporter $reporter Details of the tests |
||
213 | */ |
||
214 | private function logTestStatus($isOK, ArrayReporter $reporter) |
||
226 | |||
227 | /** |
||
228 | * @param Request $request |
||
229 | * |
||
230 | * @return Runner |
||
231 | * |
||
232 | * @throws \Exception |
||
233 | */ |
||
234 | private function getRunner(Request $request) |
||
246 | |||
247 | /** |
||
248 | * @param Request $request |
||
249 | * |
||
250 | * @return string |
||
251 | */ |
||
252 | private function getGroup(Request $request) |
||
256 | } |
||
257 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..