@@ -110,7 +110,7 @@ |
||
110 | 110 | /** @var FederatedShare $share */ |
111 | 111 | $share = $data->gObj('federatedShare', FederatedShare::class); |
112 | 112 | if ($share->getLockStatus() === ItemLock::STATUS_INSTANCE_LOCKED) { |
113 | - throw new FederatedShareAlreadyLockedException('item already locked by ' . $share->getInstance()); |
|
113 | + throw new FederatedShareAlreadyLockedException('item already locked by '.$share->getInstance()); |
|
114 | 114 | } |
115 | 115 | |
116 | 116 | return $share; |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | } catch (Exception $e) { |
332 | 332 | $this->assertSame( |
333 | 333 | true, false, |
334 | - 'should have returned a MemberIsNotModeratorException - ' . $e->getMessage() |
|
334 | + 'should have returned a MemberIsNotModeratorException - '.$e->getMessage() |
|
335 | 335 | ); |
336 | 336 | } |
337 | 337 | |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | } catch (Exception $e) { |
346 | 346 | $this->assertSame( |
347 | 347 | true, false, |
348 | - 'should have returned a MemberIsNotModeratorException - ' . $e->getMessage() |
|
348 | + 'should have returned a MemberIsNotModeratorException - '.$e->getMessage() |
|
349 | 349 | ); |
350 | 350 | } |
351 | 351 |
@@ -7,10 +7,10 @@ |
||
7 | 7 | define('PHPUNIT_RUN', 1); |
8 | 8 | } |
9 | 9 | |
10 | -require_once __DIR__ . '/../../../lib/base.php'; |
|
10 | +require_once __DIR__.'/../../../lib/base.php'; |
|
11 | 11 | |
12 | 12 | // Fix for "Autoload path not allowed: .../tests/lib/testcase.php" |
13 | -\OC::$loader->addValidRoot(OC::$SERVERROOT . '/tests'); |
|
13 | +\OC::$loader->addValidRoot(OC::$SERVERROOT.'/tests'); |
|
14 | 14 | |
15 | 15 | \OC_App::loadApp(Application::APP_ID); |
16 | 16 |
@@ -18,14 +18,14 @@ |
||
18 | 18 | <tr> |
19 | 19 | <th id='headerName' class="hidden column-name"> |
20 | 20 | <div id="headerName-container"> |
21 | - <a class="name sort columntitle" data-sort="name"><span><?php p($l->t( 'Name' )); ?></span><span class="sort-indicator"></span></a> |
|
21 | + <a class="name sort columntitle" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a> |
|
22 | 22 | </div> |
23 | 23 | </th> |
24 | 24 | <th id="headerSize" class="hidden column-size"> |
25 | 25 | <a class="size sort columntitle" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a> |
26 | 26 | </th> |
27 | 27 | <th id="headerDate" class="hidden column-mtime"> |
28 | - <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t( 'Modified' )); ?></span><span class="sort-indicator"></span></a> |
|
28 | + <a id="modified" class="columntitle" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a> |
|
29 | 29 | </th> |
30 | 30 | </tr> |
31 | 31 | </thead> |
@@ -296,7 +296,7 @@ |
||
296 | 296 | * @throws RequestBuilderException |
297 | 297 | */ |
298 | 298 | public function move(IShare $share, $recipient): IShare { |
299 | - OC::$server->getLogger()->log(3, 'CSP > move' . $share->getId() . ' ' . $recipient); |
|
299 | + OC::$server->getLogger()->log(3, 'CSP > move'.$share->getId().' '.$recipient); |
|
300 | 300 | |
301 | 301 | $federatedUser = $this->federatedUserService->getLocalFederatedUser($recipient); |
302 | 302 | $child = $this->shareWrapperService->getChild($share, $federatedUser); |
@@ -125,7 +125,7 @@ |
||
125 | 125 | } catch (FederatedItemException $e) { |
126 | 126 | if ($input->getOption('status-code')) { |
127 | 127 | throw new FederatedItemException( |
128 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
128 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
129 | 129 | ); |
130 | 130 | } |
131 | 131 |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | if (($userId = $input->getOption('user')) !== '') { |
124 | 124 | $federatedUser = $this->syncService->syncNextcloudUser($userId); |
125 | 125 | $output->writeln( |
126 | - '- Nextcloud User <info>' . $userId . '</info>/<info>' . $federatedUser->getSingleId() |
|
126 | + '- Nextcloud User <info>'.$userId.'</info>/<info>'.$federatedUser->getSingleId() |
|
127 | 127 | . '</info> synced' |
128 | 128 | ); |
129 | 129 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | if (($groupId = $input->getOption('group')) !== '') { |
137 | 137 | $circle = $this->syncService->syncNextcloudGroup($groupId); |
138 | 138 | $output->writeln( |
139 | - '- Nextcloud Group <info>' . $groupId . '</info>/<info>' . $circle->getSingleId() |
|
139 | + '- Nextcloud Group <info>'.$groupId.'</info>/<info>'.$circle->getSingleId() |
|
140 | 140 | . '</info> synced' |
141 | 141 | ); |
142 | 142 | } |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } catch (FederatedItemException $e) { |
140 | 140 | if ($input->getOption('status-code')) { |
141 | 141 | throw new FederatedItemException( |
142 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
142 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
143 | 143 | ); |
144 | 144 | } |
145 | 145 | |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | $instance = $host; |
198 | 198 | } |
199 | 199 | |
200 | - $result[] = $user['userid']['value'] . ' <info>@' . $host . '</info>'; |
|
200 | + $result[] = $user['userid']['value'].' <info>@'.$host.'</info>'; |
|
201 | 201 | } |
202 | 202 | |
203 | 203 | // if ($userId === '') { |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | } catch (FederatedItemException $e) { |
145 | 145 | if ($input->getOption('status-code')) { |
146 | 146 | throw new FederatedItemException( |
147 | - ' [' . get_class($e) . ', ' . $e->getStatus() . ']' . "\n" . $e->getMessage() |
|
147 | + ' ['.get_class($e).', '.$e->getStatus().']'."\n".$e->getMessage() |
|
148 | 148 | ); |
149 | 149 | } |
150 | 150 | |
@@ -176,8 +176,8 @@ discard block |
||
176 | 176 | $value = array_search(strtoupper($item), $valid); |
177 | 177 | if (!$value) { |
178 | 178 | throw new InvalidArgumentException( |
179 | - 'Invalid config \'' . $item . '\'. Available values: ' |
|
180 | - . implode(', ', array_values($valid)) . '. ' |
|
179 | + 'Invalid config \''.$item.'\'. Available values: ' |
|
180 | + . implode(', ', array_values($valid)).'. ' |
|
181 | 181 | . 'To disable a config, start the value with an underscore' |
182 | 182 | ); |
183 | 183 | } |