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