Passed
Push — master ( 6d3e95...4ad186 )
by Goffy
03:09
created
admin/repositories.php 1 patch
Spacing   +8 added lines, -8 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
 $repoId = Request::getInt('repo_id');
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
         $templateMain = 'wggithub_admin_repositories.tpl';
44 44
         $GLOBALS['xoopsTpl']->assign('navigation', $adminObject->displayNavigation('repositories.php'));
45 45
 
46
-        $autoApproved = (int)$helper->getConfig('autoapproved');
46
+        $autoApproved = (int) $helper->getConfig('autoapproved');
47 47
         $GLOBALS['xoopsTpl']->assign('autoApproved', !$autoApproved);
48
-        $GLOBALS['xoopsTpl']->assign('wggithub_icons_url_16', WGGITHUB_ICONS_URL . '/16');
48
+        $GLOBALS['xoopsTpl']->assign('wggithub_icons_url_16', WGGITHUB_ICONS_URL.'/16');
49 49
 
50 50
         $filterValue = '';
51 51
         $filterStatus = 0;
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
             }
83 83
             // Display Navigation
84 84
             if ($repositoriesCount > $limit) {
85
-                include_once \XOOPS_ROOT_PATH . '/class/pagenav.php';
86
-                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit=' . $limit);
85
+                include_once \XOOPS_ROOT_PATH.'/class/pagenav.php';
86
+                $pagenav = new \XoopsPageNav($repositoriesCount, $limit, $start, 'start', 'op=list&limit='.$limit);
87 87
                 $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav(4));
88 88
             }
89 89
         } else {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $repositoriesObj->setVar('repo_submitter', Request::getInt('repo_submitter', 0));
125 125
         // Insert Data
126 126
         if ($repositoriesHandler->insert($repositoriesObj)) {
127
-            \redirect_header('repositories.php?op=list&start=' . $start . '&limit=' . $limit, 2, \_AM_WGGITHUB_FORM_OK);
127
+            \redirect_header('repositories.php?op=list&start='.$start.'&limit='.$limit, 2, \_AM_WGGITHUB_FORM_OK);
128 128
         }
129 129
         // Get Form
130 130
         $GLOBALS['xoopsTpl']->assign('error', $repositoriesObj->getHtmlErrors());
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
             $repositoriesObj->setVar(Request::getString('field'), Request::getInt('value', 0));
171 171
             // Insert Data
172 172
             if ($repositoriesHandler->insert($repositoriesObj, true)) {
173
-                \redirect_header('repositories.php?op=list&start=' . $start . '&limit=' . $limit, 2, \_AM_WGGITHUB_FORM_OK);
173
+                \redirect_header('repositories.php?op=list&start='.$start.'&limit='.$limit, 2, \_AM_WGGITHUB_FORM_OK);
174 174
             }
175 175
         }
176 176
         break;
177 177
 }
178
-require __DIR__ . '/footer.php';
178
+require __DIR__.'/footer.php';
Please login to merge, or discard this patch.