@@ -52,7 +52,7 @@ |
||
52 | 52 | |
53 | 53 | $result = $qb->select('class') |
54 | 54 | ->from($this->getTableName(), 'auth') |
55 | - ->where($qb->expr()->in('group_id', array_map(function (IGroup $group) use ($qb) { |
|
55 | + ->where($qb->expr()->in('group_id', array_map(function(IGroup $group) use ($qb) { |
|
56 | 56 | return $qb->createNamedParameter($group->getGID()); |
57 | 57 | }, $groups), IQueryBuilder::PARAM_STR)) |
58 | 58 | ->executeQuery(); |
@@ -44,6 +44,6 @@ |
||
44 | 44 | * {@inheritDoc} |
45 | 45 | */ |
46 | 46 | public function newEMailAction(string $icon, string $name, string $email, string $appId = ''): ILinkAction { |
47 | - return $this->newLinkAction($icon, $name, 'mailto:' . $email, $appId); |
|
47 | + return $this->newLinkAction($icon, $name, 'mailto:'.$email, $appId); |
|
48 | 48 | } |
49 | 49 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * Lets try the multibucket fallback if available |
62 | 62 | */ |
63 | 63 | if ($this->isMultibucketPreviewDistributionEnabled) { |
64 | - return parent::getFolder('old-multibucket/' . $internalFolder); |
|
64 | + return parent::getFolder('old-multibucket/'.$internalFolder); |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | // when there is no further fallback just throw the exception |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | public static function getInternalFolder(string $name): string { |
86 | - return implode('/', str_split(substr(md5($name), 0, 7))) . '/' . $name; |
|
86 | + return implode('/', str_split(substr(md5($name), 0, 7))).'/'.$name; |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | public function getStorageId(): int { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $data = [ |
77 | 77 | 'user_id' => $user->getUID(), |
78 | 78 | 'display_name' => $user->getDisplayName(), |
79 | - 'email' => (string)$user->getSystemEMailAddress(), |
|
79 | + 'email' => (string) $user->getSystemEMailAddress(), |
|
80 | 80 | 'cloud_id' => $user->getCloudId(), |
81 | 81 | 'enabled' => $user->isEnabled(), |
82 | 82 | 'groups' => $groups, |
@@ -60,7 +60,7 @@ |
||
60 | 60 | 'notnull' => true, |
61 | 61 | ]); |
62 | 62 | $table->setPrimaryKey(['id']); |
63 | - $table->addUniqueIndex(['user_id'], self::TABLE_NAME . '_user_id_idx'); |
|
63 | + $table->addUniqueIndex(['user_id'], self::TABLE_NAME.'_user_id_idx'); |
|
64 | 64 | return $schema; |
65 | 65 | } |
66 | 66 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $table = $schema->getTable(self::TABLE_NAME); |
48 | 48 | if ($table->hasIndex('user_id')) { |
49 | - $table->renameIndex('user_id', self::TABLE_NAME . '_user_id_idx'); |
|
49 | + $table->renameIndex('user_id', self::TABLE_NAME.'_user_id_idx'); |
|
50 | 50 | return $schema; |
51 | 51 | } |
52 | 52 | return null; |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | $this->loadContext('assembly'); |
74 | 74 | |
75 | 75 | $nodes = $this->nodes; |
76 | - usort($nodes, function (IFile $a, IFile $b) { |
|
76 | + usort($nodes, function(IFile $a, IFile $b) { |
|
77 | 77 | return strnatcmp($a->getName(), $b->getName()); |
78 | 78 | }); |
79 | 79 | $this->nodes = array_values($nodes); |
80 | - $this->size = array_reduce($this->nodes, function ($size, IFile $file) { |
|
80 | + $this->size = array_reduce($this->nodes, function($size, IFile $file) { |
|
81 | 81 | return $size + $file->getSize(); |
82 | 82 | }, 0); |
83 | 83 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | fclose($this->currentStream); |
157 | 157 | $currentNodeSize = $this->nodes[$this->currentNode]->getSize(); |
158 | 158 | if ($this->currentNodeRead < $currentNodeSize) { |
159 | - throw new \Exception('Stream from assembly node shorter than expected, got ' . $this->currentNodeRead . ' bytes, expected ' . $currentNodeSize); |
|
159 | + throw new \Exception('Stream from assembly node shorter than expected, got '.$this->currentNodeRead.' bytes, expected '.$currentNodeSize); |
|
160 | 160 | } |
161 | 161 | $this->currentNode++; |
162 | 162 | $this->currentNodeRead = 0; |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | if (isset($context[$name])) { |
254 | 254 | $context = $context[$name]; |
255 | 255 | } else { |
256 | - throw new \BadMethodCallException('Invalid context, "' . $name . '" options not set'); |
|
256 | + throw new \BadMethodCallException('Invalid context, "'.$name.'" options not set'); |
|
257 | 257 | } |
258 | 258 | if (isset($context['nodes']) and is_array($context['nodes'])) { |
259 | 259 | $this->nodes = $context['nodes']; |
@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | public function getAuthorizedAppConfig(): array { |
87 | 87 | return [ |
88 | - 'dav' => ['/(' . implode('|', array_keys(self::defaults)) . ')/'] |
|
88 | + 'dav' => ['/('.implode('|', array_keys(self::defaults)).')/'] |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | } |
@@ -31,12 +31,12 @@ |
||
31 | 31 | if (is_object($link)) { |
32 | 32 | return spl_object_id($link); |
33 | 33 | } elseif (is_resource($link)) { |
34 | - return (int)$link; |
|
34 | + return (int) $link; |
|
35 | 35 | } elseif (is_array($link) && isset($link[0])) { |
36 | 36 | if (is_object($link[0])) { |
37 | 37 | return spl_object_id($link[0]); |
38 | 38 | } elseif (is_resource($link[0])) { |
39 | - return (int)$link[0]; |
|
39 | + return (int) $link[0]; |
|
40 | 40 | } |
41 | 41 | } |
42 | 42 | throw new \RuntimeException('No resource provided'); |