Code Duplication    Length = 7-7 lines in 4 locations

lib/Activity/DeckProvider.php 4 locations

@@ 200-206 (lines=7) @@
197
	}
198
199
	private function parseParamForLabel($subjectParams, $params) {
200
		if (array_key_exists('label', $subjectParams)) {
201
			$params['label'] = [
202
				'type' => 'highlight',
203
				'id' => $subjectParams['label']['id'],
204
				'name' => $subjectParams['label']['title']
205
			];
206
		}
207
		return $params;
208
	}
209
@@ 219-225 (lines=7) @@
216
					'id' => $subjectParams['acl']['participant'],
217
					'name' => $user !== null ? $user->getDisplayName() : $subjectParams['acl']['participant']
218
				];
219
			} else {
220
				$params['acl'] = [
221
					'type' => 'highlight',
222
					'id' => $subjectParams['acl']['participant'],
223
					'name' => $subjectParams['acl']['participant']
224
				];
225
			}
226
		}
227
		return $params;
228
	}
@@ 245-251 (lines=7) @@
242
			$event->setParsedMessage('<pre class="visualdiff">' . $diff->render($subjectParams['before'], $subjectParams['after']) . '</pre>');
243
			return $params;
244
		}
245
		if (array_key_exists('before', $subjectParams)) {
246
			$params['before'] = [
247
				'type' => 'highlight',
248
				'id' => $subjectParams['before'],
249
				'name' => $subjectParams['before']
250
			];
251
		}
252
		if (array_key_exists('after', $subjectParams)) {
253
			$params['after'] = [
254
				'type' => 'highlight',
@@ 252-258 (lines=7) @@
249
				'name' => $subjectParams['before']
250
			];
251
		}
252
		if (array_key_exists('after', $subjectParams)) {
253
			$params['after'] = [
254
				'type' => 'highlight',
255
				'id' => $subjectParams['after'],
256
				'name' => $subjectParams['after']
257
			];
258
		}
259
		return $params;
260
	}
261