We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 116-120 (lines=5) @@ | ||
113 | } |
|
114 | ||
115 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
116 | foreach ($request->input() as $key => $value) { |
|
117 | if (empty($value) && $value !== '0') { |
|
118 | $request->request->set($key, null); |
|
119 | } |
|
120 | } |
|
121 | ||
122 | // insert item in the db |
|
123 | $item = $this->crud->create($request->except(['save_action', '_token', '_method'])); |
|
@@ 197-201 (lines=5) @@ | ||
194 | } |
|
195 | ||
196 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
197 | foreach ($request->input() as $key => $value) { |
|
198 | if (empty($value) && $value !== '0') { |
|
199 | $request->request->set($key, null); |
|
200 | } |
|
201 | } |
|
202 | ||
203 | // update the row in the db |
|
204 | $item = $this->crud->update($request->get($this->crud->model->getKeyName()), |