Code Duplication    Length = 5-5 lines in 2 locations

code/control/DeployDispatcher.php 2 locations

@@ 206-210 (lines=5) @@
203
		}
204
205
		$options = ['sha' => $sha];
206
		if ($request->postVar('options')) {
207
			foreach (explode(',', $request->postVar('options')) as $option) {
208
				$options[$option] = true;
209
			}
210
		}
211
212
		$strategy = $this->createStrategy($options);
213
		return $this->getAPIResponse($strategy->toArray(), 201);
@@ 249-253 (lines=5) @@
246
			'summary' => $request->postVar('summary')
247
		];
248
249
		if ($request->postVar('options')) {
250
			foreach (explode(',', $request->postVar('options')) as $option) {
251
				$options[$option] = true;
252
			}
253
		}
254
255
		$strategy = $this->createStrategy($options);
256