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