We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 104-108 (lines=5) @@ | ||
101 | } |
|
102 | ||
103 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
104 | foreach ($request->input() as $key => $value) { |
|
105 | if (empty($value) && $value !== '0') { |
|
106 | $request->request->set($key, null); |
|
107 | } |
|
108 | } |
|
109 | ||
110 | // insert item in the db |
|
111 | $item = $this->crud->create($request->except(['redirect_after_save', 'password', '_token'])); |
|
@@ 166-170 (lines=5) @@ | ||
163 | } |
|
164 | ||
165 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
166 | foreach ($request->input() as $key => $value) { |
|
167 | if (empty($value) && $value !== '0') { |
|
168 | $request->request->set($key, null); |
|
169 | } |
|
170 | } |
|
171 | ||
172 | // update the row in the db |
|
173 | $this->crud->update($request->get($this->crud->model->getKeyName()), |