Code Duplication    Length = 13-14 lines in 2 locations

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

@@ 53-66 (lines=14) @@
50
					'id',
51
				]
52
			);
53
		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
54
			$this->log(
55
				'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
56
				$params,
57
				[
58
					'itemType',
59
					'itemTarget',
60
					'itemSource',
61
					'shareWith',
62
					'permissions',
63
					'id',
64
				]
65
			);
66
		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
67
			$this->log(
68
				'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
69
				$params,
@@ 99-111 (lines=13) @@
96
					'id',
97
				]
98
			);
99
		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
100
			$this->log(
101
				'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)',
102
				$params,
103
				[
104
					'itemType',
105
					'fileTarget',
106
					'itemSource',
107
					'shareWith',
108
					'id',
109
				]
110
			);
111
		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
112
			$this->log(
113
				'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)',
114
				$params,