Code Duplication    Length = 7-8 lines in 2 locations

src/Plugin.php 2 locations

@@ 176-183 (lines=8) @@
173
	 *
174
	 * @param Event $event
175
	 */
176
	public static function setPermissionsSetfacl(Event $event) {
177
		$http_user = self::getHttpdUser($event);
178
		foreach (self::getWritableDirs($event) as $path)
179
			self::SetfaclPermissionsSetter($event, $http_user, $path, 'dir');
180
		foreach (self::getWritableFiles($event) as $path)
181
			//self::SetfaclPermissionsSetter($event, $http_user, $path, 'file');
182
			self::ChmodPermissionsSetter($event, $http_user, $path, 'file');
183
	}
184
185
	/**
186
	 * Sets Writrable Directory permissions for any directories listed in the writeable-dirs option using chmod
@@ 190-196 (lines=7) @@
187
	 *
188
	 * @param Event $event
189
	 */
190
	public static function setPermissionsChmod(Event $event) {
191
		$http_user = self::getHttpdUser($event);
192
		foreach (self::getWritableDirs($event) as $path)
193
			self::ChmodPermissionsSetter($event, $http_user, $path, 'dir');
194
		foreach (self::getWritableFiles($event) as $path)
195
			self::ChmodPermissionsSetter($event, $http_user, $path, 'file');
196
	}
197
198
	/**
199
	 * returns the user the webserver is running as