Passed
Pull Request — development (#671)
by Nick
06:47
created
htdocs/src/Oc/Command/OkapiCronjobsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     protected function execute(InputInterface $input, OutputInterface $output)
48 48
     {
49
-        require_once __DIR__.'/../../../okapi/autoload.php';
49
+        require_once __DIR__ . '/../../../okapi/autoload.php';
50 50
         Okapi::execute_prerequest_cronjobs();
51 51
         Okapi::execute_cron5_cronjobs();
52 52
     }
Please login to merge, or discard this patch.
htdocs/ocstats.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,10 +48,10 @@  discard block
 block discarded – undo
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'];
54
-        $logoText = (int) $userData['statpic_text'];
51
+        $found = (int)$userData['found'];
52
+        $hidden = (int)$userData['hidden'];
53
+        $logo = (int)$userData['statpic_logo'];
54
+        $logoText = (int)$userData['statpic_text'];
55 55
 
56 56
         $textCounterStatistic = $translate->t('Finds: %1  Hidden: %2', '', '', 0, '', 0, $lang);
57 57
         $textCounterStatistic = str_replace(['%1', '%2'], [$found, $hidden], $textCounterStatistic);
Please login to merge, or discard this patch.
htdocs/app/AppKernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,6 @@
 block discarded – undo
106 106
      */
107 107
     public static function Container()
108 108
     {
109
-       return self::getInstance()->getContainer();
109
+        return self::getInstance()->getContainer();
110 110
     }
111 111
 }
Please login to merge, or discard this patch.