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