Completed
Push — master ( c94f4d...418675 )
by Joe
04:49
created
src/Plugin.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -169,6 +169,9 @@
 block discarded – undo
169 169
 		self::runCommand($event, 'chmod +a "$USER allow delete,write,append,file_inherit,directory_inherit" %path%', $path);
170 170
 	}
171 171
 
172
+	/**
173
+	 * @param string $command
174
+	 */
172 175
 	public static function runCommand(Event $event, $command, $path) {
173 176
 		return self::runProcess($event, str_replace(['%httpduser%', '%path%'], [self::getHttpdUser($event), $path], $command));
174 177
 	}
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
 
154 154
 	public static function SetfaclPermissionsSetter(Event $event, $path) {
155 155
 		if (!is_dir($path))
156
-			mkdir($path, 0777, true);
156
+			mkdir($path, 0777, TRUE);
157 157
 		if (!is_dir($path))
158 158
 			throw new \Exception('Path Not Found: '.$path);
159 159
 		self::runCommand($event, 'setfacl -m u:"%httpduser%":rwX -m u:$USER:rwX %path%', $path);
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
 
163 163
 	public static function ChmodPermissionsSetter(Event $event, $path) {
164 164
 		if (!is_dir($path))
165
-			mkdir($path, 0777, true);
165
+			mkdir($path, 0777, TRUE);
166 166
 		if (!is_dir($path))
167 167
 			throw new \Exception('Path Not Found: '.$path);
168 168
 		self::runCommand($event, 'chmod +a "%httpduser% allow delete,write,append,file_inherit,directory_inherit" %path%', $path);
Please login to merge, or discard this patch.