@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $config->set( |
| 64 | 64 | 'HTML.ForbiddenElements', |
| 65 | 65 | [ |
| 66 | - 'basefont', // workaround for HTMLPurifier bug, which allows this in the <body> |
|
| 66 | + 'basefont', // workaround for HTMLPurifier bug, which allows this in the <body> |
|
| 67 | 67 | ] |
| 68 | 68 | ); |
| 69 | 69 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | // add attributes |
| 99 | 99 | $def->addAttribute('a', 'rel', 'CDATA'); |
| 100 | 100 | $def->addAttribute('img', 'usemap', 'CDATA'); |
| 101 | - $def->addAttribute('map', 'name', 'CDATA'); // workaround for HTMLPurifer bug |
|
| 101 | + $def->addAttribute('map', 'name', 'CDATA'); // workaround for HTMLPurifer bug |
|
| 102 | 102 | |
| 103 | 103 | // create parent object with config |
| 104 | 104 | parent::__construct($config); |
@@ -13,10 +13,10 @@ |
||
| 13 | 13 | $tpl->name = 'usertops'; |
| 14 | 14 | $tpl->menuitem = MNU_CACHES_USERTOPS; |
| 15 | 15 | |
| 16 | -$userId = (int) isset($_REQUEST['userid']) ? $_REQUEST['userid']: 0; |
|
| 16 | +$userId = (int)isset($_REQUEST['userid']) ? $_REQUEST['userid'] : 0; |
|
| 17 | 17 | $ocOnly = isset($_REQUEST['oconly']) && $_REQUEST['oconly']; |
| 18 | 18 | |
| 19 | -$sUsername = $connection->fetchColumn('SELECT `username` FROM `user` WHERE `user_id` = :userId',['userId' => $userId]); |
|
| 19 | +$sUsername = $connection->fetchColumn('SELECT `username` FROM `user` WHERE `user_id` = :userId', ['userId' => $userId]); |
|
| 20 | 20 | if ($sUsername == null) { |
| 21 | 21 | $tpl->error(ERROR_USER_NOT_EXISTS); |
| 22 | 22 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | $jpegQuality = 80; |
| 12 | 12 | $fontFile = __DIR__ . '/resource2/' . $opt['template']['style'] . '/fonts/dejavu/ttf/DejaVuSans.ttf'; |
| 13 | 13 | |
| 14 | -$userId = isset($_REQUEST['userid']) ? (int) $_REQUEST['userid'] : 0; |
|
| 14 | +$userId = isset($_REQUEST['userid']) ? (int)$_REQUEST['userid'] : 0; |
|
| 15 | 15 | $lang = isset($_REQUEST['lang']) ? mb_strtoupper($_REQUEST['lang']) : $opt['template']['locale']; |
| 16 | 16 | |
| 17 | 17 | if (!isset($opt['locale'][$lang])) { |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | $connection = AppKernel::Container()->get(Connection::class); |
| 23 | 23 | |
| 24 | 24 | $fileName = __DIR__ . '/images/statpics/statpic' . $userId . $lang . '.jpg'; |
| 25 | -$userStatisticPicture = (int) $connection->createQueryBuilder() |
|
| 25 | +$userStatisticPicture = (int)$connection->createQueryBuilder() |
|
| 26 | 26 | ->select('COUNT(*)') |
| 27 | 27 | ->from('user_statpic') |
| 28 | 28 | ->where('user_id = :userId') |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | |
| 49 | 49 | if (is_array($userData)) { |
| 50 | 50 | $username = $userData['username']; |
| 51 | - $found = (int) $userData['found']; |
|
| 52 | - $hidden = (int) $userData['hidden']; |
|
| 53 | - $logo = (int) $userData['statpic_logo']; |
|
| 51 | + $found = (int)$userData['found']; |
|
| 52 | + $hidden = (int)$userData['hidden']; |
|
| 53 | + $logo = (int)$userData['statpic_logo']; |
|
| 54 | 54 | $logoText = $userData['statpic_text']; |
| 55 | 55 | |
| 56 | 56 | $textCounterStatistic = $translate->t('Finds: %1 Hidden: %2', '', '', 0, '', 0, $lang); |
@@ -92,6 +92,9 @@ |
||
| 92 | 92 | return $returnValue; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | + /** |
|
| 96 | + * @param boolean $showall |
|
| 97 | + */ |
|
| 95 | 98 | public function getRS($selectedId, $showall) |
| 96 | 99 | { |
| 97 | 100 | if ($showall != false) { |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public function isDefault($id) |
| 27 | 27 | { |
| 28 | - $isDefault = (int) sql_value( |
|
| 28 | + $isDefault = (int)sql_value( |
|
| 29 | 29 | "SELECT COUNT(*) FROM `countries_list_default` WHERE `lang`='&1' AND `show`='&2'", |
| 30 | 30 | 0, |
| 31 | 31 | $this->locale, |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | self::$aLabels[$name] = unserialize($serialized); |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $name |
|
| 169 | + */ |
|
| 167 | 170 | public static function getLabels($name) |
| 168 | 171 | { |
| 169 | 172 | if (isset(self::$aLabels[$name])) { |
@@ -173,6 +176,9 @@ discard block |
||
| 173 | 176 | return false; |
| 174 | 177 | } |
| 175 | 178 | |
| 179 | + /** |
|
| 180 | + * @param string $name |
|
| 181 | + */ |
|
| 176 | 182 | public static function getLabelValue($name, $id) |
| 177 | 183 | { |
| 178 | 184 | if (isset(self::$aLabels[$name])) { |
@@ -122,12 +122,19 @@ |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | |
| 125 | +/** |
|
| 126 | + * @param integer $cache_id |
|
| 127 | + * @param integer $old_logtype |
|
| 128 | + */ |
|
| 125 | 129 | function logtype_ok($cache_id, $logtype_id, $old_logtype, $statusLogs = true) |
| 126 | 130 | { |
| 127 | 131 | return in_array($logtype_id, get_cache_log_types($cache_id, $old_logtype, $statusLogs)); |
| 128 | 132 | } |
| 129 | 133 | |
| 130 | 134 | |
| 135 | +/** |
|
| 136 | + * @param integer $cache_id |
|
| 137 | + */ |
|
| 131 | 138 | function teamcomment_allowed($cache_id, $logtype_id, $old_teamcomment = false) |
| 132 | 139 | { |
| 133 | 140 | global $login, $opt; |
@@ -9,6 +9,9 @@ |
||
| 9 | 9 | |
| 10 | 10 | public $reUser; |
| 11 | 11 | |
| 12 | + /** |
|
| 13 | + * @param integer $nNewUserId |
|
| 14 | + */ |
|
| 12 | 15 | public function __construct($nNewUserId) |
| 13 | 16 | { |
| 14 | 17 | $this->reUser = new rowEditor('user'); |
@@ -27,6 +27,10 @@ |
||
| 27 | 27 | return $aItems; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | +/** |
|
| 31 | + * @param integer $parentId |
|
| 32 | + * @param integer $sublevel |
|
| 33 | + */ |
|
| 30 | 34 | function pAppendSites($parentId, $viewall, $sublevel, &$aItems) |
| 31 | 35 | { |
| 32 | 36 | global $opt; |
@@ -22,6 +22,10 @@ |
||
| 22 | 22 | $this->longitude = $longitude; |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param boolean $latHem |
|
| 27 | + * @param boolean $lonHem |
|
| 28 | + */ |
|
| 25 | 29 | public static function fromHemDegMin($latHem, $latDeg, $latMin, $lonHem, $lonDeg, $lonMin) |
| 26 | 30 | { |
| 27 | 31 | $latitude = self::hemDegMinToFloat($latHem, $latDeg, $latMin); |