|
@@ 194-198 (lines=5) @@
|
| 191 |
|
$this->checkSecurityToken(); |
| 192 |
|
|
| 193 |
|
$options = ['sha' => $request->postVar('ref')]; |
| 194 |
|
if ($request->requestVar('options')) { |
| 195 |
|
foreach (explode(',', $request->postVar('options')) as $option) { |
| 196 |
|
$options[$option] = true; |
| 197 |
|
} |
| 198 |
|
} |
| 199 |
|
|
| 200 |
|
$strategy = $this->createStrategy($options); |
| 201 |
|
return $this->getAPIResponse($strategy->toArray(), 201); |
|
@@ 230-234 (lines=5) @@
|
| 227 |
|
'summary' => $request->postVar('summary') |
| 228 |
|
]; |
| 229 |
|
|
| 230 |
|
if ($request->postVar('options')) { |
| 231 |
|
foreach (explode(',', $request->postVar('options')) as $option) { |
| 232 |
|
$options[$option] = true; |
| 233 |
|
} |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
$strategy = $this->createStrategy($options); |
| 237 |
|
|