Completed
Push — master ( d1fb93...c32a94 )
by Joas
35:21 queued 15:30
created
lib/private/Collaboration/Collaborators/GroupPlugin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,17 +57,17 @@
 block discarded – undo
57 57
 		$result = ['wide' => [], 'exact' => []];
58 58
 
59 59
 		$groups = $this->groupManager->search($search, $limit, $offset);
60
-		$groupIds = array_map(function (IGroup $group) { return $group->getGID(); }, $groups);
60
+		$groupIds = array_map(function(IGroup $group) { return $group->getGID(); }, $groups);
61 61
 
62 62
 		if (!$this->shareeEnumeration || count($groups) < $limit) {
63 63
 			$hasMoreResults = true;
64 64
 		}
65 65
 
66
-		$userGroups =  [];
66
+		$userGroups = [];
67 67
 		if (!empty($groups) && $this->shareWithGroupOnly) {
68 68
 			// Intersect all the groups that match with the groups this user is a member of
69 69
 			$userGroups = $this->groupManager->getUserGroups($this->userSession->getUser());
70
-			$userGroups = array_map(function (IGroup $group) { return $group->getGID(); }, $userGroups);
70
+			$userGroups = array_map(function(IGroup $group) { return $group->getGID(); }, $userGroups);
71 71
 			$groupIds = array_intersect($groupIds, $userGroups);
72 72
 		}
73 73
 
Please login to merge, or discard this patch.
core/Command/Config/System/DeleteConfig.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
 		if (count($configNames) > 1) {
68 68
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
69
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
69
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
70 70
 				return 1;
71 71
 			}
72 72
 
@@ -76,21 +76,21 @@  discard block
 block discarded – undo
76 76
 				$value = $this->removeSubValue(array_slice($configNames, 1), $value, $input->hasParameterOption('--error-if-not-exists'));
77 77
 			}
78 78
 			catch (\UnexpectedValueException $e) {
79
-				$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
79
+				$output->writeln('<error>System config '.implode(' => ', $configNames).' could not be deleted because it did not exist</error>');
80 80
 				return 1;
81 81
 			}
82 82
 
83 83
 			$this->systemConfig->setValue($configName, $value);
84
-			$output->writeln('<info>System config value ' . implode(' => ', $configNames) . ' deleted</info>');
84
+			$output->writeln('<info>System config value '.implode(' => ', $configNames).' deleted</info>');
85 85
 			return 0;
86 86
 		} else {
87 87
 			if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
88
-				$output->writeln('<error>System config ' . $configName . ' could not be deleted because it did not exist</error>');
88
+				$output->writeln('<error>System config '.$configName.' could not be deleted because it did not exist</error>');
89 89
 				return 1;
90 90
 			}
91 91
 
92 92
 			$this->systemConfig->deleteValue($configName);
93
-			$output->writeln('<info>System config value ' . $configName . ' deleted</info>');
93
+			$output->writeln('<info>System config value '.$configName.' deleted</info>');
94 94
 			return 0;
95 95
 		}
96 96
 	}
Please login to merge, or discard this patch.
core/Command/L10n/CreateJs.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@  discard block
 block discarded – undo
63 63
 		}
64 64
 		$languages = $lang;
65 65
 		if (empty($lang)) {
66
-			$languages= $this->getAllLanguages($path);
66
+			$languages = $this->getAllLanguages($path);
67 67
 		}
68 68
 
69
-		foreach($languages as $lang) {
69
+		foreach ($languages as $lang) {
70 70
 			$this->writeFiles($app, $path, $lang, $output);
71 71
 		}
72 72
 	}
@@ -74,16 +74,16 @@  discard block
 block discarded – undo
74 74
 	private function getAllLanguages($path) {
75 75
 		$result = array();
76 76
 		foreach (new DirectoryIterator("$path/l10n") as $fileInfo) {
77
-			if($fileInfo->isDot()) {
77
+			if ($fileInfo->isDot()) {
78 78
 				continue;
79 79
 			}
80
-			if($fileInfo->isDir()) {
80
+			if ($fileInfo->isDir()) {
81 81
 				continue;
82 82
 			}
83
-			if($fileInfo->getExtension() !== 'php') {
83
+			if ($fileInfo->getExtension() !== 'php') {
84 84
 				continue;
85 85
 			}
86
-			$result[]= substr($fileInfo->getBasename(), 0, -4);
86
+			$result[] = substr($fileInfo->getBasename(), 0, -4);
87 87
 		}
88 88
 
89 89
 		return $result;
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 		$jsTrans = array();
106 106
 		foreach ($translations as $id => $val) {
107 107
 			if (is_array($val)) {
108
-				$val = '[ ' . implode(',', $val) . ']';
108
+				$val = '[ '.implode(',', $val).']';
109 109
 			}
110 110
 			$jsTrans[] = "\"$id\" : \"$val\"";
111 111
 		}
Please login to merge, or discard this patch.