We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 168-176 (lines=9) @@ | ||
| 165 | * @param $id |
|
| 166 | * @return Response |
|
| 167 | */ |
|
| 168 | public function uniqueRevisions($slug, $id) |
|
| 169 | { |
|
| 170 | $model = $this->crud->model; |
|
| 171 | $entry = $model::findBySlugOrFail($slug); |
|
| 172 | ||
| 173 | $this->uniqueSetup($entry); |
|
| 174 | ||
| 175 | return parent::listRevisions($entry->id); |
|
| 176 | } |
|
| 177 | ||
| 178 | /** |
|
| 179 | * Restore a specific revision for the specified resource. |
|
| @@ 189-197 (lines=9) @@ | ||
| 186 | * @return JSON Response containing the new revision that was created from the update |
|
| 187 | * @return HTTP 500 if the request did not contain the revision ID |
|
| 188 | */ |
|
| 189 | public function restoreUniqueRevision($slug, $id) |
|
| 190 | { |
|
| 191 | $model = $this->crud->model; |
|
| 192 | $entry = $model::findBySlugOrFail($slug); |
|
| 193 | ||
| 194 | $this->uniqueSetup($entry); |
|
| 195 | ||
| 196 | return parent::restoreRevision($id); |
|
| 197 | } |
|
| 198 | ||
| 199 | /** |
|
| 200 | * Setup the controller for the entry. |
|