We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 68-76 (lines=9) @@ | ||
| 65 | * @param int $id |
|
| 66 | * @return \Illuminate\Http\RedirectResponse |
|
| 67 | */ |
|
| 68 | public function update($slug, $id) |
|
| 69 | { |
|
| 70 | $model = $this->crud->model; |
|
| 71 | $entry = $model::findBySlugOrFail($slug); |
|
| 72 | ||
| 73 | $this->uniqueSetup($entry); |
|
| 74 | ||
| 75 | return parent::updateCrud(); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * Set the crud route. |
|
| @@ 166-174 (lines=9) @@ | ||
| 163 | * @param $id |
|
| 164 | * @return Response |
|
| 165 | */ |
|
| 166 | public function uniqueRevisions($slug, $id) |
|
| 167 | { |
|
| 168 | $model = $this->crud->model; |
|
| 169 | $entry = $model::findBySlugOrFail($slug); |
|
| 170 | ||
| 171 | $this->uniqueSetup($entry); |
|
| 172 | ||
| 173 | return parent::listRevisions($entry->id); |
|
| 174 | } |
|
| 175 | ||
| 176 | /** |
|
| 177 | * Restore a specific revision for the specified resource. |
|
| @@ 187-195 (lines=9) @@ | ||
| 184 | * @return JSON Response containing the new revision that was created from the update |
|
| 185 | * @return HTTP 500 if the request did not contain the revision ID |
|
| 186 | */ |
|
| 187 | public function restoreUniqueRevision($slug, $id) |
|
| 188 | { |
|
| 189 | $model = $this->crud->model; |
|
| 190 | $entry = $model::findBySlugOrFail($slug); |
|
| 191 | ||
| 192 | $this->uniqueSetup($entry); |
|
| 193 | ||
| 194 | return parent::restoreRevision($id); |
|
| 195 | } |
|
| 196 | ||
| 197 | /** |
|
| 198 | * Setup the controller for the entry. |
|