Passed
Push — master ( 829601...ed204a )
by Michael
02:18
created
admin/tools.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 /** @var Admin $adminObject */
25 25
 
26 26
 // Call header
27
-require_once __DIR__ . '/admin_header.php';
27
+require_once __DIR__.'/admin_header.php';
28 28
 // Display Admin header
29 29
 xoops_cp_header();
30 30
 // Define default value
@@ -56,6 +56,6 @@  discard block
 block discarded – undo
56 56
 
57 57
 $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation(basename(__FILE__)));
58 58
 // Call template file
59
-$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH . '/modules/contact/templates/admin/contact_tools.tpl');
59
+$GLOBALS['xoopsTpl']->display(XOOPS_ROOT_PATH.'/modules/contact/templates/admin/contact_tools.tpl');
60 60
 // Call footer
61
-require_once __DIR__ . '/admin_footer.php';
61
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
send.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@  discard block
 block discarded – undo
26 26
 };
27 27
 /** @var ContactHandler $contactHandler */
28 28
 
29
-require_once __DIR__ . '/header.php';
29
+require_once __DIR__.'/header.php';
30 30
 $GLOBALS['xoopsOption']['template_main'] = 'contact_index.tpl';
31 31
 //unset($_SESSION);
32
-require_once XOOPS_ROOT_PATH . '/header.php';
32
+require_once XOOPS_ROOT_PATH.'/header.php';
33 33
 
34 34
 /** @var Helper $helper */
35 35
 $helper = Helper::getInstance();
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 if (!$captcha && $helper->getConfig('recaptchause')) {
48 48
     redirect_header('index.php', 2, _MD_CONTACT_MES_NOCAPTCHA);
49 49
 } else {
50
-    $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret=' . $helper->getConfig('recaptchakey') . '&response=' . $captcha . '&remoteip=' . $_SERVER['REMOTE_ADDR']);
50
+    $response = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$helper->getConfig('recaptchakey').'&response='.$captcha.'&remoteip='.$_SERVER['REMOTE_ADDR']);
51 51
     if (false === $response && $helper->getConfig('recaptchause')) {
52 52
         redirect_header('index.php', 2, _MD_CONTACT_MES_CAPTCHAINCORRECT);
53 53
     } else {
@@ -93,4 +93,4 @@  discard block
 block discarded – undo
93 93
     }
94 94
 }
95 95
 
96
-require_once XOOPS_ROOT_PATH . '/footer.php';
96
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
class/Common/VersionChecks.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
         //check for minimum XOOPS version
41 41
         $currentVer = mb_substr(\XOOPS_VERSION, 6); // get the numeric part of string
42 42
         if (null === $requiredVer) {
43
-            $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string
43
+            $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string
44 44
         }
45 45
         $success = true;
46 46
 
47 47
         if (\version_compare($currentVer, $requiredVer, '<')) {
48 48
             $success = false;
49
-            $module->setErrors(\sprintf(\constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
49
+            $module->setErrors(\sprintf(\constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS'), $requiredVer, $currentVer));
50 50
         }
51 51
 
52 52
         return $success;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         if (false !== $reqVer && '' !== $reqVer) {
79 79
             if (\version_compare($verNum, $reqVer, '<')) {
80
-                $module->setErrors(\sprintf(\constant('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP'), $reqVer, $verNum));
80
+                $module->setErrors(\sprintf(\constant('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP'), $reqVer, $verNum));
81 81
                 $success = false;
82 82
             }
83 83
         }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         $moduleDirName      = \basename(\dirname(__DIR__, 2));
102 102
         $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
103 103
         $update             = '';
104
-        $repository         = 'XoopsModules25x/' . $moduleDirName;
104
+        $repository         = 'XoopsModules25x/'.$moduleDirName;
105 105
         //        $repository         = 'XoopsModules25x/publisher'; //for testing only
106 106
         $ret             = '';
107 107
         $infoReleasesUrl = "https://api.github.com/repos/$repository/releases";
@@ -115,14 +115,14 @@  discard block
 block discarded – undo
115 115
                 if (false === $curlReturn) {
116 116
                     \trigger_error(\curl_error($curlHandle));
117 117
                 } elseif (false !== \mb_strpos($curlReturn, 'Not Found')) {
118
-                    \trigger_error('Repository Not Found: ' . $infoReleasesUrl);
118
+                    \trigger_error('Repository Not Found: '.$infoReleasesUrl);
119 119
                 } else {
120 120
                     $file              = json_decode($curlReturn, false);
121 121
                     $latestVersionLink = \sprintf("https://github.com/$repository/archive/%s.zip", $file ? \reset($file)->tag_name : $default);
122 122
                     $latestVersion     = $file[0]->tag_name;
123 123
                     $prerelease        = $file[0]->prerelease;
124 124
                     if ('master' !== $latestVersionLink) {
125
-                        $update = \constant('CO_' . $moduleDirNameUpper . '_' . 'NEW_VERSION') . $latestVersion;
125
+                        $update = \constant('CO_'.$moduleDirNameUpper.'_'.'NEW_VERSION').$latestVersion;
126 126
                     }
127 127
                     //"PHP-standardized" version
128 128
                     $latestVersion = mb_strtolower($latestVersion);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                         $latestVersion = \str_replace('_', '', mb_strtolower($latestVersion));
131 131
                         $latestVersion = \str_replace('final', '', mb_strtolower($latestVersion));
132 132
                     }
133
-                    $moduleVersion = ($helper->getModule()->getInfo('version') . '_' . $helper->getModule()->getInfo('module_status'));
133
+                    $moduleVersion = ($helper->getModule()->getInfo('version').'_'.$helper->getModule()->getInfo('module_status'));
134 134
                     //"PHP-standardized" version
135 135
                     $moduleVersion = \str_replace(' ', '', mb_strtolower($moduleVersion));
136 136
                     //                    $moduleVersion = '1.0'; //for testing only
Please login to merge, or discard this patch.
ajax.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
  * @author      Trabis <[email protected]>
19 19
  * @author      Hossein Azizabadi (AKA Voltan)
20 20
  */
21
-require_once __DIR__ . '/header.php';
21
+require_once __DIR__.'/header.php';
22 22
 /** @var ContactHandler $contactHandler */
23 23
 
24 24
 if (!empty($_POST)) {
Please login to merge, or discard this patch.