@@ -68,7 +68,7 @@ |
||
68 | 68 | $result = $this->checker->verifyCoreSignature(); |
69 | 69 | $this->writeArrayInOutputFormat($input, $output, $result); |
70 | 70 | if (count($result) > 0) { |
71 | - $output->writeln('<error>' . count($result) . ' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
71 | + $output->writeln('<error>'.count($result).' errors found</error>', OutputInterface::VERBOSITY_VERBOSE); |
|
72 | 72 | return 1; |
73 | 73 | } |
74 | 74 | $output->writeln('<info>No errors found</info>', OutputInterface::VERBOSITY_VERBOSE); |
@@ -168,11 +168,11 @@ discard block |
||
168 | 168 | public function castColumn($column, $type): IQueryFunction { |
169 | 169 | if ($type === IQueryBuilder::PARAM_STR) { |
170 | 170 | $column = $this->helper->quoteColumnName($column); |
171 | - return new QueryFunction('to_char(' . $column . ')'); |
|
171 | + return new QueryFunction('to_char('.$column.')'); |
|
172 | 172 | } |
173 | 173 | if ($type === IQueryBuilder::PARAM_INT) { |
174 | 174 | $column = $this->helper->quoteColumnName($column); |
175 | - return new QueryFunction('to_number(to_char(' . $column . '))'); |
|
175 | + return new QueryFunction('to_number(to_char('.$column.'))'); |
|
176 | 176 | } |
177 | 177 | |
178 | 178 | return parent::castColumn($column, $type); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @inheritdoc |
183 | 183 | */ |
184 | 184 | public function like($x, $y, $type = null): string { |
185 | - return parent::like($x, $y, $type) . " ESCAPE '\\'"; |
|
185 | + return parent::like($x, $y, $type)." ESCAPE '\\'"; |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | /** |
@@ -41,10 +41,10 @@ |
||
41 | 41 | $castedExpression = $this->queryBuilder->expr()->castColumn($expr, IQueryBuilder::PARAM_STR); |
42 | 42 | |
43 | 43 | if (is_null($separator)) { |
44 | - return new QueryFunction('string_agg(' . $castedExpression . ')'); |
|
44 | + return new QueryFunction('string_agg('.$castedExpression.')'); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | $separator = $this->connection->quote($separator); |
48 | - return new QueryFunction('string_agg(' . $castedExpression . ', ' . $separator . ')'); |
|
48 | + return new QueryFunction('string_agg('.$castedExpression.', '.$separator.')'); |
|
49 | 49 | } |
50 | 50 | } |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | foreach ($releases as $release) { |
152 | 152 | $versions[] = $release['version']; |
153 | 153 | } |
154 | - usort($versions, function ($version1, $version2) { |
|
154 | + usort($versions, function($version1, $version2) { |
|
155 | 155 | return version_compare($version1, $version2); |
156 | 156 | }); |
157 | 157 | $versions = array_reverse($versions); |
158 | 158 | if (isset($versions[0])) { |
159 | 159 | $highestVersion = $versions[0]; |
160 | 160 | foreach ($releases as $release) { |
161 | - if ((string)$release['version'] === (string)$highestVersion) { |
|
161 | + if ((string) $release['version'] === (string) $highestVersion) { |
|
162 | 162 | $response['data'][$dataKey]['releases'] = [$release]; |
163 | 163 | break; |
164 | 164 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | |
189 | 189 | // If the admin specified a allow list, filter apps from the appstore |
190 | 190 | if (is_array($allowList) && $this->registry->delegateHasValidSubscription()) { |
191 | - return array_filter($apps, function ($app) use ($allowList) { |
|
191 | + return array_filter($apps, function($app) use ($allowList) { |
|
192 | 192 | return in_array($app['id'], $allowList); |
193 | 193 | }); |
194 | 194 | } |
@@ -89,6 +89,6 @@ |
||
89 | 89 | if (empty($this->value)) { |
90 | 90 | return null; |
91 | 91 | } |
92 | - return 'tel:' . $this->value; |
|
92 | + return 'tel:'.$this->value; |
|
93 | 93 | } |
94 | 94 | } |
@@ -89,6 +89,6 @@ |
||
89 | 89 | if (empty($this->value)) { |
90 | 90 | return null; |
91 | 91 | } |
92 | - return 'mailto:' . $this->value; |
|
92 | + return 'mailto:'.$this->value; |
|
93 | 93 | } |
94 | 94 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | } |
76 | 76 | |
77 | 77 | public function getTitle(): string { |
78 | - $displayUsername = $this->value[0] === '@' ? $this->value : '@' . $this->value; |
|
78 | + $displayUsername = $this->value[0] === '@' ? $this->value : '@'.$this->value; |
|
79 | 79 | return $this->l10nFactory->get('lib')->t('View %s on Twitter', [$displayUsername]); |
80 | 80 | } |
81 | 81 | |
@@ -92,6 +92,6 @@ discard block |
||
92 | 92 | return null; |
93 | 93 | } |
94 | 94 | $username = $this->value[0] === '@' ? substr($this->value, 1) : $this->value; |
95 | - return 'https://twitter.com/' . $username; |
|
95 | + return 'https://twitter.com/'.$username; |
|
96 | 96 | } |
97 | 97 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | try { |
97 | 97 | $provider = $this->container->get($this->providerClass); |
98 | 98 | } catch (ContainerExceptionInterface $e) { |
99 | - $this->logger->error('Could not load user-status "' . $this->providerClass . '" provider dynamically: ' . $e->getMessage(), [ |
|
99 | + $this->logger->error('Could not load user-status "'.$this->providerClass.'" provider dynamically: '.$e->getMessage(), [ |
|
100 | 100 | 'exception' => $e, |
101 | 101 | ]); |
102 | 102 | return; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | throw new \RuntimeException('no instance id!'); |
77 | 77 | } |
78 | 78 | |
79 | - return 'appdata_' . $instanceId; |
|
79 | + return 'appdata_'.$instanceId; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | protected function getAppDataRootFolder(): Folder { |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | $name = $this->getAppDataFolderName(); |
105 | 105 | |
106 | 106 | try { |
107 | - $this->folder = $this->rootFolder->get($name . '/' . $this->appId); |
|
107 | + $this->folder = $this->rootFolder->get($name.'/'.$this->appId); |
|
108 | 108 | } catch (NotFoundException $e) { |
109 | 109 | $appDataRootFolder = $this->getAppDataRootFolder(); |
110 | 110 | |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | try { |
115 | 115 | $this->folder = $appDataRootFolder->newFolder($this->appId); |
116 | 116 | } catch (NotPermittedException $e) { |
117 | - throw new \RuntimeException('Could not get appdata folder for ' . $this->appId); |
|
117 | + throw new \RuntimeException('Could not get appdata folder for '.$this->appId); |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | public function getFolder(string $name): ISimpleFolder { |
127 | - $key = $this->appId . '/' . $name; |
|
127 | + $key = $this->appId.'/'.$name; |
|
128 | 128 | if ($cachedFolder = $this->folders->get($key)) { |
129 | 129 | if ($cachedFolder instanceof \Exception) { |
130 | 130 | throw $cachedFolder; |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | if ($name === '/') { |
138 | 138 | $node = $this->getAppDataFolder(); |
139 | 139 | } else { |
140 | - $path = $this->getAppDataFolderName() . '/' . $this->appId . '/' . $name; |
|
140 | + $path = $this->getAppDataFolderName().'/'.$this->appId.'/'.$name; |
|
141 | 141 | $node = $this->rootFolder->get($path); |
142 | 142 | } |
143 | 143 | } catch (NotFoundException $e) { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | public function newFolder(string $name): ISimpleFolder { |
155 | - $key = $this->appId . '/' . $name; |
|
155 | + $key = $this->appId.'/'.$name; |
|
156 | 156 | $folder = $this->getAppDataFolder()->newFolder($name); |
157 | 157 | |
158 | 158 | $simpleFolder = new SimpleFolder($folder); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public function getDirectoryListing(): array { |
164 | 164 | $listing = $this->getAppDataFolder()->getDirectoryListing(); |
165 | 165 | |
166 | - $fileListing = array_map(function (Node $folder) { |
|
166 | + $fileListing = array_map(function(Node $folder) { |
|
167 | 167 | if ($folder instanceof Folder) { |
168 | 168 | return new SimpleFolder($folder); |
169 | 169 | } |