@@ -138,7 +138,7 @@ |
||
| 138 | 138 | $allpics = 'ownlogs'; |
| 139 | 139 | } |
| 140 | 140 | if ($allpics == 'ownlogs' || $allpics == 'owncaches') { |
| 141 | - $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 141 | + $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
| 142 | 142 | $all_pictures = LogPics::get($gallery); |
| 143 | 143 | LogPics::setPaging($gallery, 0, 0, "myhome.php?allpics=" . $allpics); |
| 144 | 144 | } else { |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $cursor[$key] = $value; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - $logEntry->id = (int) hexdec($cursor['i']); |
|
| 74 | + $logEntry->id = (int)hexdec($cursor['i']); |
|
| 75 | 75 | |
| 76 | 76 | $timeStamp = $entry['__REALTIME_TIMESTAMP']; |
| 77 | 77 | $logEntry->created = \DateTimeImmutable::createFromFormat( |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function toDatabaseArray() |
| 31 | 31 | { |
| 32 | 32 | return [ |
| 33 | - 'id' => (int) $this->id, |
|
| 33 | + 'id' => (int)$this->id, |
|
| 34 | 34 | 'email' => $this->email, |
| 35 | 35 | 'status' => $this->status, |
| 36 | 36 | 'created' => $this->created, |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | */ |
| 44 | 44 | public function fromDatabaseArray(array $data) |
| 45 | 45 | { |
| 46 | - $this->id = (int) $data['id']; |
|
| 46 | + $this->id = (int)$data['id']; |
|
| 47 | 47 | $this->email = $data['email']; |
| 48 | 48 | $this->status = $data['status']; |
| 49 | 49 | $this->created = $data['created']; |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | |
| 57 | 57 | public function fromCsvArray(array $data) |
| 58 | 58 | { |
| 59 | - $this->identifier = (int) $data['Identifier']; |
|
| 59 | + $this->identifier = (int)$data['Identifier']; |
|
| 60 | 60 | $this->sourceString = $data['SourceString']; |
| 61 | 61 | $this->comment = $data['Comment']; |
| 62 | 62 | $this->de = $data['DE']; |
@@ -505,8 +505,8 @@ |
||
| 505 | 505 | } |
| 506 | 506 | |
| 507 | 507 | $coords = []; |
| 508 | - if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
| 509 | - $this->hasAttribute(61) != true && // safari cache |
|
| 508 | + if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
| 509 | + $this->hasAttribute(61) != true && // safari cache |
|
| 510 | 510 | $this->getStatus() != 5 // unpublished cache |
| 511 | 511 | ) { |
| 512 | 512 | $rsCoords = sql( |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | ['ai', 'ei'], |
| 18 | 18 | ['ou', 'u'], |
| 19 | 19 | ['th', 't'], |
| 20 | - ['ph','f'], |
|
| 20 | + ['ph', 'f'], |
|
| 21 | 21 | ['oh', 'o'], |
| 22 | 22 | ['ah', 'a'], |
| 23 | 23 | ['eh', 'e'], |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $str = ''; |
| 102 | 102 | |
| 103 | 103 | ftsearch_load_ignores(); |
| 104 | - for ($i = count($astr) - 1; $i >= 0; $i --) { |
|
| 104 | + for ($i = count($astr) - 1; $i >= 0; $i--) { |
|
| 105 | 105 | // ignore? |
| 106 | 106 | if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) { |
| 107 | 107 | unset($astr[$i]); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | // doppelte chars ersetzen |
| 158 | 158 | $ordZ = ord('z'); |
| 159 | - for ($c = ord('a'); $c <= $ordZ; $c ++) { |
|
| 159 | + for ($c = ord('a'); $c <= $ordZ; $c++) { |
|
| 160 | 160 | $old_str = ''; |
| 161 | 161 | while ($old_str !== $str) { |
| 162 | 162 | $old_str = $str; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $select = ''; |
| 28 | 28 | $joins = ''; |
| 29 | 29 | foreach (['de', 'fr', 'nl', 'es', 'pl', 'it', 'ru'] as $languageKey) { |
| 30 | - $joins .= "\n".' LEFT JOIN sys_trans_text ' . $languageKey . ' ON ' . $languageKey . '.trans_id = source.trans_id AND ' . $languageKey . '.lang = "' . $languageKey . '" '; |
|
| 30 | + $joins .= "\n" . ' LEFT JOIN sys_trans_text ' . $languageKey . ' ON ' . $languageKey . '.trans_id = source.trans_id AND ' . $languageKey . '.lang = "' . $languageKey . '" '; |
|
| 31 | 31 | $select .= ', ' . $languageKey . '.text as ' . $languageKey . ' '; |
| 32 | 32 | } |
| 33 | 33 | |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$GLOBALS['rootpath'] = __DIR__.'/../'; |
|
| 3 | +$GLOBALS['rootpath'] = __DIR__ . '/../'; |
|
| 4 | 4 | |
| 5 | 5 | require_once __DIR__ . '/../vendor/autoload.php'; |
| 6 | 6 | |
| 7 | -require_once __DIR__ .'/../vendor/opencaching/okapi/okapi/index.php'; |
|
| 7 | +require_once __DIR__ . '/../vendor/opencaching/okapi/okapi/index.php'; |
|
@@ -140,19 +140,19 @@ discard block |
||
| 140 | 140 | $gpxTimeFormat = 'Y-m-d\TH:i:s\Z'; |
| 141 | 141 | |
| 142 | 142 | $gpxStatus[0] = 'available="False" archived="False"'; // other (unavailable, not archived) |
| 143 | - $gpxStatus[1] = 'available="True" archived="False"'; // available, not archived |
|
| 143 | + $gpxStatus[1] = 'available="True" archived="False"'; // available, not archived |
|
| 144 | 144 | $gpxStatus[2] = 'available="False" archived="False"'; // unavailable, not archived |
| 145 | - $gpxStatus[3] = 'available="False" archived="True"'; // unavailable, archived |
|
| 146 | - $gpxStatus[6] = 'available="False" archived="True"'; // locked, visible |
|
| 145 | + $gpxStatus[3] = 'available="False" archived="True"'; // unavailable, archived |
|
| 146 | + $gpxStatus[6] = 'available="False" archived="True"'; // locked, visible |
|
| 147 | 147 | |
| 148 | 148 | $gpxContainer[1] = 'Other'; |
| 149 | 149 | $gpxContainer[2] = 'Micro'; |
| 150 | 150 | $gpxContainer[3] = 'Small'; |
| 151 | 151 | $gpxContainer[4] = 'Regular'; |
| 152 | 152 | $gpxContainer[5] = 'Large'; |
| 153 | - $gpxContainer[6] = 'Large'; // very large |
|
| 154 | - $gpxContainer[7] = 'Virtual'; // no container |
|
| 155 | - $gpxContainer[8] = 'Micro'; // nano |
|
| 153 | + $gpxContainer[6] = 'Large'; // very large |
|
| 154 | + $gpxContainer[7] = 'Virtual'; // no container |
|
| 155 | + $gpxContainer[8] = 'Micro'; // nano |
|
| 156 | 156 | |
| 157 | 157 | $gpxOcSize[1] = 'Other'; |
| 158 | 158 | $gpxOcSize[2] = 'Micro'; |
@@ -169,10 +169,10 @@ discard block |
||
| 169 | 169 | $gpxType[4] = 'Virtual Cache'; |
| 170 | 170 | $gpxType[5] = 'Webcam Cache'; |
| 171 | 171 | $gpxType[6] = 'Event Cache'; |
| 172 | - $gpxType[7] = 'Unknown Cache'; // quiz cache |
|
| 173 | - $gpxType[8] = 'Unknown Cache'; // maths/physics cache |
|
| 174 | - $gpxType[9] = 'Unknown Cache'; // moving cache |
|
| 175 | - $gpxType[10] = 'Traditional Cache'; // drive-in cache |
|
| 172 | + $gpxType[7] = 'Unknown Cache'; // quiz cache |
|
| 173 | + $gpxType[8] = 'Unknown Cache'; // maths/physics cache |
|
| 174 | + $gpxType[9] = 'Unknown Cache'; // moving cache |
|
| 175 | + $gpxType[10] = 'Traditional Cache'; // drive-in cache |
|
| 176 | 176 | |
| 177 | 177 | $gpxOcType[1] = 'Other Cache'; |
| 178 | 178 | $gpxOcType[2] = 'Traditional Cache'; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | $gpxOcType[5] = 'Webcam Cache'; |
| 182 | 182 | $gpxOcType[6] = 'Event Cache'; |
| 183 | 183 | $gpxOcType[7] = 'Quiz Cache'; |
| 184 | - $gpxOcType[8] = 'Quiz Cache'; // maths/physics cache |
|
| 184 | + $gpxOcType[8] = 'Quiz Cache'; // maths/physics cache |
|
| 185 | 185 | $gpxOcType[9] = 'Moving Cache'; |
| 186 | 186 | $gpxOcType[10] = 'Traditional Cache'; // drive-in cache |
| 187 | 187 | |
@@ -194,8 +194,8 @@ discard block |
||
| 194 | 194 | $gpxLogType[9] = 'Archive'; |
| 195 | 195 | $gpxLogType[10] = 'Owner Maintenance'; |
| 196 | 196 | $gpxLogType[11] = 'Temporarily Disable Listing'; |
| 197 | - $gpxLogType[13] = 'Archive'; // locked |
|
| 198 | - $gpxLogType[14] = 'Archive'; // locked/invisible |
|
| 197 | + $gpxLogType[13] = 'Archive'; // locked |
|
| 198 | + $gpxLogType[14] = 'Archive'; // locked/invisible |
|
| 199 | 199 | |
| 200 | 200 | $gpxSymNormal = 'Geocache'; |
| 201 | 201 | $gpxSymFound = 'Geocache Found'; |
@@ -524,9 +524,9 @@ discard block |
||
| 524 | 524 | $thisline = mb_ereg_replace('{oc_logs}', $oc_logentries, $thisline); |
| 525 | 525 | |
| 526 | 526 | // attributes |
| 527 | - $addAttributes = [-1]; // dummy |
|
| 527 | + $addAttributes = [-1]; // dummy |
|
| 528 | 528 | if ($r['type'] == 10) { // Drive-in |
| 529 | - $addAttributes[] = 24; // near the car / park and grab |
|
| 529 | + $addAttributes[] = 24; // near the car / park and grab |
|
| 530 | 530 | } |
| 531 | 531 | $rsAttributes = sql_slave( |
| 532 | 532 | " |
@@ -631,7 +631,7 @@ discard block |
||
| 631 | 631 | $thiswp = mb_ereg_replace('{type}', text_xmlentities($wp_typename), $thiswp); |
| 632 | 632 | $thiswp = mb_ereg_replace('{parent}', $r['waypoint'], $thiswp); |
| 633 | 633 | $thiswp = mb_ereg_replace('{cacheid}', $r['cacheid'], $thiswp); |
| 634 | - $waypoints .= $thiswp. "\n"; |
|
| 634 | + $waypoints .= $thiswp . "\n"; |
|
| 635 | 635 | ++$n; |
| 636 | 636 | } |
| 637 | 637 | |