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