Completed
Push — master ( 672e4f...e22914 )
by Maxence
21:09 queued 14s
created
apps/files_external/lib/Lib/Storage/SFTPWriteStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		if (isset($context[$name])) {
71 71
 			$context = $context[$name];
72 72
 		} else {
73
-			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
73
+			throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set');
74 74
 		}
75 75
 		if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) {
76 76
 			$this->sftp = $context['session'];
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 	public function stream_open($path, $mode, $options, &$opened_path) {
84 84
 		[, $path] = explode('://', $path);
85
-		$path = '/' . ltrim($path);
85
+		$path = '/'.ltrim($path);
86 86
 		$path = str_replace('//', '/', $path);
87 87
 
88 88
 		$this->loadContext('sftp');
Please login to merge, or discard this patch.
apps/files_external/lib/Lib/Storage/SFTPReadStream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 		if (isset($context[$name])) {
71 71
 			$context = $context[$name];
72 72
 		} else {
73
-			throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set');
73
+			throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set');
74 74
 		}
75 75
 		if (isset($context['session']) and $context['session'] instanceof \phpseclib\Net\SFTP) {
76 76
 			$this->sftp = $context['session'];
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
 	public function stream_open($path, $mode, $options, &$opened_path) {
84 84
 		[, $path] = explode('://', $path);
85
-		$path = '/' . ltrim($path);
85
+		$path = '/'.ltrim($path);
86 86
 		$path = str_replace('//', '/', $path);
87 87
 
88 88
 		$this->loadContext('sftp');
Please login to merge, or discard this patch.
core/Command/Db/Migrations/StatusCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
 			if (is_array($value)) {
63 63
 				$output->writeln("    <comment>>></comment> $key:");
64 64
 				foreach ($value as $subKey => $subValue) {
65
-					$output->writeln("        <comment>>></comment> $subKey: " . str_repeat(' ', 46 - strlen($subKey)) . $subValue);
65
+					$output->writeln("        <comment>>></comment> $subKey: ".str_repeat(' ', 46 - strlen($subKey)).$subValue);
66 66
 				}
67 67
 			} else {
68
-				$output->writeln("    <comment>>></comment> $key: " . str_repeat(' ', 50 - strlen($key)) . $value);
68
+				$output->writeln("    <comment>>></comment> $key: ".str_repeat(' ', 50 - strlen($key)).$value);
69 69
 			}
70 70
 		}
71 71
 		return 0;
Please login to merge, or discard this patch.
core/Command/Security/ListCertificates.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	protected function execute(InputInterface $input, OutputInterface $output): int {
54 54
 		$outputType = $input->getOption('output');
55 55
 		if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
56
-			$certificates = array_map(function (ICertificate $certificate) {
56
+			$certificates = array_map(function(ICertificate $certificate) {
57 57
 				return [
58 58
 					'name' => $certificate->getName(),
59 59
 					'common_name' => $certificate->getCommonName(),
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 				'Issued By'
80 80
 			]);
81 81
 
82
-			$rows = array_map(function (ICertificate $certificate) {
82
+			$rows = array_map(function(ICertificate $certificate) {
83 83
 				return [
84 84
 					$certificate->getName(),
85 85
 					$certificate->getCommonName(),
Please login to merge, or discard this patch.
core/Command/Encryption/SetDefaultModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -76,11 +76,11 @@
 block discarded – undo
76 76
 		$moduleId = $input->getArgument('module');
77 77
 
78 78
 		if ($moduleId === $this->encryptionManager->getDefaultEncryptionModuleId()) {
79
-			$output->writeln('"' . $moduleId . '"" is already the default module');
79
+			$output->writeln('"'.$moduleId.'"" is already the default module');
80 80
 		} elseif ($this->encryptionManager->setDefaultEncryptionModule($moduleId)) {
81
-			$output->writeln('<info>Set default module to "' . $moduleId . '"</info>');
81
+			$output->writeln('<info>Set default module to "'.$moduleId.'"</info>');
82 82
 		} else {
83
-			$output->writeln('<error>The specified module "' . $moduleId . '" does not exist</error>');
83
+			$output->writeln('<error>The specified module "'.$moduleId.'" does not exist</error>');
84 84
 			return 1;
85 85
 		}
86 86
 		return 0;
Please login to merge, or discard this patch.
core/Command/Db/ConvertFilecacheBigInt.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 					$column->setType(Type::getType(Types::BIGINT));
94 94
 					$column->setOptions(['length' => 20]);
95 95
 
96
-					$updates[] = '* ' . $tableName . '.' . $columnName;
96
+					$updates[] = '* '.$tableName.'.'.$columnName;
97 97
 				}
98 98
 			}
99 99
 		}
Please login to merge, or discard this patch.
apps/dav/lib/Migration/Version1005Date20180530124431.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 
47 47
 		$types = ['resources', 'rooms'];
48 48
 		foreach ($types as $type) {
49
-			if (!$schema->hasTable('calendar_' . $type)) {
50
-				$table = $schema->createTable('calendar_' . $type);
49
+			if (!$schema->hasTable('calendar_'.$type)) {
50
+				$table = $schema->createTable('calendar_'.$type);
51 51
 
52 52
 				$table->addColumn('id', Types::BIGINT, [
53 53
 					'autoincrement' => true,
@@ -77,9 +77,9 @@  discard block
 block discarded – undo
77 77
 				]);
78 78
 
79 79
 				$table->setPrimaryKey(['id']);
80
-				$table->addIndex(['backend_id', 'resource_id'], 'calendar_' . $type . '_bkdrsc');
81
-				$table->addIndex(['email'], 'calendar_' . $type . '_email');
82
-				$table->addIndex(['displayname'], 'calendar_' . $type . '_name');
80
+				$table->addIndex(['backend_id', 'resource_id'], 'calendar_'.$type.'_bkdrsc');
81
+				$table->addIndex(['email'], 'calendar_'.$type.'_email');
82
+				$table->addIndex(['displayname'], 'calendar_'.$type.'_name');
83 83
 			}
84 84
 		}
85 85
 
Please login to merge, or discard this patch.
apps/dav/lib/Migration/Version1011Date20190725113607.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 					'length' => 11,
60 60
 					'unsigned' => true,
61 61
 				]);
62
-				$table->addColumn($type . '_id', Types::BIGINT, [
62
+				$table->addColumn($type.'_id', Types::BIGINT, [
63 63
 					'notnull' => true,
64 64
 					'length' => 11,
65 65
 					'unsigned' => true,
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 				]);
75 75
 
76 76
 				$table->setPrimaryKey(['id']);
77
-				$table->addIndex([$type . '_id', 'key'], $this->getMetadataTableName($type) . '_idk');
77
+				$table->addIndex([$type.'_id', 'key'], $this->getMetadataTableName($type).'_idk');
78 78
 			}
79 79
 		}
80 80
 
@@ -86,6 +86,6 @@  discard block
 block discarded – undo
86 86
 	 * @return string
87 87
 	 */
88 88
 	private function getMetadataTableName(string $type):string {
89
-		return 'calendar_' . $type . 's_md';
89
+		return 'calendar_'.$type.'s_md';
90 90
 	}
91 91
 }
Please login to merge, or discard this patch.
lib/private/AppFramework/Bootstrap/FunctionInjector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
 	public function injectFn(callable $fn) {
45 45
 		$reflected = new ReflectionFunction(Closure::fromCallable($fn));
46
-		return $fn(...array_map(function (ReflectionParameter $param) {
46
+		return $fn(...array_map(function(ReflectionParameter $param) {
47 47
 			// First we try by type (more likely these days)
48 48
 			if (($type = $param->getType()) !== null) {
49 49
 				try {
Please login to merge, or discard this patch.