@@ -14,10 +14,13 @@ |
||
14 | 14 | ?> |
15 | 15 | <?php if (isset($_['content'])): ?> |
16 | 16 | <?php print_unescaped($_['content']) ?> |
17 | -<?php else: ?> |
|
17 | +<?php else { |
|
18 | + : ?> |
|
18 | 19 | <div class="body-login-container update"> |
19 | 20 | <div class="icon-big icon-search icon-white"></div> |
20 | - <h2><?php p($l->t('File not found')); ?></h2> |
|
21 | + <h2><?php p($l->t('File not found')); |
|
22 | +} |
|
23 | +?></h2> |
|
21 | 24 | <p class="infogroup"><?php p($l->t('The document could not be found on the server. Maybe the share was deleted or has expired?')); ?></p> |
22 | 25 | <p><a class="button primary" href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>"> |
23 | 26 | <?php p($l->t('Back to %s', [$theme->getName()])); ?> |
@@ -271,8 +271,9 @@ |
||
271 | 271 | } |
272 | 272 | foreach ($dirs as $dir) { |
273 | 273 | foreach ($exts as $ext) { |
274 | - if ($check_fn("$dir/$name" . $ext)) |
|
275 | - return true; |
|
274 | + if ($check_fn("$dir/$name" . $ext)) { |
|
275 | + return true; |
|
276 | + } |
|
276 | 277 | } |
277 | 278 | } |
278 | 279 | return false; |
@@ -133,10 +133,10 @@ |
||
133 | 133 | if ($signalClass) { |
134 | 134 | if ($signalName) { |
135 | 135 | self::$registered[$signalClass][$signalName]=[]; |
136 | - }else{ |
|
136 | + } else{ |
|
137 | 137 | self::$registered[$signalClass]=[]; |
138 | 138 | } |
139 | - }else{ |
|
139 | + } else{ |
|
140 | 140 | self::$registered=[]; |
141 | 141 | } |
142 | 142 | } |
@@ -89,13 +89,11 @@ discard block |
||
89 | 89 | if (count($rangeArray) > 1) { |
90 | 90 | $type = 'multipart/byteranges; boundary='.self::getBoundary(); |
91 | 91 | // no Content-Length header here |
92 | - } |
|
93 | - else { |
|
92 | + } else { |
|
94 | 93 | header(sprintf('Content-Range: bytes %d-%d/%d', $rangeArray[0]['from'], $rangeArray[0]['to'], $fileSize), true); |
95 | 94 | OC_Response::setContentLengthHeader($rangeArray[0]['to'] - $rangeArray[0]['from'] + 1); |
96 | 95 | } |
97 | - } |
|
98 | - else { |
|
96 | + } else { |
|
99 | 97 | OC_Response::setContentLengthHeader($fileSize); |
100 | 98 | } |
101 | 99 | } |
@@ -263,13 +261,11 @@ discard block |
||
263 | 261 | if ($minOffset >= $fileSize) { |
264 | 262 | break; |
265 | 263 | } |
266 | - } |
|
267 | - elseif (is_numeric($ranges[0]) && $ranges[0] < $fileSize) { |
|
264 | + } elseif (is_numeric($ranges[0]) && $ranges[0] < $fileSize) { |
|
268 | 265 | // case: x- |
269 | 266 | $rangeArray[$ind++] = [ 'from' => $ranges[0], 'to' => $fileSize-1, 'size' => $fileSize ]; |
270 | 267 | break; |
271 | - } |
|
272 | - elseif (is_numeric($ranges[1])) { |
|
268 | + } elseif (is_numeric($ranges[1])) { |
|
273 | 269 | // case: -x |
274 | 270 | if ($ranges[1] > $fileSize) { |
275 | 271 | $ranges[1] = $fileSize; |
@@ -331,8 +327,7 @@ discard block |
||
331 | 327 | try { |
332 | 328 | if (count($rangeArray) == 1) { |
333 | 329 | $view->readfilePart($filename, $rangeArray[0]['from'], $rangeArray[0]['to']); |
334 | - } |
|
335 | - else { |
|
330 | + } else { |
|
336 | 331 | // check if file is seekable (if not throw UnseekableException) |
337 | 332 | // we have to check it before body contents |
338 | 333 | $view->readfilePart($filename, $rangeArray[0]['size'], $rangeArray[0]['size']); |
@@ -355,8 +350,7 @@ discard block |
||
355 | 350 | self::sendHeaders($filename, $name, []); |
356 | 351 | $view->readfile($filename); |
357 | 352 | } |
358 | - } |
|
359 | - else { |
|
353 | + } else { |
|
360 | 354 | $view->readfile($filename); |
361 | 355 | } |
362 | 356 | } |
@@ -117,8 +117,7 @@ discard block |
||
117 | 117 | public function append($key, $value) { |
118 | 118 | if( array_key_exists( $key, $this->vars )) { |
119 | 119 | $this->vars[$key][] = $value; |
120 | - } |
|
121 | - else{ |
|
120 | + } else{ |
|
122 | 121 | $this->vars[$key] = [ $value ]; |
123 | 122 | } |
124 | 123 | } |
@@ -133,8 +132,7 @@ discard block |
||
133 | 132 | $data = $this->fetchPage(); |
134 | 133 | if( $data === false ) { |
135 | 134 | return false; |
136 | - } |
|
137 | - else{ |
|
135 | + } else{ |
|
138 | 136 | print $data; |
139 | 137 | return true; |
140 | 138 | } |
@@ -17,8 +17,11 @@ discard block |
||
17 | 17 | <?php if(is_array($err)):?> |
18 | 18 | <?php p($err['error']); ?> |
19 | 19 | <span class='hint'><?php p($err['hint']); ?></span> |
20 | - <?php else: ?> |
|
21 | - <?php p($err); ?> |
|
20 | + <?php else { |
|
21 | + : ?> |
|
22 | + <?php p($err); |
|
23 | +} |
|
24 | +?> |
|
22 | 25 | <?php endif; ?> |
23 | 26 | </p> |
24 | 27 | <?php endforeach; ?> |
@@ -74,8 +77,12 @@ discard block |
||
74 | 77 | |
75 | 78 | <?php if(!$_['dbIsSet'] or count($_['errors']) > 0): ?> |
76 | 79 | <fieldset id='databaseBackend'> |
77 | - <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
78 | - $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> |
|
80 | + <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) { |
|
81 | + $hasOtherDB = true; |
|
82 | +} else { |
|
83 | + $hasOtherDB =false; |
|
84 | + } |
|
85 | + //other than SQLite ?> |
|
79 | 86 | <legend><?php p($l->t( 'Configure the database' )); ?></legend> |
80 | 87 | <div id="selectDbType"> |
81 | 88 | <?php foreach($_['databases'] as $type => $label): ?> |
@@ -87,11 +94,14 @@ discard block |
||
87 | 94 | <?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a> |
88 | 95 | </p> |
89 | 96 | <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>"> |
90 | - <?php else: ?> |
|
97 | + <?php else { |
|
98 | + : ?> |
|
91 | 99 | <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" |
92 | 100 | <?php print_unescaped($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/> |
93 | 101 | <label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label> |
94 | - <?php endif; ?> |
|
102 | + <?php endif; |
|
103 | +} |
|
104 | +?> |
|
95 | 105 | <?php endforeach; ?> |
96 | 106 | </div> |
97 | 107 | </fieldset> |