Code Duplication    Length = 8-8 lines in 3 locations

lib/private/Repair/Apps.php 3 locations

@@ 135-142 (lines=8) @@
132
				$output->info('Using market to update existing apps');
133
				try {
134
					// Try to update incompatible apps
135
					if (!empty($appsToUpgrade[self::KEY_INCOMPATIBLE])) {
136
						$output->info('Attempting to update the following existing but incompatible app from market: ' . implode(', ', $appsToUpgrade[self::KEY_INCOMPATIBLE]));
137
						$failedIncompatibleApps = $this->getAppsFromMarket(
138
							$output,
139
							$appsToUpgrade[self::KEY_INCOMPATIBLE],
140
							'upgradeAppStoreApp'
141
						);
142
					}
143
144
					// Try to download missing apps
145
					if (!empty($appsToUpgrade[self::KEY_MISSING])) {
@@ 145-152 (lines=8) @@
142
					}
143
144
					// Try to download missing apps
145
					if (!empty($appsToUpgrade[self::KEY_MISSING])) {
146
						$output->info('Attempting to update the following missing apps from market: ' . implode(', ', $appsToUpgrade[self::KEY_MISSING]));
147
						$failedMissingApps = $this->getAppsFromMarket(
148
							$output,
149
							$appsToUpgrade[self::KEY_MISSING],
150
							'reinstallAppStoreApp'
151
						);
152
					}
153
154
					// Try to update compatible apps
155
					if (!empty($appsToUpgrade[self::KEY_COMPATIBLE])) {
@@ 155-162 (lines=8) @@
152
					}
153
154
					// Try to update compatible apps
155
					if (!empty($appsToUpgrade[self::KEY_COMPATIBLE])) {
156
						$output->info('Attempting to update the following existing compatible apps from market: ' . implode(', ', $appsToUpgrade[self::KEY_MISSING]));
157
						$failedCompatibleApps = $this->getAppsFromMarket(
158
							$output,
159
							$appsToUpgrade[self::KEY_COMPATIBLE],
160
							'upgradeAppStoreApp'
161
						);
162
					}
163
164
					$hasNotUpdatedCompatibleApps = count($failedCompatibleApps);
165
				} catch (AppManagerException $e) {