Passed
Pull Request — master (#585)
by
unknown
17:41
created
htdocs/modules/qrcode/include/qrrender.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  */
22 22
 
23 23
 // this is located in include, otherwise normal/anon users do not have authority to run
24
-include dirname(dirname(dirname(__DIR__))) . '/mainfile.php';
24
+include dirname(dirname(dirname(__DIR__))).'/mainfile.php';
25 25
 
26 26
 $xoops = Xoops::getInstance();
27 27
 $xoops->logger()->quiet();
@@ -69,11 +69,11 @@  discard block
 block discarded – undo
69 69
 }
70 70
 
71 71
 $mimetype = \Xoops\Core\MimeTypes::findType('png');
72
-$expires = 60*60*24*15; // seconds, minutes, hours, days
73
-header("Cache-Control: public, max-age=" . $expires);
74
-header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expires) . ' GMT');
72
+$expires = 60 * 60 * 24 * 15; // seconds, minutes, hours, days
73
+header("Cache-Control: public, max-age=".$expires);
74
+header('Expires: '.gmdate('D, d M Y H:i:s', time() + $expires).' GMT');
75 75
 //header('Last-Modified: ' . gmdate('D, d M Y H:i:s T', $mtime));
76
-header('Content-type: ' . $mimetype);
76
+header('Content-type: '.$mimetype);
77 77
 echo $qrData;
78 78
 exit;
79 79
 
Please login to merge, or discard this patch.
htdocs/modules/qrcode/class/QrcodeProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $xoops = \Xoops::getInstance();
65 65
         $params = array(
66
-            'text' => (string) $qrText,
66
+            'text' => (string)$qrText,
67 67
         );
68 68
         $url = $xoops->buildUrl($xoops->url($this->renderScript), $params);
69 69
         return $url;
Please login to merge, or discard this patch.
htdocs/modules/monolog/admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-include_once __DIR__ . '/admin_header.php';
20
+include_once __DIR__.'/admin_header.php';
21 21
 
22 22
 $moduleAdmin = new \Xoops\Module\Admin();
23 23
 $moduleAdmin->displayNavigation('about.php');
24 24
 $moduleAdmin->displayAbout(true);
25 25
 
26
-include_once __DIR__ . '/admin_footer.php';
26
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/monolog/admin/menu.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,22 +17,22 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-$adminmenu=array();
20
+$adminmenu = array();
21 21
 
22 22
 $adminmenu[] = array(
23
-    'title'	=> _MI_MONOLOG_ADMENU1 ,
24
-    'link'	=> 'admin/index.php' ,
23
+    'title'	=> _MI_MONOLOG_ADMENU1,
24
+    'link'	=> 'admin/index.php',
25 25
     'icon'	=> 'home.png'
26
-) ;
26
+);
27 27
 
28 28
 $adminmenu[] = array(
29
-    'title'	=> _MI_MONOLOG_ADMENU2 ,
30
-    'link'	=> 'admin/about.php' ,
29
+    'title'	=> _MI_MONOLOG_ADMENU2,
30
+    'link'	=> 'admin/about.php',
31 31
     'icon'	=> 'about.png'
32
-) ;
32
+);
33 33
 
34 34
 $adminmenu[] = array(
35
-    'title'	=> _MI_MONOLOG_ADMENU3 ,
36
-    'link'	=> 'admin/permissions.php' ,
35
+    'title'	=> _MI_MONOLOG_ADMENU3,
36
+    'link'	=> 'admin/permissions.php',
37 37
     'icon'	=> 'permissions.png'
38
-) ;
38
+);
Please login to merge, or discard this patch.
htdocs/modules/monolog/admin/permissions.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 use Xmf\Module\Helper;
22 22
 use Xmf\Module\Helper\Permission;
23 23
 
24
-include_once __DIR__ . '/admin_header.php';
24
+include_once __DIR__.'/admin_header.php';
25 25
 
26 26
 $moduleAdmin = new \Xoops\Module\Admin();
27 27
 $moduleAdmin->displayNavigation('permissions.php');
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 $permHelper = new Permission();
31 31
 if ($permHelper) {
32 32
     // this is the name and item we are going to work with
33
-    $gperm_name='use_monolog';
34
-    $gperm_itemid=0;
33
+    $gperm_name = 'use_monolog';
34
+    $gperm_itemid = 0;
35 35
 
36 36
     // if this is a post operation get our variables
37
-    if ('POST'===Request::getMethod()) {
38
-        $name=$permHelper->defaultFieldName($gperm_name, $gperm_itemid);
39
-        $groups=Request::getVar($name, array(), 'POST');
37
+    if ('POST' === Request::getMethod()) {
38
+        $name = $permHelper->defaultFieldName($gperm_name, $gperm_itemid);
39
+        $groups = Request::getVar($name, array(), 'POST');
40 40
         $permHelper->savePermissionForItem($gperm_name, $gperm_itemid, $groups);
41 41
         echo $xoops->alert('success', _MA_MONOLOG_FORM_PROCESSED, _MA_MONOLOG_PERMISSION_FORM);
42 42
     }
@@ -56,4 +56,4 @@  discard block
 block discarded – undo
56 56
     echo $form->render();
57 57
 }
58 58
 
59
-include_once __DIR__ . '/admin_footer.php';
59
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/monolog/admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,6 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
20
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21 21
 $xoops = Xoops::getInstance();
22 22
 $xoops->header();
Please login to merge, or discard this patch.
htdocs/modules/monolog/admin/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-include_once __DIR__ . '/admin_header.php';
20
+include_once __DIR__.'/admin_header.php';
21 21
 
22 22
 $moduleAdmin = new \Xoops\Module\Admin();
23 23
 $moduleAdmin->displayNavigation('index.php');
@@ -25,4 +25,4 @@  discard block
 block discarded – undo
25 25
 $moduleAdmin->addConfigBoxLine($path, 'folder');
26 26
 $moduleAdmin->displayIndex();
27 27
 
28
-include_once __DIR__ . '/admin_footer.php';
28
+include_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
htdocs/modules/monolog/xoops_version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     'description' => '',
155 155
     'formtype'    => 'textbox',
156 156
     'valuetype'   => 'text',
157
-    'default'     => \XoopsBaseConfig::get('var-path') . '/logs/xoops_monolog.log',
157
+    'default'     => \XoopsBaseConfig::get('var-path').'/logs/xoops_monolog.log',
158 158
     'options'     => array(),
159 159
 );
160 160
 
Please login to merge, or discard this patch.
htdocs/modules/monolog/preloads/preload.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $path = dirname(__DIR__);
96 96
         XoopsLoad::addMap(array(
97
-            'monologlogger' => $path . '/class/monologlogger.php',
97
+            'monologlogger' => $path.'/class/monologlogger.php',
98 98
         ));
99 99
     }
100 100
 
@@ -110,13 +110,13 @@  discard block
 block discarded – undo
110 110
         $cache = \Xoops::getInstance()->cache();
111 111
         $key = 'system/module/configs/monolog';
112 112
 
113
-        self::$configs=array();
113
+        self::$configs = array();
114 114
         self::$configs['monolog_enable'] = false;
115
-        self::$configs['monolog_default_configs']=true;
115
+        self::$configs['monolog_default_configs'] = true;
116 116
 
117 117
         // we will not regenerate this on a miss - will wait until auth is complete
118 118
         $monolog_configs = $cache->read($key);
119
-        if ($monolog_configs!==false) {
119
+        if ($monolog_configs !== false) {
120 120
             self::$configs = $monolog_configs;
121 121
         }
122 122
         $logger = MonologLogger::getInstance();
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
     {
309 309
         /* @var $block XoopsBlock */
310 310
         $block = $args[0];
311
-        $isCached= $args[1];
311
+        $isCached = $args[1];
312 312
         $context = array('channel'=>'Blocks', 'cached'=>$isCached, 'cachetime'=>$block->getVar('bcachetime'));
313 313
         MonologLogger::getInstance()->log(LogLevel::INFO, $block->getVar('name'), $context);
314 314
 
@@ -382,8 +382,8 @@  discard block
 block discarded – undo
382 382
             _MD_MONOLOG_MEMORY,
383 383
             sprintf(
384 384
                 _MD_MONOLOG_MEM_USAGE,
385
-                (float) memory_get_usage(true)/1000000,
386
-                (float) memory_get_peak_usage(true)/1000000
385
+                (float)memory_get_usage(true) / 1000000,
386
+                (float)memory_get_peak_usage(true) / 1000000
387 387
             )
388 388
         );
389 389
         $logger->addExtra(
@@ -455,15 +455,15 @@  discard block
 block discarded – undo
455 455
             $cache->delete($key);
456 456
 
457 457
             $helper = \Xoops::getInstance()->getModuleHelper('monolog');
458
-            $configs['monolog_enable'] = (bool) $helper->getConfig('monolog_enable');
459
-            $configs['include_blocks'] = (bool) $helper->getConfig('include_blocks');
460
-            $configs['include_deprecated'] = (bool) $helper->getConfig('include_deprecated');
461
-            $configs['include_extra'] = (bool) $helper->getConfig('include_extra');
462
-            $configs['include_queries'] = (bool) $helper->getConfig('include_queries');
463
-            $configs['include_timers'] = (bool) $helper->getConfig('include_timers');
458
+            $configs['monolog_enable'] = (bool)$helper->getConfig('monolog_enable');
459
+            $configs['include_blocks'] = (bool)$helper->getConfig('include_blocks');
460
+            $configs['include_deprecated'] = (bool)$helper->getConfig('include_deprecated');
461
+            $configs['include_extra'] = (bool)$helper->getConfig('include_extra');
462
+            $configs['include_queries'] = (bool)$helper->getConfig('include_queries');
463
+            $configs['include_timers'] = (bool)$helper->getConfig('include_timers');
464 464
             $configs['logging_threshold'] = $helper->getConfig('logging_threshold');
465 465
             $configs['log_file_path'] = $helper->getConfig('log_file_path');
466
-            $configs['max_versions'] = (int) $helper->getConfig('max_versions');
466
+            $configs['max_versions'] = (int)$helper->getConfig('max_versions');
467 467
 
468 468
             $cache->write($key, $configs);
469 469
         }
Please login to merge, or discard this patch.