Passed
Push — master ( bcd4f7...1bf514 )
by Goffy
03:22
created
admin/readmes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use XoopsModules\Wggithub\Constants;
26 26
 use XoopsModules\Wggithub\Common;
27 27
 
28
-require __DIR__ . '/header.php';
28
+require __DIR__.'/header.php';
29 29
 // It recovered the value of argument op in URL$
30 30
 $op = Request::getCmd('op', 'list');
31 31
 // Request rm_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($readmesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($readmesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -137,4 +137,4 @@  discard block
 block discarded – undo
137 137
         }
138 138
         break;
139 139
 }
140
-require __DIR__ . '/footer.php';
140
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/directories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use XoopsModules\Wggithub\Constants;
26 26
 use XoopsModules\Wggithub\Common;
27 27
 
28
-require __DIR__ . '/header.php';
28
+require __DIR__.'/header.php';
29 29
 // It recovered the value of argument op in URL$
30 30
 $op = Request::getCmd('op', 'list');
31 31
 // Request dir_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($directoriesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($directoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -136,4 +136,4 @@  discard block
 block discarded – undo
136 136
         }
137 137
         break;
138 138
 }
139
-require __DIR__ . '/footer.php';
139
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/releases.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use XoopsModules\Wggithub\Constants;
26 26
 use XoopsModules\Wggithub\Common;
27 27
 
28
-require __DIR__ . '/header.php';
28
+require __DIR__.'/header.php';
29 29
 // It recovered the value of argument op in URL$
30 30
 $op = Request::getCmd('op', 'list');
31 31
 // Request rel_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($releasesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($releasesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -138,4 +138,4 @@  discard block
 block discarded – undo
138 138
         }
139 139
         break;
140 140
 }
141
-require __DIR__ . '/footer.php';
141
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/repositories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 use XoopsModules\Wggithub\Constants;
26 26
 use XoopsModules\Wggithub\Common;
27 27
 
28
-require __DIR__ . '/header.php';
28
+require __DIR__.'/header.php';
29 29
 // It recovered the value of argument op in URL$
30 30
 $op = Request::getCmd('op', 'list');
31 31
 // Request repo_id
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
             }
56 56
             // Display Navigation
57 57
             if ($repositoriesCount > $limit) {
58
-                include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
59
-                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
58
+                include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
59
+                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
60 60
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
61 61
             }
62 62
         } else {
@@ -143,4 +143,4 @@  discard block
 block discarded – undo
143 143
         }
144 144
         break;
145 145
 }
146
-require __DIR__ . '/footer.php';
146
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.
admin/header.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
  * @author         Goffy - XOOPS Development Team - Email:<[email protected]> - Website:<https://wedega.com>
21 21
  */
22 22
 
23
-include dirname(__DIR__, 3) . '/include/cp_header.php';
24
-include_once \dirname(__DIR__) . '/include/common.php';
23
+include dirname(__DIR__, 3).'/include/cp_header.php';
24
+include_once \dirname(__DIR__).'/include/common.php';
25 25
 
26
-$sysPathIcon16   = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons16');
27
-$sysPathIcon32   = '../' . $GLOBALS['xoopsModule']->getInfo('sysicons32');
26
+$sysPathIcon16   = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons16');
27
+$sysPathIcon32   = '../'.$GLOBALS['xoopsModule']->getInfo('sysicons32');
28 28
 $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin');
29
-$modPathIcon16   = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons16') . '/';
30
-$modPathIcon32   = WGGITHUB_URL . '/' . $GLOBALS['xoopsModule']->getInfo('modicons32') . '/';
29
+$modPathIcon16   = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons16').'/';
30
+$modPathIcon32   = WGGITHUB_URL.'/'.$GLOBALS['xoopsModule']->getInfo('modicons32').'/';
31 31
 
32 32
 // Get instance of module
33 33
 $helper = \XoopsModules\Wggithub\Helper::getInstance();
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 $myts = MyTextSanitizer::getInstance();
41 41
 // 
42 42
 if (!isset($xoopsTpl) || !\is_object($xoopsTpl)) {
43
-    include_once XOOPS_ROOT_PATH . '/class/template.php';
43
+    include_once XOOPS_ROOT_PATH.'/class/template.php';
44 44
     $xoopsTpl = new \XoopsTpl();
45 45
 }
46 46
 
@@ -64,4 +64,4 @@  discard block
 block discarded – undo
64 64
 $GLOBALS['xoopsTpl']->assign('modPathIcon32', $modPathIcon32);
65 65
 
66 66
 $adminObject = \Xmf\Module\Admin::getInstance();
67
-$style = WGGITHUB_URL . '/assets/css/admin/style.css';
67
+$style = WGGITHUB_URL.'/assets/css/admin/style.css';
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -24,26 +24,26 @@  discard block
 block discarded – undo
24 24
  * return object
25 25
  */
26 26
 
27
-$moduleDirName  = \basename(\dirname(__DIR__));
28
-$moduleDirNameUpper  = \mb_strtoupper($moduleDirName);
29
-return (object)[
30
-    'name'           => \mb_strtoupper($moduleDirName) . ' Module Configurator',
27
+$moduleDirName = \basename(\dirname(__DIR__));
28
+$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
29
+return (object) [
30
+    'name'           => \mb_strtoupper($moduleDirName).' Module Configurator',
31 31
     'paths'          => [
32 32
         'dirname'    => $moduleDirName,
33
-        'admin'      => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
34
-        'modPath'    => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
35
-        'modUrl'     => XOOPS_URL . '/modules/' . $moduleDirName,
36
-        'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
37
-        'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
33
+        'admin'      => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin',
34
+        'modPath'    => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName,
35
+        'modUrl'     => XOOPS_URL.'/modules/'.$moduleDirName,
36
+        'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
37
+        'uploadUrl'  => XOOPS_UPLOAD_URL.'/'.$moduleDirName,
38 38
     ],
39 39
     'uploadFolders'  => [
40
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
40
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName,
41 41
     ],
42 42
     'copyBlankFiles'  => [
43 43
     ],
44 44
     'copyTestFolders'  => [
45
-        [XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/uploads',
46
-        XOOPS_UPLOAD_PATH . '/' . $moduleDirName],
45
+        [XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/uploads',
46
+        XOOPS_UPLOAD_PATH.'/'.$moduleDirName],
47 47
     ],
48 48
     'templateFolders'  => [
49 49
         '/templates/',
@@ -56,5 +56,5 @@  discard block
 block discarded – undo
56 56
     ],
57 57
     'moduleStats'  => [
58 58
     ],
59
-    'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='" . XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . "/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>",
59
+    'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'><img src='".XOOPS_ROOT_PATH.'/modules/'.$moduleDirName."/assets/images/logo/logoModule.png' alt='XOOPS Project'></a>",
60 60
 ];
Please login to merge, or discard this patch.
class/Github/Sanity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function & __get($name)
15 15
     {
16
-        throw new LogicException('Cannot read an undeclared property ' . get_class($this) . "::\$$name.");
16
+        throw new LogicException('Cannot read an undeclared property '.get_class($this)."::\$$name.");
17 17
     }
18 18
 
19 19
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      */
23 23
     public function __set($name, $value)
24 24
     {
25
-        throw new LogicException('Cannot write to an undeclared property ' . get_class($this) . "::\$$name.");
25
+        throw new LogicException('Cannot write to an undeclared property '.get_class($this)."::\$$name.");
26 26
     }
27 27
 
28 28
 }
Please login to merge, or discard this patch.
class/Github/Paginator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
      */
149 149
     public static function parseLink($link, $rel)
150 150
     {
151
-        if (!preg_match('(<([^>]+)>;\s*rel="' . preg_quote($rel) . '")', $link, $match)) {
151
+        if (!preg_match('(<([^>]+)>;\s*rel="'.preg_quote($rel).'")', $link, $match)) {
152 152
             return NULL;
153 153
         }
154 154
 
Please login to merge, or discard this patch.
class/Github/Http/StreamClient.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,15 +47,15 @@  discard block
 block discarded – undo
47 47
         $options = [
48 48
             'http' => [
49 49
                 'method' => $request->getMethod(),
50
-                'header' => implode("\r\n", $headerStr) . "\r\n",
51
-                'follow_location' => 0,  # Github sets the Location header for 201 code too and redirection is not required for us
50
+                'header' => implode("\r\n", $headerStr)."\r\n",
51
+                'follow_location' => 0, # Github sets the Location header for 201 code too and redirection is not required for us
52 52
                 'protocol_version' => 1.1,
53 53
                 'ignore_errors' => TRUE,
54 54
             ],
55 55
             'ssl' => [
56 56
                 'verify_peer' => TRUE,
57
-                'cafile' => realpath(__DIR__ . '/../../ca-chain.crt'),
58
-                'disable_compression' => TRUE,  # Effective since PHP 5.4.13
57
+                'cafile' => realpath(__DIR__.'/../../ca-chain.crt'),
58
+                'disable_compression' => TRUE, # Effective since PHP 5.4.13
59 59
             ],
60 60
         ];
61 61
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $headers = [];
105 105
         foreach ($http_response_header as $header) {
106 106
             if (in_array(substr($header, 0, 1), [' ', "\t"], TRUE)) {
107
-                $headers[$last] .= ' ' . trim($header);  # RFC2616, 2.2
107
+                $headers[$last] .= ' '.trim($header); # RFC2616, 2.2
108 108
             } else {
109 109
                 list($name, $value) = explode(':', $header, 2) + [NULL, NULL];
110 110
                 $headers[$last = trim($name)] = trim($value);
Please login to merge, or discard this patch.