Completed
Push — master ( efa2cd...12490b )
by Julius
23:42 queued 16s
created
core/Command/Integrity/SignCore.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 			$this->checker->writeCoreSignature($x509, $rsa, $path);
100 100
 			$output->writeln('Successfully signed "core"');
101 101
 		} catch (\Exception $e) {
102
-			$output->writeln('Error: ' . $e->getMessage());
102
+			$output->writeln('Error: '.$e->getMessage());
103 103
 			return 1;
104 104
 		}
105 105
 		return 0;
Please login to merge, or discard this patch.
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -22,60 +22,60 @@
 block discarded – undo
22 22
  * @package OC\Core\Command\Integrity
23 23
  */
24 24
 class SignCore extends Command {
25
-	public function __construct(
26
-		private Checker $checker,
27
-		private FileAccessHelper $fileAccessHelper,
28
-	) {
29
-		parent::__construct(null);
30
-	}
25
+    public function __construct(
26
+        private Checker $checker,
27
+        private FileAccessHelper $fileAccessHelper,
28
+    ) {
29
+        parent::__construct(null);
30
+    }
31 31
 
32
-	protected function configure() {
33
-		$this
34
-			->setName('integrity:sign-core')
35
-			->setDescription('Sign core using a private key.')
36
-			->addOption('privateKey', null, InputOption::VALUE_REQUIRED, 'Path to private key to use for signing')
37
-			->addOption('certificate', null, InputOption::VALUE_REQUIRED, 'Path to certificate to use for signing')
38
-			->addOption('path', null, InputOption::VALUE_REQUIRED, 'Path of core to sign');
39
-	}
32
+    protected function configure() {
33
+        $this
34
+            ->setName('integrity:sign-core')
35
+            ->setDescription('Sign core using a private key.')
36
+            ->addOption('privateKey', null, InputOption::VALUE_REQUIRED, 'Path to private key to use for signing')
37
+            ->addOption('certificate', null, InputOption::VALUE_REQUIRED, 'Path to certificate to use for signing')
38
+            ->addOption('path', null, InputOption::VALUE_REQUIRED, 'Path of core to sign');
39
+    }
40 40
 
41
-	/**
42
-	 * {@inheritdoc }
43
-	 */
44
-	protected function execute(InputInterface $input, OutputInterface $output): int {
45
-		$privateKeyPath = $input->getOption('privateKey');
46
-		$keyBundlePath = $input->getOption('certificate');
47
-		$path = $input->getOption('path');
48
-		if (is_null($privateKeyPath) || is_null($keyBundlePath) || is_null($path)) {
49
-			$output->writeln('--privateKey, --certificate and --path are required.');
50
-			return 1;
51
-		}
41
+    /**
42
+     * {@inheritdoc }
43
+     */
44
+    protected function execute(InputInterface $input, OutputInterface $output): int {
45
+        $privateKeyPath = $input->getOption('privateKey');
46
+        $keyBundlePath = $input->getOption('certificate');
47
+        $path = $input->getOption('path');
48
+        if (is_null($privateKeyPath) || is_null($keyBundlePath) || is_null($path)) {
49
+            $output->writeln('--privateKey, --certificate and --path are required.');
50
+            return 1;
51
+        }
52 52
 
53
-		$privateKey = $this->fileAccessHelper->file_get_contents($privateKeyPath);
54
-		$keyBundle = $this->fileAccessHelper->file_get_contents($keyBundlePath);
53
+        $privateKey = $this->fileAccessHelper->file_get_contents($privateKeyPath);
54
+        $keyBundle = $this->fileAccessHelper->file_get_contents($keyBundlePath);
55 55
 
56
-		if ($privateKey === false) {
57
-			$output->writeln(sprintf('Private key "%s" does not exists.', $privateKeyPath));
58
-			return 1;
59
-		}
56
+        if ($privateKey === false) {
57
+            $output->writeln(sprintf('Private key "%s" does not exists.', $privateKeyPath));
58
+            return 1;
59
+        }
60 60
 
61
-		if ($keyBundle === false) {
62
-			$output->writeln(sprintf('Certificate "%s" does not exists.', $keyBundlePath));
63
-			return 1;
64
-		}
61
+        if ($keyBundle === false) {
62
+            $output->writeln(sprintf('Certificate "%s" does not exists.', $keyBundlePath));
63
+            return 1;
64
+        }
65 65
 
66
-		$rsa = new RSA();
67
-		$rsa->loadKey($privateKey);
68
-		$x509 = new X509();
69
-		$x509->loadX509($keyBundle);
70
-		$x509->setPrivateKey($rsa);
66
+        $rsa = new RSA();
67
+        $rsa->loadKey($privateKey);
68
+        $x509 = new X509();
69
+        $x509->loadX509($keyBundle);
70
+        $x509->setPrivateKey($rsa);
71 71
 
72
-		try {
73
-			$this->checker->writeCoreSignature($x509, $rsa, $path);
74
-			$output->writeln('Successfully signed "core"');
75
-		} catch (\Exception $e) {
76
-			$output->writeln('Error: ' . $e->getMessage());
77
-			return 1;
78
-		}
79
-		return 0;
80
-	}
72
+        try {
73
+            $this->checker->writeCoreSignature($x509, $rsa, $path);
74
+            $output->writeln('Successfully signed "core"');
75
+        } catch (\Exception $e) {
76
+            $output->writeln('Error: ' . $e->getMessage());
77
+            return 1;
78
+        }
79
+        return 0;
80
+    }
81 81
 }
Please login to merge, or discard this patch.
core/Command/TwoFactorAuth/Base.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 */
52 52
 	public function completeArgumentValues($argumentName, CompletionContext $context) {
53 53
 		if ($argumentName === 'uid') {
54
-			return array_map(function (IUser $user) {
54
+			return array_map(function(IUser $user) {
55 55
 				return $user->getUID();
56 56
 			}, $this->userManager->search($context->getCurrentWord(), 100));
57 57
 		}
Please login to merge, or discard this patch.
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -10,37 +10,37 @@
 block discarded – undo
10 10
 use Stecman\Component\Symfony\Console\BashCompletion\CompletionContext;
11 11
 
12 12
 class Base extends \OC\Core\Command\Base {
13
-	public function __construct(
14
-		?string $name,
15
-		protected IUserManager $userManager,
16
-	) {
17
-		parent::__construct($name);
18
-	}
13
+    public function __construct(
14
+        ?string $name,
15
+        protected IUserManager $userManager,
16
+    ) {
17
+        parent::__construct($name);
18
+    }
19 19
 
20
-	/**
21
-	 * Return possible values for the named option
22
-	 *
23
-	 * @param string $optionName
24
-	 * @param CompletionContext $context
25
-	 * @return string[]
26
-	 */
27
-	public function completeOptionValues($optionName, CompletionContext $context) {
28
-		return [];
29
-	}
20
+    /**
21
+     * Return possible values for the named option
22
+     *
23
+     * @param string $optionName
24
+     * @param CompletionContext $context
25
+     * @return string[]
26
+     */
27
+    public function completeOptionValues($optionName, CompletionContext $context) {
28
+        return [];
29
+    }
30 30
 
31
-	/**
32
-	 * Return possible values for the named argument
33
-	 *
34
-	 * @param string $argumentName
35
-	 * @param CompletionContext $context
36
-	 * @return string[]
37
-	 */
38
-	public function completeArgumentValues($argumentName, CompletionContext $context) {
39
-		if ($argumentName === 'uid') {
40
-			return array_map(function (IUser $user) {
41
-				return $user->getUID();
42
-			}, $this->userManager->search($context->getCurrentWord(), 100));
43
-		}
44
-		return [];
45
-	}
31
+    /**
32
+     * Return possible values for the named argument
33
+     *
34
+     * @param string $argumentName
35
+     * @param CompletionContext $context
36
+     * @return string[]
37
+     */
38
+    public function completeArgumentValues($argumentName, CompletionContext $context) {
39
+        if ($argumentName === 'uid') {
40
+            return array_map(function (IUser $user) {
41
+                return $user->getUID();
42
+            }, $this->userManager->search($context->getCurrentWord(), 100));
43
+        }
44
+        return [];
45
+    }
46 46
 }
Please login to merge, or discard this patch.
core/Command/Encryption/ListModules.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
67 67
 	 */
68 68
 	protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
69 69
 		if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
70
-			array_walk($items, function (&$item) {
70
+			array_walk($items, function(&$item) {
71 71
 				if (!$item['default']) {
72 72
 					$item = $item['displayName'];
73 73
 				} else {
74
-					$item = $item['displayName'] . ' [default*]';
74
+					$item = $item['displayName'].' [default*]';
75 75
 				}
76 76
 			});
77 77
 		}
Please login to merge, or discard this patch.
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -14,58 +14,58 @@
 block discarded – undo
14 14
 use Symfony\Component\Console\Output\OutputInterface;
15 15
 
16 16
 class ListModules extends Base {
17
-	public function __construct(
18
-		protected IManager $encryptionManager,
19
-		protected IConfig $config,
20
-	) {
21
-		parent::__construct();
22
-	}
17
+    public function __construct(
18
+        protected IManager $encryptionManager,
19
+        protected IConfig $config,
20
+    ) {
21
+        parent::__construct();
22
+    }
23 23
 
24
-	protected function configure() {
25
-		parent::configure();
24
+    protected function configure() {
25
+        parent::configure();
26 26
 
27
-		$this
28
-			->setName('encryption:list-modules')
29
-			->setDescription('List all available encryption modules')
30
-		;
31
-	}
27
+        $this
28
+            ->setName('encryption:list-modules')
29
+            ->setDescription('List all available encryption modules')
30
+        ;
31
+    }
32 32
 
33
-	protected function execute(InputInterface $input, OutputInterface $output): int {
34
-		$isMaintenanceModeEnabled = $this->config->getSystemValue('maintenance', false);
35
-		if ($isMaintenanceModeEnabled) {
36
-			$output->writeln('Maintenance mode must be disabled when listing modules');
37
-			$output->writeln('in order to list the relevant encryption modules correctly.');
38
-			return 1;
39
-		}
33
+    protected function execute(InputInterface $input, OutputInterface $output): int {
34
+        $isMaintenanceModeEnabled = $this->config->getSystemValue('maintenance', false);
35
+        if ($isMaintenanceModeEnabled) {
36
+            $output->writeln('Maintenance mode must be disabled when listing modules');
37
+            $output->writeln('in order to list the relevant encryption modules correctly.');
38
+            return 1;
39
+        }
40 40
 
41
-		$encryptionModules = $this->encryptionManager->getEncryptionModules();
42
-		$defaultEncryptionModuleId = $this->encryptionManager->getDefaultEncryptionModuleId();
41
+        $encryptionModules = $this->encryptionManager->getEncryptionModules();
42
+        $defaultEncryptionModuleId = $this->encryptionManager->getDefaultEncryptionModuleId();
43 43
 
44
-		$encModules = [];
45
-		foreach ($encryptionModules as $module) {
46
-			$encModules[$module['id']]['displayName'] = $module['displayName'];
47
-			$encModules[$module['id']]['default'] = $module['id'] === $defaultEncryptionModuleId;
48
-		}
49
-		$this->writeModuleList($input, $output, $encModules);
50
-		return 0;
51
-	}
44
+        $encModules = [];
45
+        foreach ($encryptionModules as $module) {
46
+            $encModules[$module['id']]['displayName'] = $module['displayName'];
47
+            $encModules[$module['id']]['default'] = $module['id'] === $defaultEncryptionModuleId;
48
+        }
49
+        $this->writeModuleList($input, $output, $encModules);
50
+        return 0;
51
+    }
52 52
 
53
-	/**
54
-	 * @param InputInterface $input
55
-	 * @param OutputInterface $output
56
-	 * @param array $items
57
-	 */
58
-	protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
59
-		if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
60
-			array_walk($items, function (&$item) {
61
-				if (!$item['default']) {
62
-					$item = $item['displayName'];
63
-				} else {
64
-					$item = $item['displayName'] . ' [default*]';
65
-				}
66
-			});
67
-		}
53
+    /**
54
+     * @param InputInterface $input
55
+     * @param OutputInterface $output
56
+     * @param array $items
57
+     */
58
+    protected function writeModuleList(InputInterface $input, OutputInterface $output, $items) {
59
+        if ($input->getOption('output') === self::OUTPUT_FORMAT_PLAIN) {
60
+            array_walk($items, function (&$item) {
61
+                if (!$item['default']) {
62
+                    $item = $item['displayName'];
63
+                } else {
64
+                    $item = $item['displayName'] . ' [default*]';
65
+                }
66
+            });
67
+        }
68 68
 
69
-		$this->writeArrayInOutputFormat($input, $output, $items);
70
-	}
69
+        $this->writeArrayInOutputFormat($input, $output, $items);
70
+    }
71 71
 }
Please login to merge, or discard this patch.
core/templates/twofactorshowchallenge.php 2 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,11 @@
 block discarded – undo
16 16
 	<?php if ($error): ?>
17 17
 			<?php if ($error_message): ?>
18 18
 				<p><strong><?php p($error_message); ?></strong></p>
19
-			<?php else: ?>
20
-				<p><strong><?php p($l->t('Error while validating your second factor')); ?></strong></p>
19
+			<?php else {
20
+    : ?>
21
+				<p><strong><?php p($l->t('Error while validating your second factor'));
22
+}
23
+?></strong></p>
21 24
 			<?php endif; ?>
22 25
 	<?php endif; ?>
23 26
 	<?php print_unescaped($template); ?>
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
24 24
 	<?php if (!is_null($_['backupProvider'])): ?>
25 25
 	<p>
26 26
 		<a class="two-factor-secondary" href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.TwoFactorChallenge.showChallenge',
27
-			[
28
-				'challengeProviderId' => $_['backupProvider']->getId(),
29
-				'redirect_url' => $_['redirect_url'],
30
-			]
31
-		)) ?>">
27
+            [
28
+                'challengeProviderId' => $_['backupProvider']->getId(),
29
+                'redirect_url' => $_['redirect_url'],
30
+            ]
31
+        )) ?>">
32 32
 			<?php p($l->t('Use backup code')) ?>
33 33
 		</a>
34 34
 	</p>
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Auth/InvalidAuth.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,18 +27,18 @@
 block discarded – undo
27 27
  */
28 28
 class InvalidAuth extends AuthMechanism {
29 29
 
30
-	/**
31
-	 * Constructs a new InvalidAuth with the id of the invalid auth
32
-	 * for display purposes
33
-	 *
34
-	 * @param string $invalidId invalid id
35
-	 */
36
-	public function __construct($invalidId) {
37
-		$this
38
-			->setIdentifier($invalidId)
39
-			->setScheme(self::SCHEME_NULL)
40
-			->setText('Unknown auth mechanism backend ' . $invalidId)
41
-		;
42
-	}
30
+    /**
31
+     * Constructs a new InvalidAuth with the id of the invalid auth
32
+     * for display purposes
33
+     *
34
+     * @param string $invalidId invalid id
35
+     */
36
+    public function __construct($invalidId) {
37
+        $this
38
+            ->setIdentifier($invalidId)
39
+            ->setScheme(self::SCHEME_NULL)
40
+            ->setText('Unknown auth mechanism backend ' . $invalidId)
41
+        ;
42
+    }
43 43
 
44 44
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 		$this
39 39
 			->setIdentifier($invalidId)
40 40
 			->setScheme(self::SCHEME_NULL)
41
-			->setText('Unknown auth mechanism backend ' . $invalidId)
41
+			->setText('Unknown auth mechanism backend '.$invalidId)
42 42
 		;
43 43
 	}
44 44
 }
Please login to merge, or discard this patch.
lib/public/Collaboration/Collaborators/ISearchPlugin.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -30,13 +30,13 @@
 block discarded – undo
30 30
  * @since 13.0.0
31 31
  */
32 32
 interface ISearchPlugin {
33
-	/**
34
-	 * @param string $search
35
-	 * @param int $limit
36
-	 * @param int $offset
37
-	 * @param ISearchResult $searchResult
38
-	 * @return bool whether the plugin has more results
39
-	 * @since 13.0.0
40
-	 */
41
-	public function search($search, $limit, $offset, ISearchResult $searchResult);
33
+    /**
34
+     * @param string $search
35
+     * @param int $limit
36
+     * @param int $offset
37
+     * @param ISearchResult $searchResult
38
+     * @return bool whether the plugin has more results
39
+     * @since 13.0.0
40
+     */
41
+    public function search($search, $limit, $offset, ISearchResult $searchResult);
42 42
 }
Please login to merge, or discard this patch.
Middleware/Security/Exceptions/LaxSameSiteCookieFailedException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
  * @package OC\AppFramework\Middleware\Security\Exceptions
33 33
  */
34 34
 class LaxSameSiteCookieFailedException extends SecurityException {
35
-	public function __construct() {
36
-		parent::__construct('Lax Same Site Cookie is invalid in request.', Http::STATUS_PRECONDITION_FAILED);
37
-	}
35
+    public function __construct() {
36
+        parent::__construct('Lax Same Site Cookie is invalid in request.', Http::STATUS_PRECONDITION_FAILED);
37
+    }
38 38
 }
Please login to merge, or discard this patch.
lib/private/Remote/Credentials.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -25,31 +25,31 @@
 block discarded – undo
25 25
 use OCP\Remote\ICredentials;
26 26
 
27 27
 class Credentials implements ICredentials {
28
-	/** @var string */
29
-	private $user;
30
-	/** @var string */
31
-	private $password;
28
+    /** @var string */
29
+    private $user;
30
+    /** @var string */
31
+    private $password;
32 32
 
33
-	/**
34
-	 * @param string $user
35
-	 * @param string $password
36
-	 */
37
-	public function __construct($user, $password) {
38
-		$this->user = $user;
39
-		$this->password = $password;
40
-	}
33
+    /**
34
+     * @param string $user
35
+     * @param string $password
36
+     */
37
+    public function __construct($user, $password) {
38
+        $this->user = $user;
39
+        $this->password = $password;
40
+    }
41 41
 
42
-	/**
43
-	 * @return string
44
-	 */
45
-	public function getUsername() {
46
-		return $this->user;
47
-	}
42
+    /**
43
+     * @return string
44
+     */
45
+    public function getUsername() {
46
+        return $this->user;
47
+    }
48 48
 
49
-	/**
50
-	 * @return string
51
-	 */
52
-	public function getPassword() {
53
-		return $this->password;
54
-	}
49
+    /**
50
+     * @return string
51
+     */
52
+    public function getPassword() {
53
+        return $this->password;
54
+    }
55 55
 }
Please login to merge, or discard this patch.
apps/files_sharing/composer/composer/autoload_psr4.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 $baseDir = $vendorDir;
7 7
 
8 8
 return array(
9
-    'OCA\\Files_Sharing\\' => array($baseDir . '/../lib'),
9
+    'OCA\\Files_Sharing\\' => array($baseDir.'/../lib'),
10 10
 );
Please login to merge, or discard this patch.