|
@@ 201-205 (lines=5) @@
|
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
$options = ['sha' => $sha]; |
| 201 |
|
if ($request->postVar('options')) { |
| 202 |
|
foreach (explode(',', $request->postVar('options')) as $option) { |
| 203 |
|
$options[$option] = true; |
| 204 |
|
} |
| 205 |
|
} |
| 206 |
|
|
| 207 |
|
$strategy = $this->createStrategy($options); |
| 208 |
|
return $this->getAPIResponse($strategy->toArray(), 201); |
|
@@ 237-241 (lines=5) @@
|
| 234 |
|
'summary' => $request->postVar('summary') |
| 235 |
|
]; |
| 236 |
|
|
| 237 |
|
if ($request->postVar('options')) { |
| 238 |
|
foreach (explode(',', $request->postVar('options')) as $option) { |
| 239 |
|
$options[$option] = true; |
| 240 |
|
} |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
$strategy = $this->createStrategy($options); |
| 244 |
|
|