| @@ 143-151 (lines=9) @@ | ||
| 140 | /** |
|
| 141 | * @return Response |
|
| 142 | */ |
|
| 143 | public function runAllChecksHttpStatusAction(Request $request) |
|
| 144 | { |
|
| 145 | $report = $this->runTests($request); |
|
| 146 | ||
| 147 | return new Response( |
|
| 148 | '', |
|
| 149 | (ArrayReporter::STATUS_OK === $report->getGlobalStatus() ? 200 : $this->failureStatusCode) |
|
| 150 | ); |
|
| 151 | } |
|
| 152 | ||
| 153 | /** |
|
| 154 | * @param string $checkId |
|
| @@ 158-166 (lines=9) @@ | ||
| 155 | * |
|
| 156 | * @return Response |
|
| 157 | */ |
|
| 158 | public function runSingleCheckHttpStatusAction($checkId, Request $request) |
|
| 159 | { |
|
| 160 | $report = $this->runTests($request, $checkId); |
|
| 161 | ||
| 162 | return new Response( |
|
| 163 | '', |
|
| 164 | (ArrayReporter::STATUS_OK === $report->getGlobalStatus() ? 200 : $this->failureStatusCode) |
|
| 165 | ); |
|
| 166 | } |
|
| 167 | ||
| 168 | /** |
|
| 169 | * @param string $checkId |
|