Code Duplication    Length = 8-8 lines in 2 locations

src/Utils/AppManager.php 2 locations

@@ 70-77 (lines=8) @@
67
	public function disableNotShippedApps(OutputInterface $output = null){
68
		$notShippedApps = $this->occRunner->runJson('app:list --shipped false');
69
		$appsToDisable = array_keys($notShippedApps['enabled']);
70
		foreach ($appsToDisable as $appId){
71
			$result = $this->disableApp($appId);
72
			$status = $result ? '<info>success</info>' : '<error>failed</error>';
73
			if (!is_null($output)){
74
				$message = sprintf('Disable app %s: [%s]', $appId, $status);
75
				$output->writeln($message);
76
			}
77
		}
78
	}
79
80
	public function reenableNotShippedApps(OutputInterface $output = null){
@@ 81-88 (lines=8) @@
78
	}
79
80
	public function reenableNotShippedApps(OutputInterface $output = null){
81
		foreach ($this->disabledApps as $appId){
82
			$result = $this->enableApp($appId);
83
			$status = $result ? '<info>success</info>' : '<error>failed</error>';
84
			if (!is_null($output)){
85
				$message = sprintf('Enable app %s: [%s]', $appId, $status);
86
				$output->writeln($message);
87
			}
88
		}
89
	}
90
91
	public function getAllApps(){