@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | public function getProperties(): array { |
| 69 | - return array_filter($this->properties, function ($obj) { |
|
| 69 | + return array_filter($this->properties, function($obj) { |
|
| 70 | 70 | return $obj instanceof IAccountProperty; |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $index = $obj->getName(); |
| 97 | 97 | if ($this->isCollection($index)) { |
| 98 | 98 | $incrementals[$index] = ($incrementals[$index] ?? -1) + 1; |
| 99 | - $index .= '#' . $incrementals[$index]; |
|
| 99 | + $index .= '#'.$incrementals[$index]; |
|
| 100 | 100 | } |
| 101 | 101 | $result[$index] = $obj; |
| 102 | 102 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | $user = $input->getArgument('uid'); |
| 97 | 97 | if (!$this->userManager->userExists($user)) { |
| 98 | 98 | throw new \InvalidArgumentException( |
| 99 | - 'User <' . $user . '> is unknown.'); |
|
| 99 | + 'User <'.$user.'> is unknown.'); |
|
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | $birthday = $input->getOption('birthday'); |
@@ -112,11 +112,11 @@ discard block |
||
| 112 | 112 | } |
| 113 | 113 | |
| 114 | 114 | $calendarInfo = $this->calDav->getCalendarByUri( |
| 115 | - 'principals/users/' . $user, |
|
| 115 | + 'principals/users/'.$user, |
|
| 116 | 116 | $name); |
| 117 | 117 | if ($calendarInfo === null) { |
| 118 | 118 | throw new \InvalidArgumentException( |
| 119 | - 'User <' . $user . '> has no calendar named <' . $name . '>. You can run occ dav:list-calendars to list calendars URIs for this user.'); |
|
| 119 | + 'User <'.$user.'> has no calendar named <'.$name.'>. You can run occ dav:list-calendars to list calendars URIs for this user.'); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | $calendar = new Calendar( |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | PropFind $propFind, |
| 103 | 103 | INode $node): void { |
| 104 | 104 | if ($node instanceof DeletedCalendarObject) { |
| 105 | - $propFind->handle(self::PROPERTY_DELETED_AT, function () use ($node) { |
|
| 105 | + $propFind->handle(self::PROPERTY_DELETED_AT, function() use ($node) { |
|
| 106 | 106 | $ts = $node->getDeletedAt(); |
| 107 | 107 | if ($ts === null) { |
| 108 | 108 | return null; |
@@ -112,12 +112,12 @@ discard block |
||
| 112 | 112 | ->setTimestamp($ts) |
| 113 | 113 | ->format(DateTimeInterface::ATOM); |
| 114 | 114 | }); |
| 115 | - $propFind->handle(self::PROPERTY_CALENDAR_URI, function () use ($node) { |
|
| 115 | + $propFind->handle(self::PROPERTY_CALENDAR_URI, function() use ($node) { |
|
| 116 | 116 | return $node->getCalendarUri(); |
| 117 | 117 | }); |
| 118 | 118 | } |
| 119 | 119 | if ($node instanceof TrashbinHome) { |
| 120 | - $propFind->handle(self::PROPERTY_RETENTION_DURATION, function () use ($node) { |
|
| 120 | + $propFind->handle(self::PROPERTY_RETENTION_DURATION, function() use ($node) { |
|
| 121 | 121 | return $this->retentionService->getDuration(); |
| 122 | 122 | }); |
| 123 | 123 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | return; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if (isset($property) && $property->getValue() !== (string)$newValue) { |
|
| 67 | + if (isset($property) && $property->getValue() !== (string) $newValue) { |
|
| 68 | 68 | $property->setValue($newValue); |
| 69 | 69 | $this->accountManager->updateAccount($account); |
| 70 | 70 | } |
@@ -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 | } |