Passed
Pull Request — master (#610)
by Richard
14:27
created
htdocs/modules/gravatars/language/english/modinfo.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @author          Richard Griffith <[email protected]>
16 16
  */
17 17
 
18
-define('_MI_GRAVATARS_NAME','Gravatars');
19
-define('_MI_GRAVATARS_DESC','Use gravatar.com for system avatars');
18
+define('_MI_GRAVATARS_NAME', 'Gravatars');
19
+define('_MI_GRAVATARS_DESC', 'Use gravatar.com for system avatars');
20 20
 
21 21
 //define('_MI_GRAVATARS_CONF_X','Option');
Please login to merge, or discard this patch.
htdocs/modules/gravatars/class/GravatarsProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,15 +37,15 @@  discard block
 block discarded – undo
37 37
      */
38 38
     private static function getGravatar($email)
39 39
     {
40
-        $s = 80;   // Size in pixels, defaults to 80px [ 1 - 2048 ]
40
+        $s = 80; // Size in pixels, defaults to 80px [ 1 - 2048 ]
41 41
         $d = 'mm'; // Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
42
-        $r = 'g';  // Maximum rating (inclusive) [ g | pg | r | x ]
42
+        $r = 'g'; // Maximum rating (inclusive) [ g | pg | r | x ]
43 43
         if ($helper = Xoops\Module\Helper::getHelper('gravatars')) {
44 44
             $v = $helper->getConfig('pixel_size');
45 45
             $s = (empty($v)) ? $s : $v;
46 46
             $v = $helper->getConfig('default_imageset');
47 47
             $d = (empty($v)) ? $d : $v;
48
-            $d = ($d==='default') ? '' : $d; // preferences does not like empty string
48
+            $d = ($d === 'default') ? '' : $d; // preferences does not like empty string
49 49
             $v = $helper->getConfig('max_rating');
50 50
             $r = (empty($v)) ? $r : $v;
51 51
         }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     private function getUserById($uid)
73 73
     {
74
-        $user = \Xoops::getInstance()->getHandlerMember()->getUser((int) $uid);
74
+        $user = \Xoops::getInstance()->getHandlerMember()->getUser((int)$uid);
75 75
         return (is_object($user)) ? $user : null;
76 76
     }
77 77
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 $noInfo = false;
122 122
             }
123 123
         } elseif (is_scalar($userinfo)) {
124
-            $user = $this->getUserById((int) $userinfo);
124
+            $user = $this->getUserById((int)$userinfo);
125 125
             if (is_object($user) && ($user instanceof XoopsUser)) {
126 126
                 $email = $user->getVar('email', 'e');
127 127
                 $response->setValue(self::getGravatar($email));
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         if (is_object($userinfo)) {
149 149
             if ($userinfo instanceof XoopsUser) {
150 150
                 $email = $userinfo->getVar('email', 'e');
151
-                $link = 'http://www.gravatar.com/' . md5(strtolower(trim($email)));
151
+                $link = 'http://www.gravatar.com/'.md5(strtolower(trim($email)));
152 152
                 $response->setValue($link);
153 153
                 $noInfo = false;
154 154
             }
Please login to merge, or discard this patch.
htdocs/modules/qrcode/admin/about.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 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
 $xoops = Xoops::getInstance();
23 23
 $xoops->header();
24 24
 $aboutAdmin = new \Xoops\Module\Admin();
Please login to merge, or discard this patch.
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.