@@ 219-223 (lines=5) @@ | ||
216 | } |
|
217 | ||
218 | $options = ['sha' => $sha]; |
|
219 | if ($request->postVar('options')) { |
|
220 | foreach (explode(',', $request->postVar('options')) as $option) { |
|
221 | $options[$option] = true; |
|
222 | } |
|
223 | } |
|
224 | ||
225 | $strategy = $this->createStrategy($options); |
|
226 | return $this->getAPIResponse($strategy->toArray(), 201); |
|
@@ 268-272 (lines=5) @@ | ||
265 | 'summary' => $request->postVar('summary') |
|
266 | ]; |
|
267 | ||
268 | if ($request->postVar('options')) { |
|
269 | foreach (explode(',', $request->postVar('options')) as $option) { |
|
270 | $options[$option] = true; |
|
271 | } |
|
272 | } |
|
273 | ||
274 | $strategy = $this->createStrategy($options); |
|
275 |