Code Duplication    Length = 8-8 lines in 3 locations

lib/private/Repair/Apps.php 3 locations

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