Passed
Push — master ( 26e3d5...de64c9 )
by Joas
14:06 queued 13s
created
core/Command/App/Disable.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,14 +72,14 @@
 block discarded – undo
72 72
 
73 73
 	private function disableApp(string $appId, OutputInterface $output): void {
74 74
 		if ($this->appManager->isInstalled($appId) === false) {
75
-			$output->writeln('No such app enabled: ' . $appId);
75
+			$output->writeln('No such app enabled: '.$appId);
76 76
 			return;
77 77
 		}
78 78
 
79 79
 		try {
80 80
 			$this->appManager->disableApp($appId);
81 81
 			$appVersion = \OC_App::getAppVersion($appId);
82
-			$output->writeln($appId . ' ' . $appVersion . ' disabled');
82
+			$output->writeln($appId.' '.$appVersion.' disabled');
83 83
 		} catch (\Exception $e) {
84 84
 			$output->writeln($e->getMessage());
85 85
 			$this->exitCode = 2;
Please login to merge, or discard this patch.
core/Command/App/Enable.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,12 +102,12 @@  discard block
 block discarded – undo
102 102
 	 * @param OutputInterface $output
103 103
 	 */
104 104
 	private function enableApp(string $appId, array $groupIds, bool $forceEnable, OutputInterface $output): void {
105
-		$groupNames = array_map(function (IGroup $group) {
105
+		$groupNames = array_map(function(IGroup $group) {
106 106
 			return $group->getDisplayName();
107 107
 		}, $groupIds);
108 108
 
109 109
 		if ($this->appManager->isInstalled($appId) && $groupIds === []) {
110
-			$output->writeln($appId . ' already enabled');
110
+			$output->writeln($appId.' already enabled');
111 111
 			return;
112 112
 		}
113 113
 
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
 
125 125
 			if ($groupIds === []) {
126 126
 				$this->appManager->enableApp($appId, $forceEnable);
127
-				$output->writeln($appId . ' ' . $appVersion . ' enabled');
127
+				$output->writeln($appId.' '.$appVersion.' enabled');
128 128
 			} else {
129 129
 				$this->appManager->enableAppForGroups($appId, $groupIds, $forceEnable);
130
-				$output->writeln($appId . ' ' . $appVersion . ' enabled for groups: ' . implode(', ', $groupNames));
130
+				$output->writeln($appId.' '.$appVersion.' enabled for groups: '.implode(', ', $groupNames));
131 131
 			}
132 132
 		} catch (AppPathNotFoundException $e) {
133
-			$output->writeln($appId . ' not found');
133
+			$output->writeln($appId.' not found');
134 134
 			$this->exitCode = 1;
135 135
 		} catch (\Exception $e) {
136 136
 			$output->writeln($e->getMessage());
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	 */
161 161
 	public function completeOptionValues($optionName, CompletionContext $context) {
162 162
 		if ($optionName === 'groups') {
163
-			return array_map(function (IGroup $group) {
163
+			return array_map(function(IGroup $group) {
164 164
 				return $group->getGID();
165 165
 			}, $this->groupManager->search($context->getCurrentWord()));
166 166
 		}
Please login to merge, or discard this patch.
lib/private/Search.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 		$this->initProviders();
53 53
 		$results = [];
54 54
 		foreach ($this->providers as $provider) {
55
-			if (! $provider->providesResultsFor($inApps)) {
55
+			if (!$provider->providesResultsFor($inApps)) {
56 56
 				continue;
57 57
 			}
58 58
 			if ($provider instanceof PagedProvider) {
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	public function removeProvider($provider) {
88 88
 		$this->registeredProviders = array_filter(
89 89
 			$this->registeredProviders,
90
-			function ($element) use ($provider) {
90
+			function($element) use ($provider) {
91 91
 				return ($element['class'] != $provider);
92 92
 			}
93 93
 		);
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 	 * Create instances of all the registered search providers
109 109
 	 */
110 110
 	private function initProviders() {
111
-		if (! empty($this->providers)) {
111
+		if (!empty($this->providers)) {
112 112
 			return;
113 113
 		}
114 114
 		foreach ($this->registeredProviders as $provider) {
Please login to merge, or discard this patch.
apps/files_sharing/lib/ShareBackend/File.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 */
98 98
 	public function generateTarget($itemSource, $shareWith, $exclude = null) {
99 99
 		$shareFolder = \OCA\Files_Sharing\Helper::getShareFolder();
100
-		$target = \OC\Files\Filesystem::normalizePath($shareFolder . '/' . basename($itemSource));
100
+		$target = \OC\Files\Filesystem::normalizePath($shareFolder.'/'.basename($itemSource));
101 101
 
102 102
 		// for group shares we return the target right away
103 103
 		if ($shareWith === false) {
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
 		}
106 106
 
107 107
 		\OC\Files\Filesystem::initMountPoints($shareWith);
108
-		$view = new \OC\Files\View('/' . $shareWith . '/files');
108
+		$view = new \OC\Files\View('/'.$shareWith.'/files');
109 109
 
110 110
 		if (!$view->is_dir($shareFolder)) {
111 111
 			$dir = '';
112 112
 			$subdirs = explode('/', $shareFolder);
113 113
 			foreach ($subdirs as $subdir) {
114
-				$dir = $dir . '/' . $subdir;
114
+				$dir = $dir.'/'.$subdir;
115 115
 				if (!$view->is_dir($dir)) {
116 116
 					$view->mkdir($dir);
117 117
 				}
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 		if ($share['item_type'] === 'folder' && $target !== '') {
250 250
 			// note: in case of ext storage mount points the path might be empty
251 251
 			// which would cause a leading slash to appear
252
-			$share['path'] = ltrim($share['path'] . '/' . $target, '/');
252
+			$share['path'] = ltrim($share['path'].'/'.$target, '/');
253 253
 		}
254 254
 		return self::resolveReshares($share);
255 255
 	}
Please login to merge, or discard this patch.
apps/encryption/lib/Command/ScanLegacyFormat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,9 +86,9 @@  discard block
 block discarded – undo
86 86
 			do {
87 87
 				$users = $backend->getUsers('', $limit, $offset);
88 88
 				foreach ($users as $user) {
89
-					$output->writeln('Scanning all files for ' . $user);
89
+					$output->writeln('Scanning all files for '.$user);
90 90
 					$this->setupUserFS($user);
91
-					$result &= $this->scanFolder($output, '/' . $user);
91
+					$result &= $this->scanFolder($output, '/'.$user);
92 92
 				}
93 93
 				$offset += $limit;
94 94
 			} while (count($users) >= $limit);
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 		$clean = true;
107 107
 
108 108
 		foreach ($this->rootView->getDirectoryContent($folder) as $item) {
109
-			$path = $folder . '/' . $item['name'];
109
+			$path = $folder.'/'.$item['name'];
110 110
 			if ($this->rootView->is_dir($path)) {
111 111
 				if ($this->scanFolder($output, $path) === false) {
112 112
 					$clean = false;
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 				$stats = $this->rootView->stat($path);
121 121
 				if (!isset($stats['hasHeader']) || $stats['hasHeader'] === false) {
122 122
 					$clean = false;
123
-					$output->writeln($path . ' does not have a proper header');
123
+					$output->writeln($path.' does not have a proper header');
124 124
 				}
125 125
 			}
126 126
 		}
Please login to merge, or discard this patch.
apps/weather_status/lib/AppInfo/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		parent::__construct(self::APP_ID, $urlParams);
55 55
 
56 56
 		$dispatcher = $this->getContainer()->query(IEventDispatcher::class);
57
-		$dispatcher->addListener(RegisterWidgetEvent::class, function (Event $e) {
57
+		$dispatcher->addListener(RegisterWidgetEvent::class, function(Event $e) {
58 58
 			Util::addScript(self::APP_ID, 'weather-status');
59 59
 		});
60 60
 	}
Please login to merge, or discard this patch.
apps/dav/lib/Migration/BuildCalendarSearchIndexBackgroundJob.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 		$offset = (int) $arguments['offset'];
73 73
 		$stopAt = (int) $arguments['stopAt'];
74 74
 
75
-		$this->logger->info('Building calendar index (' . $offset .'/' . $stopAt . ')');
75
+		$this->logger->info('Building calendar index ('.$offset.'/'.$stopAt.')');
76 76
 
77 77
 		$startTime = $this->timeFactory->getTime();
78 78
 		while (($this->timeFactory->getTime() - $startTime) < 15) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 				'offset' => $offset,
90 90
 				'stopAt' => $stopAt
91 91
 			]);
92
-			$this->logger->info('New building calendar index job scheduled with offset ' . $offset);
92
+			$this->logger->info('New building calendar index job scheduled with offset '.$offset);
93 93
 		}
94 94
 	}
95 95
 
Please login to merge, or discard this patch.
apps/files/lib/Controller/DirectEditingController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 			]);
89 89
 		} catch (Exception $e) {
90 90
 			$this->logger->logException($e, ['message' => 'Exception when creating a new file through direct editing']);
91
-			return new DataResponse(['message' => 'Failed to create file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN);
91
+			return new DataResponse(['message' => 'Failed to create file: '.$e->getMessage()], Http::STATUS_FORBIDDEN);
92 92
 		}
93 93
 	}
94 94
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 			]);
109 109
 		} catch (Exception $e) {
110 110
 			$this->logger->logException($e, ['message' => 'Exception when opening a file through direct editing']);
111
-			return new DataResponse(['message' => 'Failed to open file: ' . $e->getMessage()], Http::STATUS_FORBIDDEN);
111
+			return new DataResponse(['message' => 'Failed to open file: '.$e->getMessage()], Http::STATUS_FORBIDDEN);
112 112
 		}
113 113
 	}
114 114
 
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			return new DataResponse($this->directEditingManager->getTemplates($editorId, $creatorId));
128 128
 		} catch (Exception $e) {
129 129
 			$this->logger->logException($e);
130
-			return new DataResponse(['message' => 'Failed to obtain template list: ' . $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);
130
+			return new DataResponse(['message' => 'Failed to obtain template list: '.$e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);
131 131
 		}
132 132
 	}
133 133
 }
Please login to merge, or discard this patch.
apps/dav/lib/CardDAV/ImageExportPlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 			return true;
73 73
 		}
74 74
 
75
-		$size = isset($queryParams['size']) ? (int)$queryParams['size'] : -1;
75
+		$size = isset($queryParams['size']) ? (int) $queryParams['size'] : -1;
76 76
 
77 77
 		$path = $request->getPath();
78 78
 		$node = $this->server->tree->getNodeForPath($path);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 		try {
104 104
 			$file = $this->cache->get($addressbook->getResourceId(), $node->getName(), $size, $node);
105 105
 			$response->setHeader('Content-Type', $file->getMimeType());
106
-			$fileName = $node->getName() . '.' . PhotoCache::ALLOWED_CONTENT_TYPES[$file->getMimeType()];
106
+			$fileName = $node->getName().'.'.PhotoCache::ALLOWED_CONTENT_TYPES[$file->getMimeType()];
107 107
 			$response->setHeader('Content-Disposition', "attachment; filename=$fileName");
108 108
 			$response->setStatus(200);
109 109
 
Please login to merge, or discard this patch.