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