We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 253-260 (lines=8) @@ | ||
250 | return $model; |
|
251 | } |
|
252 | ||
253 | public function update($id, $data) |
|
254 | { |
|
255 | $model = $this->model->findOrFail($id); |
|
256 | $updated = $model->update($data); |
|
257 | if ($updated) $this->syncPivot($model, $data); |
|
258 | ||
259 | return $model; |
|
260 | } |
|
261 | ||
262 | public function delete($id) // DONE |
|
263 | { |
@@ 273-281 (lines=9) @@ | ||
270 | * @param [Request] All inputs to be updated. |
|
271 | * @return [Eloquent Collection] |
|
272 | */ |
|
273 | public function update($id, $data) |
|
274 | { |
|
275 | $item = $this->model->findOrFail($id); |
|
276 | $updated = $item->update($this->compactFakeFields($data)); |
|
277 | ||
278 | /*if ($updated) */$this->syncPivot($item, $data, 'update'); |
|
279 | ||
280 | return $item; |
|
281 | } |
|
282 | ||
283 | ||
284 | /** |