@@ 558-565 (lines=8) @@ | ||
555 | { |
|
556 | $updValues = []; |
|
557 | $name = $request->input('name'); |
|
558 | if (isset($name)) { |
|
559 | if (!$name) { |
|
560 | throw new \UnexpectedValueException('the name can not be empty.', -14000); |
|
561 | } |
|
562 | $updValues['name'] = $name; |
|
563 | } |
|
564 | // check is user is available |
|
565 | $principal = $request->input('principal'); |
|
566 | if (isset($principal)) { |
|
567 | if (!$principal) { |
|
568 | throw new \InvalidArgumentException('the principal must be appointed.', -14005); |
@@ 181-188 (lines=8) @@ | ||
178 | ||
179 | $updValues = []; |
|
180 | $name = $request->input('name'); |
|
181 | if (isset($name)) { |
|
182 | if (!$name) { |
|
183 | throw new \UnexpectedValueException('the name can not be empty.', -11600); |
|
184 | } |
|
185 | $updValues['name'] = $name; |
|
186 | } |
|
187 | ||
188 | $description = $request->input('description'); |
|
189 | if (isset($description)) { |
|
190 | $updValues['description'] = $description; |
|
191 | } |
@@ 164-171 (lines=8) @@ | ||
161 | $updValues = []; |
|
162 | ||
163 | $name = $request->input('name'); |
|
164 | if (isset($name)) { |
|
165 | if (!$name) { |
|
166 | throw new \UnexpectedValueException('the name can not be empty.', -10300); |
|
167 | } |
|
168 | $updValues['name'] = $name; |
|
169 | } |
|
170 | ||
171 | $configs = []; |
|
172 | ||
173 | $host = $request->input('host'); |
|
174 | if (isset($host)) { |
@@ 120-127 (lines=8) @@ | ||
117 | { |
|
118 | $updValues = []; |
|
119 | $name = $request->input('name'); |
|
120 | if (isset($name)) { |
|
121 | if (!$name) { |
|
122 | throw new \UnexpectedValueException('the name can not be empty.', -10201); |
|
123 | } |
|
124 | $updValues['name'] = $name; |
|
125 | } |
|
126 | ||
127 | $user_ids = $request->input('users'); |
|
128 | if (isset($user_ids)) { |
|
129 | $updValues['users'] = $user_ids ?: []; |
|
130 | } |
@@ 167-174 (lines=8) @@ | ||
164 | $updValues = [ 'status' => 'active' ]; |
|
165 | ||
166 | $start_time = $request->input('start_time'); |
|
167 | if (isset($start_time) && $start_time) { |
|
168 | $updValues['start_time'] = $start_time; |
|
169 | } |
|
170 | else |
|
171 | { |
|
172 | throw new \UnexpectedValueException('the sprint start time cannot be empty.', -11709); |
|
173 | } |
|
174 | ||
175 | $complete_time = $request->input('complete_time'); |
|
176 | if (isset($complete_time) && $complete_time) { |
|
177 | $updValues['complete_time'] = $complete_time; |
|
@@ 176-183 (lines=8) @@ | ||
173 | } |
|
174 | ||
175 | $complete_time = $request->input('complete_time'); |
|
176 | if (isset($complete_time) && $complete_time) { |
|
177 | $updValues['complete_time'] = $complete_time; |
|
178 | } |
|
179 | else |
|
180 | { |
|
181 | throw new \UnexpectedValueException('the sprint complete time cannot be empty.', -11710); |
|
182 | } |
|
183 | ||
184 | $name = $request->input('name'); |
|
185 | if (isset($name) && $name) { |
|
186 | $updValues['name'] = $name; |