@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ .'/settings-sample-vagrant.inc.php'; |
|
3 | +require_once __DIR__ . '/settings-sample-vagrant.inc.php'; |
|
4 | 4 | |
5 | 5 | // installation paths |
6 | 6 | $dev_basepath = '/home/travis/'; |
@@ -143,9 +143,9 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | $fnl = strlen($filename); |
146 | - $fh = "\x14\x00"; // ver needed to extract |
|
147 | - $fh .= "\x00\x00"; // gen purpose bit flag |
|
148 | - $fh .= "\x08\x00"; // compression method |
|
146 | + $fh = "\x14\x00"; // ver needed to extract |
|
147 | + $fh .= "\x00\x00"; // gen purpose bit flag |
|
148 | + $fh .= "\x08\x00"; // compression method |
|
149 | 149 | $fh .= "\x00\x00\x00\x00"; // last mod time and date |
150 | 150 | $fh .= |
151 | 151 | pack( |
@@ -172,16 +172,16 @@ discard block |
||
172 | 172 | "va*v3V2", |
173 | 173 | 0, |
174 | 174 | $fh, |
175 | - 0, // file comment length |
|
176 | - 0, // disk number start |
|
177 | - 0, // internal file attributes |
|
178 | - $attr, // external file attributes - 'archive/directory' bit set |
|
175 | + 0, // file comment length |
|
176 | + 0, // disk number start |
|
177 | + 0, // internal file attributes |
|
178 | + $attr, // external file attributes - 'archive/directory' bit set |
|
179 | 179 | $this->offset |
180 | 180 | ) . $filename; |
181 | 181 | |
182 | 182 | $this->offset += 42 + $fnl + $gzsize; |
183 | 183 | $this->cdir[] = $cdir; |
184 | - $this->cnt ++; |
|
184 | + $this->cnt++; |
|
185 | 185 | $this->idx = $this->cnt - 1; |
186 | 186 | } |
187 | 187 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | $cdsl, // size of central dir |
231 | 231 | $zdsl, // offset to start of central dir |
232 | 232 | 0 |
233 | - ); // .zip file comment length |
|
233 | + ); // .zip file comment length |
|
234 | 234 | return $this->zipfile; |
235 | 235 | } |
236 | 236 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // database names |
20 | 20 | $dbname = 'opencaching'; |
21 | -$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
21 | +$tmpdbname = 'octmp'; // empty db with CREATE and DROP privileges |
|
22 | 22 | |
23 | 23 | // enable HTTPS |
24 | 24 | if (defined('HTTPS_ENABLED')) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | 'description' => $item->description |
67 | 67 | ]; |
68 | 68 | // increment counter |
69 | - $i ++; |
|
69 | + $i++; |
|
70 | 70 | // htmlspecialchars_decode() works around inconsistent HTML encoding |
71 | 71 | // e.g. in SMF Forum Threads |
72 | 72 | } elseif (strpos($item->title, 'VERSCHOBEN') === false && |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | ]; |
81 | 81 | $headlines[] = "" . htmlspecialchars_decode($item->title); |
82 | 82 | // increment counter |
83 | - $i ++; |
|
83 | + $i++; |
|
84 | 84 | } |
85 | 85 | } |
86 | 86 | } |