@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | <div class="warning title"> |
19 | 19 | <?php p($l->t('Please renew your password.')); ?><br> |
20 | 20 | </div> |
21 | - <?php foreach($_['messages'] as $message): ?> |
|
21 | + <?php foreach ($_['messages'] as $message): ?> |
|
22 | 22 | <div class="warning"> |
23 | 23 | <?php p($message); ?><br> |
24 | 24 | </div> |
@@ -31,14 +31,14 @@ discard block |
||
31 | 31 | <?php endif; ?> |
32 | 32 | <div id="message" class="hidden"> |
33 | 33 | <img class="float-spinner" alt="" |
34 | - src="<?php p(image_path('core', 'loading-dark.gif'));?>"> |
|
34 | + src="<?php p(image_path('core', 'loading-dark.gif')); ?>"> |
|
35 | 35 | <span id="messageText"></span> |
36 | 36 | <!-- the following div ensures that the spinner is always inside the #message div --> |
37 | 37 | <div style="clear: both;"></div> |
38 | 38 | </div> |
39 | 39 | <p class="grouptop"> |
40 | 40 | <input type="password" id="oldPassword" name="oldPassword" |
41 | - placeholder="<?php echo $l->t('Current password');?>" |
|
41 | + placeholder="<?php echo $l->t('Current password'); ?>" |
|
42 | 42 | autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/> |
43 | 43 | <label for="oldPassword" class="infield"><?php p($l->t('Current password')); ?></label> |
44 | 44 | </p> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <input type="checkbox" id="personal-show" name="show" /><label for="personal-show"></label> |
48 | 48 | <label id="newPassword-label" for="newPassword" class="infield"><?php p($l->t('New password')); ?></label> |
49 | 49 | <input type="password" id="newPassword" name="newPassword" |
50 | - placeholder="<?php echo $l->t('New password');?>" |
|
50 | + placeholder="<?php echo $l->t('New password'); ?>" |
|
51 | 51 | data-typetoggle="#personal-show" autofocus autocomplete="off" autocapitalize="off" autocorrect="off" required/> |
52 | 52 | </p> |
53 | 53 |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | $updatedEntries = $builder->execute(); |
73 | 73 | if ($updatedEntries > 0) { |
74 | - $out->info('Fixed file share permissions for ' . $updatedEntries . ' shares'); |
|
74 | + $out->info('Fixed file share permissions for '.$updatedEntries.' shares'); |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | } |
108 | 108 | |
109 | 109 | if ($deletedEntries) { |
110 | - $out->info('Removed ' . $deletedEntries . ' shares where the parent did not exist'); |
|
110 | + $out->info('Removed '.$deletedEntries.' shares where the parent did not exist'); |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | ], |
55 | 55 | ]; |
56 | 56 | |
57 | - if($this->appManager->isEnabledForUser('files_sharing')) { |
|
57 | + if ($this->appManager->isEnabledForUser('files_sharing')) { |
|
58 | 58 | $services['SHARING'] = [ |
59 | 59 | 'version' => 1, |
60 | 60 | 'endpoints' => [ |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | } |
87 | 87 | |
88 | - if($this->appManager->isEnabledForUser('activity')) { |
|
88 | + if ($this->appManager->isEnabledForUser('activity')) { |
|
89 | 89 | $services['ACTIVITY'] = [ |
90 | 90 | 'version' => 1, |
91 | 91 | 'endpoints' => [ |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | ]; |
95 | 95 | } |
96 | 96 | |
97 | - if($this->appManager->isEnabledForUser('provisioning_api')) { |
|
97 | + if ($this->appManager->isEnabledForUser('provisioning_api')) { |
|
98 | 98 | $services['PROVISIONING'] = [ |
99 | 99 | 'version' => 1, |
100 | 100 | 'endpoints' => [ |
@@ -88,7 +88,7 @@ |
||
88 | 88 | if (strpos($path, '/webdav/') === 0) { |
89 | 89 | $path = substr($path, strlen('/webdav')); |
90 | 90 | } |
91 | - $path = $this->path . $path; |
|
91 | + $path = $this->path.$path; |
|
92 | 92 | $this->mimeType[$this->storage->getId()][$path] = $this->mimeTypeDetector->detectPath($path); |
93 | 93 | return $this->mimeType[$this->storage->getId()][$path]; |
94 | 94 | } |
@@ -46,11 +46,11 @@ |
||
46 | 46 | $tags = $getID3->analyze($tmpPath); |
47 | 47 | unlink($tmpPath); |
48 | 48 | $picture = isset($tags['id3v2']['APIC'][0]['data']) ? $tags['id3v2']['APIC'][0]['data'] : null; |
49 | - if(is_null($picture) && isset($tags['id3v2']['PIC'][0]['data'])) { |
|
49 | + if (is_null($picture) && isset($tags['id3v2']['PIC'][0]['data'])) { |
|
50 | 50 | $picture = $tags['id3v2']['PIC'][0]['data']; |
51 | 51 | } |
52 | 52 | |
53 | - if(!is_null($picture)) { |
|
53 | + if (!is_null($picture)) { |
|
54 | 54 | $image = new \OC_Image(); |
55 | 55 | $image->loadFromData($picture); |
56 | 56 |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | } |
215 | 215 | |
216 | 216 | if ($provider === null) { |
217 | - throw new ProviderException('No provider with id .' . $id . ' found.'); |
|
217 | + throw new ProviderException('No provider with id .'.$id.' found.'); |
|
218 | 218 | } |
219 | 219 | |
220 | 220 | return $provider; |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | |
242 | 242 | |
243 | 243 | if ($provider === null) { |
244 | - throw new ProviderException('No share provider for share type ' . $shareType); |
|
244 | + throw new ProviderException('No share provider for share type '.$shareType); |
|
245 | 245 | } |
246 | 246 | |
247 | 247 | return $provider; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | $eventDispatcher->addListener(MapperEvent::EVENT_ASSIGN, $mapperListener); |
66 | 66 | $eventDispatcher->addListener(MapperEvent::EVENT_UNASSIGN, $mapperListener); |
67 | 67 | |
68 | -\OCA\Files\App::getNavigationManager()->add(function () { |
|
68 | +\OCA\Files\App::getNavigationManager()->add(function() { |
|
69 | 69 | $l = \OC::$server->getL10N('systemtags'); |
70 | 70 | return [ |
71 | 71 | 'id' => 'systemtagsfilter', |
@@ -28,7 +28,7 @@ |
||
28 | 28 | // register hooks |
29 | 29 | \OCA\Files_Trashbin\Trashbin::registerHooks(); |
30 | 30 | |
31 | -\OCA\Files\App::getNavigationManager()->add(function () { |
|
31 | +\OCA\Files\App::getNavigationManager()->add(function() { |
|
32 | 32 | $l = \OC::$server->getL10N('files_trashbin'); |
33 | 33 | return [ |
34 | 34 | 'id' => 'trashbin', |
@@ -119,9 +119,9 @@ |
||
119 | 119 | $elements = explode(' ', $fullName); |
120 | 120 | $result = ['', '', '', '', '']; |
121 | 121 | if (count($elements) > 2) { |
122 | - $result[0] = implode(' ', array_slice($elements, count($elements)-1)); |
|
122 | + $result[0] = implode(' ', array_slice($elements, count($elements) - 1)); |
|
123 | 123 | $result[1] = $elements[0]; |
124 | - $result[2] = implode(' ', array_slice($elements, 1, count($elements)-2)); |
|
124 | + $result[2] = implode(' ', array_slice($elements, 1, count($elements) - 2)); |
|
125 | 125 | } elseif (count($elements) === 2) { |
126 | 126 | $result[0] = $elements[1]; |
127 | 127 | $result[1] = $elements[0]; |