@@ -50,7 +50,7 @@ |
||
50 | 50 | $class = ($this->event !== null && is_object($this->event)) ? get_class($this->event) : 'null'; |
51 | 51 | $this->logger->info( |
52 | 52 | 'Deprecated event type for {name}: {class} is used', |
53 | - [ 'name' => $this->eventName, 'class' => $class] |
|
53 | + ['name' => $this->eventName, 'class' => $class] |
|
54 | 54 | ); |
55 | 55 | } |
56 | 56 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | |
24 | 24 | style('settings', 'settings'); |
25 | -script('settings', [ 'settings', 'admin', 'log']); |
|
25 | +script('settings', ['settings', 'admin', 'log']); |
|
26 | 26 | script('core', 'setupchecks'); |
27 | 27 | script('files', 'jquery.fileupload'); |
28 | 28 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | foreach ($_['forms']['personal'] as $form) { |
38 | 38 | if (isset($form['anchor'])) { |
39 | 39 | $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.PersonalSettings.index', ['section' => $form['anchor']]); |
40 | - $class = 'nav-icon-' . $form['anchor']; |
|
40 | + $class = 'nav-icon-'.$form['anchor']; |
|
41 | 41 | $sectionName = $form['section-name']; |
42 | 42 | $active = $form['active'] ? ' class="active"' : ''; ?> |
43 | 43 | <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?>> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | foreach ($_['forms']['admin'] as $form) { |
65 | 65 | if (isset($form['anchor'])) { |
66 | 66 | $anchor = \OC::$server->getURLGenerator()->linkToRoute('settings.AdminSettings.index', ['section' => $form['anchor']]); |
67 | - $class = 'nav-icon-' . $form['anchor']; |
|
67 | + $class = 'nav-icon-'.$form['anchor']; |
|
68 | 68 | $sectionName = $form['section-name']; |
69 | 69 | $active = $form['active'] ? ' class="active"' : ''; ?> |
70 | 70 | <li <?php print_unescaped($form['active'] ? ' class="active"' : ''); ?>> |
@@ -87,7 +87,7 @@ |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | protected function registerCommentsEventHandler(IServerContainer $container) { |
90 | - $container->getCommentsManager()->registerEventHandler(function () { |
|
90 | + $container->getCommentsManager()->registerEventHandler(function() { |
|
91 | 91 | return $this->getContainer()->query(EventHandler::class); |
92 | 92 | }); |
93 | 93 | } |
@@ -36,8 +36,8 @@ |
||
36 | 36 | return; |
37 | 37 | } |
38 | 38 | |
39 | - $event->addEntityCollection('files', function ($name) { |
|
40 | - $nodes = \OC::$server->getUserFolder()->getById((int)$name); |
|
39 | + $event->addEntityCollection('files', function($name) { |
|
40 | + $nodes = \OC::$server->getUserFolder()->getById((int) $name); |
|
41 | 41 | return !empty($nodes); |
42 | 42 | }); |
43 | 43 | } |
@@ -74,7 +74,7 @@ |
||
74 | 74 | */ |
75 | 75 | public function run(IOutput $output) { |
76 | 76 | $output->startProgress(); |
77 | - $this->userManager->callForSeenUsers(function (IUser $user) use ($output) { |
|
77 | + $this->userManager->callForSeenUsers(function(IUser $user) use ($output) { |
|
78 | 78 | $theme = $this->config->getUserValue($user->getUID(), Application::APP_ID, 'theme', false); |
79 | 79 | if ($theme === 'themedark') { |
80 | 80 | $this->config->setUserValue($user->getUID(), Application::APP_ID, 'theme', 'dark'); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * we can not inject it. Thus the static call. |
132 | 132 | */ |
133 | 133 | \OC::$server->getLogger()->logException($e, [ |
134 | - 'message' => 'Could not load lazy crash reporter: ' . $e->getMessage(), |
|
134 | + 'message' => 'Could not load lazy crash reporter: '.$e->getMessage(), |
|
135 | 135 | 'level' => ILogger::FATAL, |
136 | 136 | ]); |
137 | 137 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * we can not inject it. Thus the static call. |
148 | 148 | */ |
149 | 149 | \OC::$server->getLogger()->logException($e, [ |
150 | - 'message' => 'Could not register lazy crash reporter: ' . $e->getMessage(), |
|
150 | + 'message' => 'Could not register lazy crash reporter: '.$e->getMessage(), |
|
151 | 151 | 'level' => ILogger::FATAL, |
152 | 152 | ]); |
153 | 153 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | $query = $this->connection->getQueryBuilder(); |
71 | 71 | $query->update('share') |
72 | - ->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST)) |
|
72 | + ->set('share_type', $query->createNamedParameter(IShare::TYPE_GUEST)) |
|
73 | 73 | ->where($query->expr()->eq('share_type', $query->createNamedParameter(IShare::TYPE_EMAIL))); |
74 | 74 | $query->execute(); |
75 | 75 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | public function get($search, $itemType, $itemId, $sorter = null, $shareTypes = [IShare::TYPE_USER], $limit = 10): DataResponse { |
76 | 76 | // if enumeration/user listings are disabled, we'll receive an empty |
77 | 77 | // result from search() – thus nothing else to do here. |
78 | - [$results,] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0); |
|
78 | + [$results, ] = $this->collaboratorSearch->search($search, $shareTypes, false, $limit, 0); |
|
79 | 79 | |
80 | 80 | $event = new AutoCompleteEvent([ |
81 | 81 | 'search' => $search, |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | 'shareTypes' => $shareTypes, |
87 | 87 | 'limit' => $limit, |
88 | 88 | ]); |
89 | - $this->dispatcher->dispatch(IManager::class . '::filterResults', $event); |
|
89 | + $this->dispatcher->dispatch(IManager::class.'::filterResults', $event); |
|
90 | 90 | $results = $event->getResults(); |
91 | 91 | |
92 | 92 | $exactMatches = $results['exact']; |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | public function cacheFor(int $cacheSeconds, bool $public = false) { |
109 | 109 | if ($cacheSeconds > 0) { |
110 | 110 | $pragma = $public ? 'public' : 'private'; |
111 | - $this->addHeader('Cache-Control', $pragma . ', max-age=' . $cacheSeconds . ', must-revalidate'); |
|
111 | + $this->addHeader('Cache-Control', $pragma.', max-age='.$cacheSeconds.', must-revalidate'); |
|
112 | 112 | $this->addHeader('Pragma', $pragma); |
113 | 113 | |
114 | 114 | // Set expires header |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | * @since 6.0.0 - return value was added in 7.0.0 |
198 | 198 | */ |
199 | 199 | public function addHeader($name, $value) { |
200 | - $name = trim($name); // always remove leading and trailing whitespace |
|
200 | + $name = trim($name); // always remove leading and trailing whitespace |
|
201 | 201 | // to be able to reliably check for security |
202 | 202 | // headers |
203 | 203 | |
@@ -242,7 +242,7 @@ discard block |
||
242 | 242 | $this->headers['X-Robots-Tag'] = 'none'; |
243 | 243 | |
244 | 244 | if ($this->ETag) { |
245 | - $mergeWith['ETag'] = '"' . $this->ETag . '"'; |
|
245 | + $mergeWith['ETag'] = '"'.$this->ETag.'"'; |
|
246 | 246 | } |
247 | 247 | |
248 | 248 | return array_merge($mergeWith, $this->headers); |