Completed
Push — development ( 047d1c...5a0a2a )
by Thomas
15s
created
htdocs/ocstats.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 $jpegQuality = 80;
10 10
 $fontFile = __DIR__ . '/resource2/' . $opt['template']['style'] . '/fonts/dejavu/ttf/DejaVuSans.ttf';
11 11
 
12
-$userId = isset($_REQUEST['userid']) ? (int) $_REQUEST['userid'] : 0;
12
+$userId = isset($_REQUEST['userid']) ? (int)$_REQUEST['userid'] : 0;
13 13
 $lang = isset($_REQUEST['lang']) ? mb_strtoupper($_REQUEST['lang']) : $opt['template']['locale'];
14 14
 
15 15
 if (!isset($opt['locale'][$lang])) {
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $connection = OcLegacy\Container::get('app.dbal_connection');
21 21
 
22 22
 $fileName = __DIR__ . '/images/statpics/statpic' . $userId . $lang . '.jpg';
23
-$userStatisticPicture = (int) $connection->createQueryBuilder()
23
+$userStatisticPicture = (int)$connection->createQueryBuilder()
24 24
     ->select('COUNT(*)')
25 25
     ->from('user_statpic')
26 26
     ->where('user_id = :userId')
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
 
47 47
     if (is_array($userData)) {
48 48
         $username = $userData['username'];
49
-        $found = (int) $userData['found'];
50
-        $hidden = (int) $userData['hidden'];
51
-        $logo = (int) $userData['statpic_logo'];
52
-        $logoText = (int) $userData['statpic_text'];
49
+        $found = (int)$userData['found'];
50
+        $hidden = (int)$userData['hidden'];
51
+        $logo = (int)$userData['statpic_logo'];
52
+        $logoText = (int)$userData['statpic_text'];
53 53
 
54 54
         $textCounterStatistic = $translate->t('Finds: %1  Hidden: %2', '', '', 0, '', 0, $lang);
55 55
         $textCounterStatistic = str_replace(['%1', '%2'], [$found, $hidden], $textCounterStatistic);
Please login to merge, or discard this patch.