Failed Conditions
Pull Request — master (#682)
by
unknown
07:29
created
lib/Utility/Utils.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 use OCP\IUserManager;
27 27
 
28 28
 class Utils {
29
-    /**
30
-     * Gets the unix epoch UTC timestamp
31
-     * @return int
32
-     */
29
+	/**
30
+	 * Gets the unix epoch UTC timestamp
31
+	 * @return int
32
+	 */
33 33
 	public static function getTime() {
34 34
 		return (new \DateTime())->getTimestamp();
35 35
 	}
@@ -40,10 +40,10 @@  discard block
 block discarded – undo
40 40
 		return microtime(true);
41 41
 	}
42 42
 
43
-    /**
44
-     * Generates a Globally Unique ID
45
-     * @return string
46
-     */
43
+	/**
44
+	 * Generates a Globally Unique ID
45
+	 * @return string
46
+	 */
47 47
 	public static function GUID() {
48 48
 		if (function_exists('com_create_guid') === true)
49 49
 		{
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 	 * @param IUserManager $userManager
59 59
 	 * @return string
60 60
 	 */
61
-	public static function getNameByUid(string $uid, IUserManager $userManager){
61
+	public static function getNameByUid(string $uid, IUserManager $userManager) {
62 62
 		$u = $userManager->get($uid);
63 63
 		return $u->getDisplayName();
64 64
 	}
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
 	 * @param array $results
69 69
 	 * @return array|mixed
70 70
 	 */
71
-	public static function getDirContents(string $dir, &$results = array()){
71
+	public static function getDirContents(string $dir, &$results = array()) {
72 72
 		$files = scandir($dir);
73 73
 
74
-		foreach($files as $value){
75
-			$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
76
-			if(!is_dir($path)) {
74
+		foreach ($files as $value) {
75
+			$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
76
+			if (!is_dir($path)) {
77 77
 				$results[] = $path;
78
-			} else if($value != "." && $value != "..") {
78
+			} else if ($value != "." && $value != "..") {
79 79
 				Utils::getDirContents($path, $results);
80 80
 				$results[] = $path;
81 81
 			}
Please login to merge, or discard this patch.
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,8 +45,7 @@  discard block
 block discarded – undo
45 45
      * @return string
46 46
      */
47 47
 	public static function GUID() {
48
-		if (function_exists('com_create_guid') === true)
49
-		{
48
+		if (function_exists('com_create_guid') === true) {
50 49
 			return trim(com_create_guid(), '{}');
51 50
 		}
52 51
 
@@ -58,7 +57,7 @@  discard block
 block discarded – undo
58 57
 	 * @param IUserManager $userManager
59 58
 	 * @return string
60 59
 	 */
61
-	public static function getNameByUid(string $uid, IUserManager $userManager){
60
+	public static function getNameByUid(string $uid, IUserManager $userManager) {
62 61
 		$u = $userManager->get($uid);
63 62
 		return $u->getDisplayName();
64 63
 	}
@@ -68,10 +67,10 @@  discard block
 block discarded – undo
68 67
 	 * @param array $results
69 68
 	 * @return array|mixed
70 69
 	 */
71
-	public static function getDirContents(string $dir, &$results = array()){
70
+	public static function getDirContents(string $dir, &$results = array()) {
72 71
 		$files = scandir($dir);
73 72
 
74
-		foreach($files as $value){
73
+		foreach($files as $value) {
75 74
 			$path = realpath($dir.DIRECTORY_SEPARATOR.$value);
76 75
 			if(!is_dir($path)) {
77 76
 				$results[] = $path;
Please login to merge, or discard this patch.
controller/sharecontroller.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -51,18 +51,18 @@
 block discarded – undo
51 51
 	private $offset = 0;
52 52
 
53 53
 	public function __construct($AppName,
54
-	                            IRequest $request,
55
-	                            $UserId,
56
-	                            IGroupManager $groupManager,
57
-	                            IUserManager $userManager,
58
-	                            ActivityService $activityService,
59
-	                            VaultService $vaultService,
60
-	                            ShareService $shareService,
61
-	                            CredentialService $credentialService,
62
-	                            NotificationService $notificationService,
63
-	                            FileService $fileService,
64
-	                            SettingsService $config,
65
-	                            IManager $IManager
54
+								IRequest $request,
55
+								$UserId,
56
+								IGroupManager $groupManager,
57
+								IUserManager $userManager,
58
+								ActivityService $activityService,
59
+								VaultService $vaultService,
60
+								ShareService $shareService,
61
+								CredentialService $credentialService,
62
+								NotificationService $notificationService,
63
+								FileService $fileService,
64
+								SettingsService $config,
65
+								IManager $IManager
66 66
 	) {
67 67
 		parent::__construct(
68 68
 			$AppName,
Please login to merge, or discard this patch.
controller/iconcontroller.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
 	private $urlGenerator;
31 31
 
32 32
 	public function __construct($AppName,
33
-	                            IRequest $request,
34
-	                            $UserId,
35
-	                            CredentialService $credentialService,
36
-	                            AppManager $am,
37
-	                            IURLGenerator $urlGenerator
33
+								IRequest $request,
34
+								$UserId,
35
+								CredentialService $credentialService,
36
+								AppManager $am,
37
+								IURLGenerator $urlGenerator
38 38
 	) {
39 39
 		parent::__construct(
40 40
 			$AppName,
Please login to merge, or discard this patch.