Passed
Push — master ( 3ba33c...498624 )
by Morris
10:48 queued 12s
created
apps/admin_audit/lib/Actions/Sharing.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	 * @param array $params
41 41
 	 */
42 42
 	public function shared(array $params) {
43
-		if($params['shareType'] === Share::SHARE_TYPE_LINK) {
43
+		if ($params['shareType'] === Share::SHARE_TYPE_LINK) {
44 44
 			$this->log(
45 45
 				'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
46 46
 				$params,
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 					'id',
53 53
 				]
54 54
 			);
55
-		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
55
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_USER) {
56 56
 			$this->log(
57 57
 				'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
58 58
 				$params,
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 					'id',
66 66
 				]
67 67
 			);
68
-		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
68
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_GROUP) {
69 69
 			$this->log(
70 70
 				'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
71 71
 				$params,
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 					'id',
79 79
 				]
80 80
 			);
81
-		} elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
81
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_ROOM) {
82 82
 			$this->log(
83 83
 				'The %s "%s" with ID "%s" has been shared to the room "%s" with permissions "%s" (Share ID: %s)',
84 84
 				$params,
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 					'id',
92 92
 				]
93 93
 			);
94
-		} elseif($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
94
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
95 95
 			$this->log(
96 96
 				'The %s "%s" with ID "%s" has been shared to the email recipient "%s" with permissions "%s" (Share ID: %s)',
97 97
 				$params,
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 	 * @param array $params
114 114
 	 */
115 115
 	public function unshare(array $params) {
116
-		if($params['shareType'] === Share::SHARE_TYPE_LINK) {
116
+		if ($params['shareType'] === Share::SHARE_TYPE_LINK) {
117 117
 			$this->log(
118 118
 				'The %s "%s" with ID "%s" has been unshared (Share ID: %s)',
119 119
 				$params,
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 					'id',
125 125
 				]
126 126
 			);
127
-		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
127
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_USER) {
128 128
 			$this->log(
129 129
 				'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)',
130 130
 				$params,
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 					'id',
137 137
 				]
138 138
 			);
139
-		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
139
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_GROUP) {
140 140
 			$this->log(
141 141
 				'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)',
142 142
 				$params,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 					'id',
149 149
 				]
150 150
 			);
151
-		} elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
151
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_ROOM) {
152 152
 			$this->log(
153 153
 				'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)',
154 154
 				$params,
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 					'id',
161 161
 				]
162 162
 			);
163
-		} elseif($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
163
+		} elseif ($params['shareType'] === Share::SHARE_TYPE_EMAIL) {
164 164
 			$this->log(
165 165
 				'The %s "%s" with ID "%s" has been unshared from the email recipient "%s" (Share ID: %s)',
166 166
 				$params,
Please login to merge, or discard this patch.