Passed
Push — master ( 1dce30...f6efd5 )
by Joas
15:03 queued 13s
created
apps/files_sharing/templates/public.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,10 +111,10 @@
 block discarded – undo
111 111
 			<?php if (!empty($_['disclaimer'])) { ?>
112 112
 				<div>
113 113
 					<?php
114
-						echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
115
-							'<span id="show-terms-dialog">', '</span>'
116
-						]);
117
-					?>
114
+                        echo $l->t('By uploading files, you agree to the %1$sterms of service%2$s.', [
115
+                            '<span id="show-terms-dialog">', '</span>'
116
+                        ]);
117
+                    ?>
118 118
 				</div>
119 119
 			<?php } ?>
120 120
 		</div>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
 		<div id="preview">
60 60
 			<?php if (isset($_['folder'])): ?>
61 61
 				<?php print_unescaped($_['folder']); ?>
62
-			<?php else: ?>
62
+			<?php else {
63
+    : ?>
63 64
 				<!-- preview frame to open file in with viewer -->
64 65
 				<div id="imgframe"></div>
65 66
 				<?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0) { ?>
@@ -68,7 +69,9 @@  discard block
 block discarded – undo
68 69
 							<?php p($_['filename'])?> (<?php p($_['fileSize']) ?>)
69 70
 						</div>
70 71
 						<?php if (!$_['hideDownload']) { ?>
71
-							<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
72
+							<a href="<?php p($_['downloadURL']);
73
+}
74
+?>" id="downloadFile" class="button">
72 75
 								<span class="icon icon-download"></span>
73 76
 								<?php p($l->t('Download'))?>
74 77
 							</a>
Please login to merge, or discard this patch.
apps/files_external/lib/Controller/AjaxController.php 1 patch
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -38,84 +38,84 @@
 block discarded – undo
38 38
 use OCP\IUserSession;
39 39
 
40 40
 class AjaxController extends Controller {
41
-	/** @var RSA */
42
-	private $rsaMechanism;
43
-	/** @var GlobalAuth  */
44
-	private $globalAuth;
45
-	/** @var IUserSession */
46
-	private $userSession;
47
-	/** @var IGroupManager */
48
-	private $groupManager;
41
+    /** @var RSA */
42
+    private $rsaMechanism;
43
+    /** @var GlobalAuth  */
44
+    private $globalAuth;
45
+    /** @var IUserSession */
46
+    private $userSession;
47
+    /** @var IGroupManager */
48
+    private $groupManager;
49 49
 
50
-	/**
51
-	 * @param string $appName
52
-	 * @param IRequest $request
53
-	 * @param RSA $rsaMechanism
54
-	 * @param GlobalAuth $globalAuth
55
-	 * @param IUserSession $userSession
56
-	 * @param IGroupManager $groupManager
57
-	 */
58
-	public function __construct($appName,
59
-								IRequest $request,
60
-								RSA $rsaMechanism,
61
-								GlobalAuth $globalAuth,
62
-								IUserSession $userSession,
63
-								IGroupManager $groupManager) {
64
-		parent::__construct($appName, $request);
65
-		$this->rsaMechanism = $rsaMechanism;
66
-		$this->globalAuth = $globalAuth;
67
-		$this->userSession = $userSession;
68
-		$this->groupManager = $groupManager;
69
-	}
50
+    /**
51
+     * @param string $appName
52
+     * @param IRequest $request
53
+     * @param RSA $rsaMechanism
54
+     * @param GlobalAuth $globalAuth
55
+     * @param IUserSession $userSession
56
+     * @param IGroupManager $groupManager
57
+     */
58
+    public function __construct($appName,
59
+                                IRequest $request,
60
+                                RSA $rsaMechanism,
61
+                                GlobalAuth $globalAuth,
62
+                                IUserSession $userSession,
63
+                                IGroupManager $groupManager) {
64
+        parent::__construct($appName, $request);
65
+        $this->rsaMechanism = $rsaMechanism;
66
+        $this->globalAuth = $globalAuth;
67
+        $this->userSession = $userSession;
68
+        $this->groupManager = $groupManager;
69
+    }
70 70
 
71
-	/**
72
-	 * @param int $keyLength
73
-	 * @return array
74
-	 */
75
-	private function generateSshKeys($keyLength) {
76
-		$key = $this->rsaMechanism->createKey($keyLength);
77
-		// Replace the placeholder label with a more meaningful one
78
-		$key['publickey'] = str_replace('phpseclib-generated-key', gethostname(), $key['publickey']);
71
+    /**
72
+     * @param int $keyLength
73
+     * @return array
74
+     */
75
+    private function generateSshKeys($keyLength) {
76
+        $key = $this->rsaMechanism->createKey($keyLength);
77
+        // Replace the placeholder label with a more meaningful one
78
+        $key['publickey'] = str_replace('phpseclib-generated-key', gethostname(), $key['publickey']);
79 79
 
80
-		return $key;
81
-	}
80
+        return $key;
81
+    }
82 82
 
83
-	/**
84
-	 * Generates an SSH public/private key pair.
85
-	 *
86
-	 * @NoAdminRequired
87
-	 * @param int $keyLength
88
-	 */
89
-	public function getSshKeys($keyLength = 1024) {
90
-		$key = $this->generateSshKeys($keyLength);
91
-		return new JSONResponse(
92
-			['data' => [
93
-				'private_key' => $key['privatekey'],
94
-				'public_key' => $key['publickey']
95
-			],
96
-				'status' => 'success'
97
-			]);
98
-	}
83
+    /**
84
+     * Generates an SSH public/private key pair.
85
+     *
86
+     * @NoAdminRequired
87
+     * @param int $keyLength
88
+     */
89
+    public function getSshKeys($keyLength = 1024) {
90
+        $key = $this->generateSshKeys($keyLength);
91
+        return new JSONResponse(
92
+            ['data' => [
93
+                'private_key' => $key['privatekey'],
94
+                'public_key' => $key['publickey']
95
+            ],
96
+                'status' => 'success'
97
+            ]);
98
+    }
99 99
 
100
-	/**
101
-	 * @NoAdminRequired
102
-	 *
103
-	 * @param string $uid
104
-	 * @param string $user
105
-	 * @param string $password
106
-	 * @return bool
107
-	 */
108
-	public function saveGlobalCredentials($uid, $user, $password) {
109
-		$currentUser = $this->userSession->getUser();
100
+    /**
101
+     * @NoAdminRequired
102
+     *
103
+     * @param string $uid
104
+     * @param string $user
105
+     * @param string $password
106
+     * @return bool
107
+     */
108
+    public function saveGlobalCredentials($uid, $user, $password) {
109
+        $currentUser = $this->userSession->getUser();
110 110
 
111
-		// Non-admins can only edit their own credentials
112
-		$allowedToEdit = ($this->groupManager->isAdmin($currentUser->getUID()) || $currentUser->getUID() === $uid);
111
+        // Non-admins can only edit their own credentials
112
+        $allowedToEdit = ($this->groupManager->isAdmin($currentUser->getUID()) || $currentUser->getUID() === $uid);
113 113
 
114
-		if ($allowedToEdit) {
115
-			$this->globalAuth->saveAuth($uid, $user, $password);
116
-			return true;
117
-		} else {
118
-			return false;
119
-		}
120
-	}
114
+        if ($allowedToEdit) {
115
+            $this->globalAuth->saveAuth($uid, $user, $password);
116
+            return true;
117
+        } else {
118
+            return false;
119
+        }
120
+    }
121 121
 }
Please login to merge, or discard this patch.
core/templates/loginflowv2/authpicker.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	<h2><?php p($l->t('Connect to your account')) ?></h2>
31 31
 	<p class="info">
32 32
 		<?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [
33
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
33
+			'<strong>'.\OCP\Util::sanitizeHTML($_['client']).'</strong>',
34 34
 			\OCP\Util::sanitizeHTML($_['instanceName'])
35 35
 		])) ?>
36 36
 	</p>
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 	<h2><?php p($l->t('Connect to your account')) ?></h2>
32 32
 	<p class="info">
33 33
 		<?php print_unescaped($l->t('Please log in before granting %1$s access to your %2$s account.', [
34
-			'<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
35
-			\OCP\Util::sanitizeHTML($_['instanceName'])
36
-		])) ?>
34
+            '<strong>' . \OCP\Util::sanitizeHTML($_['client']) . '</strong>',
35
+            \OCP\Util::sanitizeHTML($_['instanceName'])
36
+        ])) ?>
37 37
 	</p>
38 38
 
39 39
 	<div class="notecard warning">
Please login to merge, or discard this patch.
apps/user_ldap/lib/ConnectionFactory.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
 namespace OCA\User_LDAP;
25 25
 
26 26
 class ConnectionFactory {
27
-	/** @var ILDAPWrapper */
28
-	private $ldap;
27
+    /** @var ILDAPWrapper */
28
+    private $ldap;
29 29
 
30
-	public function __construct(ILDAPWrapper $ldap) {
31
-		$this->ldap = $ldap;
32
-	}
30
+    public function __construct(ILDAPWrapper $ldap) {
31
+        $this->ldap = $ldap;
32
+    }
33 33
 
34
-	public function get($prefix) {
35
-		return new Connection($this->ldap, $prefix, 'user_ldap');
36
-	}
34
+    public function get($prefix) {
35
+        return new Connection($this->ldap, $prefix, 'user_ldap');
36
+    }
37 37
 }
Please login to merge, or discard this patch.
apps/files_trashbin/lib/Sabre/TrashFolderFile.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 namespace OCA\Files_Trashbin\Sabre;
29 29
 
30 30
 class TrashFolderFile extends AbstractTrashFile {
31
-	public function get() {
32
-		return $this->data->getStorage()->fopen($this->data->getInternalPath(), 'rb');
33
-	}
31
+    public function get() {
32
+        return $this->data->getStorage()->fopen($this->data->getInternalPath(), 'rb');
33
+    }
34 34
 }
Please login to merge, or discard this patch.
lib/public/Authentication/Events/LoginFailedEvent.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -36,24 +36,24 @@
 block discarded – undo
36 36
  */
37 37
 class LoginFailedEvent extends Event {
38 38
 
39
-	/** @var string */
40
-	private $uid;
41
-
42
-	/**
43
-	 * @since 19.0.0
44
-	 */
45
-	public function __construct(string $uid) {
46
-		parent::__construct();
47
-
48
-		$this->uid = $uid;
49
-	}
50
-
51
-	/**
52
-	 * returns the uid of the user that was tried to login against
53
-	 *
54
-	 * @since 19.0.0
55
-	 */
56
-	public function getUid(): string {
57
-		return $this->uid;
58
-	}
39
+    /** @var string */
40
+    private $uid;
41
+
42
+    /**
43
+     * @since 19.0.0
44
+     */
45
+    public function __construct(string $uid) {
46
+        parent::__construct();
47
+
48
+        $this->uid = $uid;
49
+    }
50
+
51
+    /**
52
+     * returns the uid of the user that was tried to login against
53
+     *
54
+     * @since 19.0.0
55
+     */
56
+    public function getUid(): string {
57
+        return $this->uid;
58
+    }
59 59
 }
Please login to merge, or discard this patch.
lib/public/Files_FullTextSearch/Model/AFilesDocument.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -53,52 +53,52 @@
 block discarded – undo
53 53
 abstract class AFilesDocument extends IndexDocument {
54 54
 
55 55
 
56
-	/**
57
-	 * Returns the owner of the document/file.
58
-	 *
59
-	 * @since 15.0.0
60
-	 *
61
-	 * @return string
62
-	 */
63
-	abstract public function getOwnerId(): string;
56
+    /**
57
+     * Returns the owner of the document/file.
58
+     *
59
+     * @since 15.0.0
60
+     *
61
+     * @return string
62
+     */
63
+    abstract public function getOwnerId(): string;
64 64
 
65 65
 
66
-	/**
67
-	 * Returns the current viewer of the document/file.
68
-	 *
69
-	 * @since 15.0.0
70
-	 *
71
-	 * @return string
72
-	 */
73
-	abstract public function getViewerId(): string;
66
+    /**
67
+     * Returns the current viewer of the document/file.
68
+     *
69
+     * @since 15.0.0
70
+     *
71
+     * @return string
72
+     */
73
+    abstract public function getViewerId(): string;
74 74
 
75 75
 
76
-	/**
77
-	 * Returns the type of the document/file.
78
-	 *
79
-	 * @since 15.0.0
80
-	 *
81
-	 * @return string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
82
-	 */
83
-	abstract public function getType(): string;
76
+    /**
77
+     * Returns the type of the document/file.
78
+     *
79
+     * @since 15.0.0
80
+     *
81
+     * @return string \OCP\Files\FileInfo::TYPE_FILE|\OCP\Files\FileInfo::TYPE_FOLDER
82
+     */
83
+    abstract public function getType(): string;
84 84
 
85 85
 
86
-	/**
87
-	 * Returns the mimetype of the document/file.
88
-	 *
89
-	 * @since 15.0.0
90
-	 *
91
-	 * @return string
92
-	 */
93
-	abstract public function getMimetype(): string;
86
+    /**
87
+     * Returns the mimetype of the document/file.
88
+     *
89
+     * @since 15.0.0
90
+     *
91
+     * @return string
92
+     */
93
+    abstract public function getMimetype(): string;
94 94
 
95
-	/**
96
-	 * Returns the path of the document/file.
97
-	 *
98
-	 * @since 15.0.0
99
-	 *
100
-	 * @return string
101
-	 */
102
-	abstract public function getPath(): string;
95
+    /**
96
+     * Returns the path of the document/file.
97
+     *
98
+     * @since 15.0.0
99
+     *
100
+     * @return string
101
+     */
102
+    abstract public function getPath(): string;
103 103
 
104 104
 }
Please login to merge, or discard this patch.
lib/private/Authentication/Token/INamedToken.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@
 block discarded – undo
28 28
 namespace OC\Authentication\Token;
29 29
 
30 30
 interface INamedToken extends IToken {
31
-	/**
32
-	 * Set token name
33
-	 *
34
-	 * @param string $name
35
-	 * @return void
36
-	 */
37
-	public function setName(string $name): void;
31
+    /**
32
+     * Set token name
33
+     *
34
+     * @param string $name
35
+     * @return void
36
+     */
37
+    public function setName(string $name): void;
38 38
 }
Please login to merge, or discard this patch.
apps/twofactor_backupcodes/lib/BackgroundJob/CheckBackupCodes.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	}
58 58
 
59 59
 	protected function run($argument) {
60
-		$this->userManager->callForSeenUsers(function (IUser $user) {
60
+		$this->userManager->callForSeenUsers(function(IUser $user) {
61 61
 			$providers = $this->registry->getProviderStates($user);
62 62
 			$isTwoFactorAuthenticated = $this->twofactorManager->isTwoFactorAuthenticated($user);
63 63
 
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -37,34 +37,34 @@
 block discarded – undo
37 37
 
38 38
 class CheckBackupCodes extends QueuedJob {
39 39
 
40
-	/** @var IUserManager */
41
-	private $userManager;
40
+    /** @var IUserManager */
41
+    private $userManager;
42 42
 
43
-	/** @var IJobList */
44
-	private $jobList;
43
+    /** @var IJobList */
44
+    private $jobList;
45 45
 
46
-	/** @var IRegistry */
47
-	private $registry;
46
+    /** @var IRegistry */
47
+    private $registry;
48 48
 
49
-	/** @var Manager */
50
-	private $twofactorManager;
49
+    /** @var Manager */
50
+    private $twofactorManager;
51 51
 
52
-	public function __construct(ITimeFactory $timeFactory, IUserManager $userManager, IJobList $jobList, Manager $twofactorManager, IRegistry $registry) {
53
-		parent::__construct($timeFactory);
54
-		$this->userManager = $userManager;
55
-		$this->jobList = $jobList;
56
-		$this->twofactorManager = $twofactorManager;
57
-		$this->registry = $registry;
58
-	}
52
+    public function __construct(ITimeFactory $timeFactory, IUserManager $userManager, IJobList $jobList, Manager $twofactorManager, IRegistry $registry) {
53
+        parent::__construct($timeFactory);
54
+        $this->userManager = $userManager;
55
+        $this->jobList = $jobList;
56
+        $this->twofactorManager = $twofactorManager;
57
+        $this->registry = $registry;
58
+    }
59 59
 
60
-	protected function run($argument) {
61
-		$this->userManager->callForSeenUsers(function (IUser $user) {
62
-			$providers = $this->registry->getProviderStates($user);
63
-			$isTwoFactorAuthenticated = $this->twofactorManager->isTwoFactorAuthenticated($user);
60
+    protected function run($argument) {
61
+        $this->userManager->callForSeenUsers(function (IUser $user) {
62
+            $providers = $this->registry->getProviderStates($user);
63
+            $isTwoFactorAuthenticated = $this->twofactorManager->isTwoFactorAuthenticated($user);
64 64
 
65
-			if ($isTwoFactorAuthenticated && isset($providers['backup_codes']) && $providers['backup_codes'] === false) {
66
-				$this->jobList->add(RememberBackupCodesJob::class, ['uid' => $user->getUID()]);
67
-			}
68
-		});
69
-	}
65
+            if ($isTwoFactorAuthenticated && isset($providers['backup_codes']) && $providers['backup_codes'] === false) {
66
+                $this->jobList->add(RememberBackupCodesJob::class, ['uid' => $user->getUID()]);
67
+            }
68
+        });
69
+    }
70 70
 }
Please login to merge, or discard this patch.