We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 84-88 (lines=5) @@ | ||
81 | } |
|
82 | ||
83 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
84 | foreach ($request->input() as $key => $value) { |
|
85 | if (empty($value) && $value !== '0') { |
|
86 | $request->request->set($key, null); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | // insert item in the db |
|
91 | $item = $this->crud->create($request->except(['redirect_after_save', 'password', '_token'])); |
|
@@ 146-150 (lines=5) @@ | ||
143 | } |
|
144 | ||
145 | // replace empty values with NULL, so that it will work with MySQL strict mode on |
|
146 | foreach ($request->input() as $key => $value) { |
|
147 | if (empty($value) && $value !== '0') { |
|
148 | $request->request->set($key, null); |
|
149 | } |
|
150 | } |
|
151 | ||
152 | // update the row in the db |
|
153 | $this->crud->update($request->get($this->crud->model->getKeyName()), |