Completed
Push — master ( 5061b6...0c98dc )
by Richard
12s
created
htdocs/modules/qrcode/admin/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * @since     2.6.0
19 19
  * @author    Mage Grégory (AKA Mage)
20 20
  */
21
-include __DIR__ . '/header.php';
21
+include __DIR__.'/header.php';
22 22
 
23 23
 $xoops = Xoops::getInstance();
24 24
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 if ($bg < $fg) { // inverse (light cells on dark backgound) does not work on many readers
40 40
     $contrastMessage = _MI_QRCODE_CONTRAST_INVERSE;
41 41
     $contrastStatus = 'error';
42
-} elseif (($bg-$fg) < 100) {
42
+} elseif (($bg - $fg) < 100) {
43 43
     $contrastMessage = _MI_QRCODE_CONTRAST_ERROR;
44 44
     $contrastStatus = 'error';
45 45
 }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     $rgb = normalizeColor($color);
61 61
     //$brightness = ($rgb['r']*299 + $rgb['g']*587 + $rgb['b']*114) / 1000;
62 62
     // luminosity is L = 0.2126 * R + 0.7152 * G + 0.0722.
63
-    $brightness = ($rgb['r']*0.2126 + $rgb['g']*0.7152 + $rgb['b']*0.0722);
63
+    $brightness = ($rgb['r'] * 0.2126 + $rgb['g'] * 0.7152 + $rgb['b'] * 0.0722);
64 64
     return $brightness + 0.00001; // no zero
65 65
 }
66 66
 
Please login to merge, or discard this patch.
htdocs/modules/qrcode/admin/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,4 +18,4 @@
 block discarded – undo
18 18
  * @since     2.6.0
19 19
  * @author    Mage Grégory (AKA Mage)
20 20
  */
21
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
21
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
Please login to merge, or discard this patch.
htdocs/modules/qrcode/preloads/preload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public static function eventCoreServiceLocateQrcode(Provider $provider)
35 35
     {
36 36
         if (is_a($provider, '\Xoops\Core\Service\Provider')) {
37
-            $path = dirname(__DIR__) . '/class/QrcodeProvider.php';
37
+            $path = dirname(__DIR__).'/class/QrcodeProvider.php';
38 38
             require $path;
39 39
             $object = new QrcodeProvider();
40 40
             $provider->register($object);
Please login to merge, or discard this patch.
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.