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