Passed
Push — master ( c5c219...cdd84d )
by Morris
12:06 queued 10s
created
lib/public/AppFramework/Http/Template/LinkMenuAction.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -51,16 +51,16 @@
 block discarded – undo
51 51
 	 * @since 14.0.0
52 52
 	 */
53 53
 	public function render(): string {
54
-		return '<li>' .
55
-			'<a id="directLink-container">' .
56
-			'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
57
-			'<label for="directLink">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
58
-			'</a>' .
59
-			'</li>' .
60
-			'<li>' .
61
-			'<span class="menuitem">' .
62
-			'<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' .
63
-			'</span>' .
54
+		return '<li>'.
55
+			'<a id="directLink-container">'.
56
+			'<span class="icon '.Util::sanitizeHTML($this->getIcon()).'"></span>'.
57
+			'<label for="directLink">'.Util::sanitizeHTML($this->getLabel()).'</label>'.
58
+			'</a>'.
59
+			'</li>'.
60
+			'<li>'.
61
+			'<span class="menuitem">'.
62
+			'<input id="directLink" type="text" readonly="" value="'.Util::sanitizeHTML($this->getLink()).'">'.
63
+			'</span>'.
64 64
 			'</li>';
65 65
 	}
66 66
 }
Please login to merge, or discard this patch.
lib/public/AppFramework/Http/Template/ExternalShareMenuAction.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,15 +63,15 @@
 block discarded – undo
63 63
 	 * @since 14.0.0
64 64
 	 */
65 65
 	public function render(): string {
66
-		return '<li>' .
67
-			'<a id="save-external-share" data-protected="false" data-owner-display-name="' . Util::sanitizeHTML($this->displayname) . '" data-owner="' . Util::sanitizeHTML($this->owner) . '" data-name="' . Util::sanitizeHTML($this->shareName) . '">' .
68
-			'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
69
-			'<label for="remote_address">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
70
-			'<form class="save-form hidden" action="#">' .
71
-			'<input type="text" id="remote_address" placeholder="[email protected]">' .
72
-			'<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>' .
73
-			'</form>' .
74
-			'</a>' .
66
+		return '<li>'.
67
+			'<a id="save-external-share" data-protected="false" data-owner-display-name="'.Util::sanitizeHTML($this->displayname).'" data-owner="'.Util::sanitizeHTML($this->owner).'" data-name="'.Util::sanitizeHTML($this->shareName).'">'.
68
+			'<span class="icon '.Util::sanitizeHTML($this->getIcon()).'"></span>'.
69
+			'<label for="remote_address">'.Util::sanitizeHTML($this->getLabel()).'</label>'.
70
+			'<form class="save-form hidden" action="#">'.
71
+			'<input type="text" id="remote_address" placeholder="[email protected]">'.
72
+			'<input type="submit" value=" " id="save-button-confirm" class="icon-confirm" disabled="disabled"></button>'.
73
+			'</form>'.
74
+			'</a>'.
75 75
 			'</li>';
76 76
 	}
77 77
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/BackgroundJob/FederatedSharesDiscoverJob.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 			->from('share_external');
28 28
 
29 29
 		$result = $qb->execute();
30
-		while($row = $result->fetch()) {
30
+		while ($row = $result->fetch()) {
31 31
 			$this->discoveryService->discover($row['remote'], 'FEDERATED_SHARING', true);
32 32
 		}
33 33
 		$result->closeCursor();
Please login to merge, or discard this patch.
lib/private/App/AppStore/Fetcher/AppFetcher.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,13 +79,13 @@  discard block
 block discarded – undo
79 79
 		/** @var mixed[] $response */
80 80
 		$response = parent::fetch($ETag, $content);
81 81
 
82
-		foreach($response['data'] as $dataKey => $app) {
82
+		foreach ($response['data'] as $dataKey => $app) {
83 83
 			$releases = [];
84 84
 
85 85
 			// Filter all compatible releases
86
-			foreach($app['releases'] as $release) {
86
+			foreach ($app['releases'] as $release) {
87 87
 				// Exclude all nightly and pre-releases
88
-				if($release['isNightly'] === false
88
+				if ($release['isNightly'] === false
89 89
 					&& strpos($release['version'], '-') === false) {
90 90
 					// Exclude all versions not compatible with the current version
91 91
 					try {
@@ -108,23 +108,23 @@  discard block
 block discarded – undo
108 108
 
109 109
 			// Get the highest version
110 110
 			$versions = [];
111
-			foreach($releases as $release) {
111
+			foreach ($releases as $release) {
112 112
 				$versions[] = $release['version'];
113 113
 			}
114 114
 			usort($versions, 'version_compare');
115 115
 			$versions = array_reverse($versions);
116 116
 			$compatible = false;
117
-			if(isset($versions[0])) {
117
+			if (isset($versions[0])) {
118 118
 				$highestVersion = $versions[0];
119 119
 				foreach ($releases as $release) {
120
-					if ((string)$release['version'] === (string)$highestVersion) {
120
+					if ((string) $release['version'] === (string) $highestVersion) {
121 121
 						$compatible = true;
122 122
 						$response['data'][$dataKey]['releases'] = [$release];
123 123
 						break;
124 124
 					}
125 125
 				}
126 126
 			}
127
-			if(!$compatible) {
127
+			if (!$compatible) {
128 128
 				unset($response['data'][$dataKey]);
129 129
 			}
130 130
 		}
Please login to merge, or discard this patch.
core/Command/Log/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 		$defaultLogFile = rtrim($dataDir, '/').'/nextcloud.log';
106 106
 		$output->writeln('Log file: '.$this->config->getSystemValue('logfile', $defaultLogFile));
107 107
 
108
-		$rotateSize = $this->config->getSystemValue('log_rotate_size', 100*1024*1024);
108
+		$rotateSize = $this->config->getSystemValue('log_rotate_size', 100 * 1024 * 1024);
109 109
 		if ($rotateSize) {
110 110
 			$rotateString = \OCP\Util::humanFileSize($rotateSize);
111 111
 		} else {
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
@@ -59,10 +59,10 @@
 block discarded – undo
59 59
 			if (is_array($value)) {
60 60
 				$output->writeln("    <comment>>></comment> $key:");
61 61
 				foreach ($value as $subKey => $subValue) {
62
-					$output->writeln("        <comment>>></comment> $subKey: " . str_repeat(' ', 46 - strlen($subKey)) . $subValue);
62
+					$output->writeln("        <comment>>></comment> $subKey: ".str_repeat(' ', 46 - strlen($subKey)).$subValue);
63 63
 				}
64 64
 			} else {
65
-				$output->writeln("    <comment>>></comment> $key: " . str_repeat(' ', 50 - strlen($key)) . $value);
65
+				$output->writeln("    <comment>>></comment> $key: ".str_repeat(' ', 50 - strlen($key)).$value);
66 66
 			}
67 67
 		}
68 68
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Connector/Sabre/QuotaPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 			return;
93 93
 		}
94 94
 
95
-		return $this->checkQuota($parent->getPath() . '/' . basename($uri));
95
+		return $this->checkQuota($parent->getPath().'/'.basename($uri));
96 96
 	}
97 97
 
98 98
 	/**
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
 		if ($length) {
154 154
 			list($parentPath, $newName) = \Sabre\Uri\split($path);
155
-			if(is_null($parentPath)) {
155
+			if (is_null($parentPath)) {
156 156
 				$parentPath = '';
157 157
 			}
158 158
 			$req = $this->server->httpRequest;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 				// there is still enough space for the remaining chunks
164 164
 				$length -= $chunkHandler->getCurrentSize();
165 165
 				// use target file name for free space check in case of shared files
166
-				$path = rtrim($parentPath, '/') . '/' . $info['name'];
166
+				$path = rtrim($parentPath, '/').'/'.$info['name'];
167 167
 			}
168 168
 			$freeSpace = $this->getFreeSpace($path);
169 169
 			if ($freeSpace >= 0 && $length > $freeSpace) {
Please login to merge, or discard this patch.
settings/Controller/CommonSettingsTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 use OCP\Settings\IIconSection;
31 31
 use OCP\Settings\ISettings;
32 32
 
33
-trait CommonSettingsTrait  {
33
+trait CommonSettingsTrait {
34 34
 	/** @var ISettingsManager */
35 35
 	private $settingsManager;
36 36
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 			'admin' => []
48 48
 		];
49 49
 
50
-		if(\OC_User::isAdminUser(\OC_User::getUser())) {
50
+		if (\OC_User::isAdminUser(\OC_User::getUser())) {
51 51
 			$templateParameters['admin'] = $this->formatAdminSections($currentType, $currentSection);
52 52
 		}
53 53
 
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
 	protected function formatSections($sections, $currentSection, $type, $currentType) {
60 60
 		$templateParameters = [];
61 61
 		/** @var \OCP\Settings\ISection[] $prioritizedSections */
62
-		foreach($sections as $prioritizedSections) {
62
+		foreach ($sections as $prioritizedSections) {
63 63
 			foreach ($prioritizedSections as $section) {
64
-				if($type === 'admin') {
64
+				if ($type === 'admin') {
65 65
 					$settings = $this->settingsManager->getAdminSettings($section->getID());
66
-				} else if($type === 'personal') {
66
+				} else if ($type === 'personal') {
67 67
 					$settings = $this->settingsManager->getPersonalSettings($section->getID());
68 68
 				}
69 69
 				if (empty($settings) && !($section->getID() === 'additional' && count(\OC_App::getForms('admin')) > 0)) {
Please login to merge, or discard this patch.
lib/private/Settings/Admin/Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 			'lastcron'            => $this->config->getAppValue('core', 'lastcron', false),
81 81
 			'cronErrors'		  => $this->config->getAppValue('core', 'cronErrors'),
82 82
 			'cli_based_cron_possible' => function_exists('posix_getpwuid'),
83
-			'cli_based_cron_user' => function_exists('posix_getpwuid') ? posix_getpwuid(fileowner(\OC::$configDir . 'config.php'))['name'] : '',
83
+			'cli_based_cron_user' => function_exists('posix_getpwuid') ? posix_getpwuid(fileowner(\OC::$configDir.'config.php'))['name'] : '',
84 84
 		];
85 85
 
86 86
 		return new TemplateResponse('settings', 'settings/admin/server', $parameters, '');
Please login to merge, or discard this patch.