Code Duplication    Length = 5-5 lines in 2 locations

code/control/DeployDispatcher.php 2 locations

@@ 223-227 (lines=5) @@
220
		$this->checkSecurityToken();
221
222
		$options = ['sha' => $request->postVar('ref')];
223
		if ($request->requestVar('options')) {
224
			foreach (explode(',', $request->postVar('options')) as $option) {
225
				$options[$option] = true;
226
			}
227
		}
228
229
		$strategy = $this->createStrategy($options);
230
		return $this->getAPIResponse($strategy->toArray(), 201);
@@ 259-263 (lines=5) @@
256
			'summary' => $request->postVar('summary')
257
		];
258
259
		if ($request->postVar('options')) {
260
			foreach (explode(',', $request->postVar('options')) as $option) {
261
				$options[$option] = true;
262
			}
263
		}
264
265
		$strategy = $this->createStrategy($options);
266