Code Duplication    Length = 5-5 lines in 2 locations

code/control/PlanDispatcher.php 1 location

@@ 73-77 (lines=5) @@
70
		$this->checkSecurityToken();
71
72
		$options = ['sha' => $request->postVar('sha')];
73
		if ($request->requestVar('options')) {
74
			foreach (explode(',', $request->postVar('options')) as $option) {
75
				$options[$option] = true;
76
			}
77
		}
78
79
		$strategy = $this->environment->Backend()->planDeploy($this->environment, $options);
80
		$data = $strategy->toArray();

code/control/DeployDispatcher.php 1 location

@@ 197-201 (lines=5) @@
194
			'summary' => $request->postVar('summary')
195
		];
196
197
		if ($request->postVar('options')) {
198
			foreach (explode(',', $request->postVar('options')) as $option) {
199
				$options[$option] = true;
200
			}
201
		}
202
203
		$strategy = $this->environment->Backend()->planDeploy($this->environment, $options);
204