@@ -23,10 +23,10 @@ |
||
23 | 23 | namespace OC\Preview; |
24 | 24 | |
25 | 25 | class PNG extends Image { |
26 | - /** |
|
27 | - * {@inheritDoc} |
|
28 | - */ |
|
29 | - public function getMimeType(): string { |
|
30 | - return '/image\/png/'; |
|
31 | - } |
|
26 | + /** |
|
27 | + * {@inheritDoc} |
|
28 | + */ |
|
29 | + public function getMimeType(): string { |
|
30 | + return '/image\/png/'; |
|
31 | + } |
|
32 | 32 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | |
24 | 24 | //.docm, .dotm, .xls(m), .xlt(m), .xla(m), .ppt(m), .pot(m), .pps(m), .ppa(m) |
25 | 25 | class MSOffice2003 extends Office { |
26 | - /** |
|
27 | - * {@inheritDoc} |
|
28 | - */ |
|
29 | - public function getMimeType(): string { |
|
30 | - return '/application\/vnd.ms-.*/'; |
|
31 | - } |
|
26 | + /** |
|
27 | + * {@inheritDoc} |
|
28 | + */ |
|
29 | + public function getMimeType(): string { |
|
30 | + return '/application\/vnd.ms-.*/'; |
|
31 | + } |
|
32 | 32 | } |
@@ -23,10 +23,10 @@ |
||
23 | 23 | namespace OC\Preview; |
24 | 24 | |
25 | 25 | class JPEG extends Image { |
26 | - /** |
|
27 | - * {@inheritDoc} |
|
28 | - */ |
|
29 | - public function getMimeType(): string { |
|
30 | - return '/image\/jpeg/'; |
|
31 | - } |
|
26 | + /** |
|
27 | + * {@inheritDoc} |
|
28 | + */ |
|
29 | + public function getMimeType(): string { |
|
30 | + return '/image\/jpeg/'; |
|
31 | + } |
|
32 | 32 | } |
@@ -15,9 +15,12 @@ |
||
15 | 15 | <p><?php p($l->t('%s used', [$_['usage']])); ?></p> |
16 | 16 | </a> |
17 | 17 | </li> |
18 | - <?php else: ?> |
|
18 | + <?php else { |
|
19 | + : ?> |
|
19 | 20 | <li id="quota" class="has-tooltip pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>" |
20 | - title="<?php p($l->t('%s%% of %s used', [$_['usage_relative'], $_['total_space']])); ?>"> |
|
21 | + title="<?php p($l->t('%s%% of %s used', [$_['usage_relative'], $_['total_space']])); |
|
22 | +} |
|
23 | +?>"> |
|
21 | 24 | <a href="#" class="icon-quota svg"> |
22 | 25 | <p id="quotatext"><?php p($l->t('%1$s of %2$s used', [$_['usage'], $_['total_space']])); ?></p> |
23 | 26 | <div class="quota-container"> |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | |
7 | 7 | <?php |
8 | 8 | |
9 | - $pinned = 0; |
|
10 | - foreach ($_['navigationItems'] as $item) { |
|
11 | - $pinned = NavigationListElements($item, $l, $pinned); |
|
12 | - } |
|
13 | - ?> |
|
9 | + $pinned = 0; |
|
10 | + foreach ($_['navigationItems'] as $item) { |
|
11 | + $pinned = NavigationListElements($item, $l, $pinned); |
|
12 | + } |
|
13 | + ?> |
|
14 | 14 | |
15 | 15 | <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?> |
16 | 16 | <li id="quota" class="pinned <?php p($pinned === 0 ? 'first-pinned ' : '') ?>"> |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @return int Returns the pinned value |
72 | 72 | */ |
73 | 73 | function NavigationListElements($item, $l, $pinned) { |
74 | - strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?> |
|
74 | + strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?> |
|
75 | 75 | <li |
76 | 76 | data-id="<?php p($item['id']) ?>" |
77 | 77 | <?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?> |
@@ -79,8 +79,8 @@ discard block |
||
79 | 79 | <?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?> |
80 | 80 | class="nav-<?php p($item['id']) ?> |
81 | 81 | <?php if (isset($item['classes'])) { |
82 | - p($item['classes']); |
|
83 | - } ?> |
|
82 | + p($item['classes']); |
|
83 | + } ?> |
|
84 | 84 | <?php p($pinned === 1 ? 'first-pinned' : '') ?> |
85 | 85 | <?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>" |
86 | 86 | <?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>> |
@@ -90,26 +90,26 @@ discard block |
||
90 | 90 | |
91 | 91 | |
92 | 92 | <?php |
93 | - NavigationElementMenu($item); |
|
94 | - if (isset($item['sublist'])) { |
|
95 | - ?> |
|
93 | + NavigationElementMenu($item); |
|
94 | + if (isset($item['sublist'])) { |
|
95 | + ?> |
|
96 | 96 | <button class="collapse app-navigation-noclose" |
97 | 97 | aria-label="<?php p($l->t('Toggle %1$s sublist', $item['name'])) ?>" |
98 | 98 | <?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>> |
99 | 99 | </button> |
100 | 100 | <ul id="sublist-<?php p($item['id']); ?>"> |
101 | 101 | <?php |
102 | - foreach ($item['sublist'] as $item) { |
|
103 | - $pinned = NavigationListElements($item, $l, $pinned); |
|
104 | - } ?> |
|
102 | + foreach ($item['sublist'] as $item) { |
|
103 | + $pinned = NavigationListElements($item, $l, $pinned); |
|
104 | + } ?> |
|
105 | 105 | </ul> |
106 | 106 | <?php |
107 | - } ?> |
|
107 | + } ?> |
|
108 | 108 | </li> |
109 | 109 | |
110 | 110 | |
111 | 111 | <?php |
112 | - return $pinned; |
|
112 | + return $pinned; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | /** |
@@ -120,8 +120,8 @@ discard block |
||
120 | 120 | * @return void |
121 | 121 | */ |
122 | 122 | function NavigationElementMenu($item) { |
123 | - if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') { |
|
124 | - ?> |
|
123 | + if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') { |
|
124 | + ?> |
|
125 | 125 | <div id="dotmenu-<?php p($item['id']); ?>" |
126 | 126 | class="app-navigation-entry-utils" <?php if (isset($item['enableMenuButton']) && $item['enableMenuButton'] === 0) { ?> style="display: none"<?php } ?>> |
127 | 127 | <ul> |
@@ -137,5 +137,5 @@ discard block |
||
137 | 137 | </ul> |
138 | 138 | </div> |
139 | 139 | <?php |
140 | - } |
|
140 | + } |
|
141 | 141 | } |
@@ -31,16 +31,16 @@ |
||
31 | 31 | |
32 | 32 | abstract class ARemoteWipeEvent extends Event { |
33 | 33 | |
34 | - /** @var IToken */ |
|
35 | - private $token; |
|
34 | + /** @var IToken */ |
|
35 | + private $token; |
|
36 | 36 | |
37 | - public function __construct(IToken $token) { |
|
38 | - parent::__construct(); |
|
39 | - $this->token = $token; |
|
40 | - } |
|
37 | + public function __construct(IToken $token) { |
|
38 | + parent::__construct(); |
|
39 | + $this->token = $token; |
|
40 | + } |
|
41 | 41 | |
42 | - public function getToken(): IToken { |
|
43 | - return $this->token; |
|
44 | - } |
|
42 | + public function getToken(): IToken { |
|
43 | + return $this->token; |
|
44 | + } |
|
45 | 45 | |
46 | 46 | } |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\CloudFederationAPI\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\CloudFederationAPI\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |
@@ -370,18 +370,18 @@ discard block |
||
370 | 370 | private function findFileWithExtension($class, $ext) |
371 | 371 | { |
372 | 372 | // PSR-4 lookup |
373 | - $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext; |
|
373 | + $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR).$ext; |
|
374 | 374 | |
375 | 375 | $first = $class[0]; |
376 | 376 | if (isset($this->prefixLengthsPsr4[$first])) { |
377 | 377 | $subPath = $class; |
378 | 378 | while (false !== $lastPos = strrpos($subPath, '\\')) { |
379 | 379 | $subPath = substr($subPath, 0, $lastPos); |
380 | - $search = $subPath . '\\'; |
|
380 | + $search = $subPath.'\\'; |
|
381 | 381 | if (isset($this->prefixDirsPsr4[$search])) { |
382 | - $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); |
|
382 | + $pathEnd = DIRECTORY_SEPARATOR.substr($logicalPathPsr4, $lastPos + 1); |
|
383 | 383 | foreach ($this->prefixDirsPsr4[$search] as $dir) { |
384 | - if (file_exists($file = $dir . $pathEnd)) { |
|
384 | + if (file_exists($file = $dir.$pathEnd)) { |
|
385 | 385 | return $file; |
386 | 386 | } |
387 | 387 | } |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | |
392 | 392 | // PSR-4 fallback dirs |
393 | 393 | foreach ($this->fallbackDirsPsr4 as $dir) { |
394 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { |
|
394 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr4)) { |
|
395 | 395 | return $file; |
396 | 396 | } |
397 | 397 | } |
@@ -403,14 +403,14 @@ discard block |
||
403 | 403 | . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR); |
404 | 404 | } else { |
405 | 405 | // PEAR-like class name |
406 | - $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext; |
|
406 | + $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR).$ext; |
|
407 | 407 | } |
408 | 408 | |
409 | 409 | if (isset($this->prefixesPsr0[$first])) { |
410 | 410 | foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { |
411 | 411 | if (0 === strpos($class, $prefix)) { |
412 | 412 | foreach ($dirs as $dir) { |
413 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
413 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
414 | 414 | return $file; |
415 | 415 | } |
416 | 416 | } |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | |
421 | 421 | // PSR-0 fallback dirs |
422 | 422 | foreach ($this->fallbackDirsPsr0 as $dir) { |
423 | - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { |
|
423 | + if (file_exists($file = $dir.DIRECTORY_SEPARATOR.$logicalPathPsr0)) { |
|
424 | 424 | return $file; |
425 | 425 | } |
426 | 426 | } |
@@ -6,5 +6,5 @@ |
||
6 | 6 | $baseDir = $vendorDir; |
7 | 7 | |
8 | 8 | return array( |
9 | - 'OCA\\WorkflowEngine\\' => array($baseDir . '/../lib'), |
|
9 | + 'OCA\\WorkflowEngine\\' => array($baseDir.'/../lib'), |
|
10 | 10 | ); |