Code Duplication    Length = 13-14 lines in 3 locations

apps/admin_audit/lib/Actions/Sharing.php 3 locations

@@ 55-68 (lines=14) @@
52
					'id',
53
				]
54
			);
55
		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
56
			$this->log(
57
				'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
58
				$params,
59
				[
60
					'itemType',
61
					'itemTarget',
62
					'itemSource',
63
					'shareWith',
64
					'permissions',
65
					'id',
66
				]
67
			);
68
		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
69
			$this->log(
70
				'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
71
				$params,
@@ 114-126 (lines=13) @@
111
					'id',
112
				]
113
			);
114
		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
115
			$this->log(
116
				'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)',
117
				$params,
118
				[
119
					'itemType',
120
					'fileTarget',
121
					'itemSource',
122
					'shareWith',
123
					'id',
124
				]
125
			);
126
		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
127
			$this->log(
128
				'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)',
129
				$params,
@@ 138-150 (lines=13) @@
135
					'id',
136
				]
137
			);
138
		} elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
139
			$this->log(
140
				'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)',
141
				$params,
142
				[
143
					'itemType',
144
					'fileTarget',
145
					'itemSource',
146
					'shareWith',
147
					'id',
148
				]
149
			);
150
		}
151
	}
152
153
	/**