@@ -54,7 +54,7 @@ |
||
54 | 54 | ] |
55 | 55 | ); |
56 | 56 | |
57 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
57 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
58 | 58 | $data = $event->getData(); |
59 | 59 | $form = $event->getForm(); |
60 | 60 |
@@ -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); |