Passed
Push — master ( bcd4f7...1bf514 )
by Goffy
03:22
created
blocks/repositories.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 use XoopsModules\Wggithub\Helper;
25 25
 use XoopsModules\Wggithub\Constants;
26 26
 
27
-include_once XOOPS_ROOT_PATH . '/modules/wggithub/include/common.php';
27
+include_once XOOPS_ROOT_PATH.'/modules/wggithub/include/common.php';
28 28
 
29 29
 /**
30 30
  * Function show block
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
  */
34 34
 function b_wggithub_repositories_show($options)
35 35
 {
36
-    include_once XOOPS_ROOT_PATH . '/modules/wggithub/class/repositories.php';
36
+    include_once XOOPS_ROOT_PATH.'/modules/wggithub/class/repositories.php';
37 37
     $myts = MyTextSanitizer::getInstance();
38 38
     $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL);
39 39
     $block       = [];
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
  */
99 99
 function b_wggithub_repositories_edit($options)
100 100
 {
101
-    include_once XOOPS_ROOT_PATH . '/modules/wggithub/class/repositories.php';
101
+    include_once XOOPS_ROOT_PATH.'/modules/wggithub/class/repositories.php';
102 102
     $helper = Helper::getInstance();
103 103
     $repositoriesHandler = $helper->getHandler('Repositories');
104 104
     $GLOBALS['xoopsTpl']->assign('wggithub_upload_url', WGGITHUB_UPLOAD_URL);
105 105
     $form = _MB_WGGITHUB_DISPLAY;
106 106
     $form .= "<input type='hidden' name='options[0]' value='".$options[0]."' />";
107
-    $form .= "<input type='text' name='options[1]' size='5' maxlength='255' value='" . $options[1] . "' />&nbsp;<br>";
108
-    $form .= _MB_WGGITHUB_TITLE_LENGTH . " : <input type='text' name='options[2]' size='5' maxlength='255' value='" . $options[2] . "' /><br><br>";
107
+    $form .= "<input type='text' name='options[1]' size='5' maxlength='255' value='".$options[1]."' />&nbsp;<br>";
108
+    $form .= _MB_WGGITHUB_TITLE_LENGTH." : <input type='text' name='options[2]' size='5' maxlength='255' value='".$options[2]."' /><br><br>";
109 109
     \array_shift($options);
110 110
     \array_shift($options);
111 111
     \array_shift($options);
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
     $crRepositories->setOrder('ASC');
117 117
     $repositoriesAll = $repositoriesHandler->getAll($crRepositories);
118 118
     unset($crRepositories);
119
-    $form .= _MB_WGGITHUB_REPOSITORIES_TO_DISPLAY . "<br><select name='options[]' multiple='multiple' size='5'>";
120
-    $form .= "<option value='0' " . (\in_array(0, $options) == false ? '' : "selected='selected'") . '>' . _MB_WGGITHUB_ALL_REPOSITORIES . '</option>';
119
+    $form .= _MB_WGGITHUB_REPOSITORIES_TO_DISPLAY."<br><select name='options[]' multiple='multiple' size='5'>";
120
+    $form .= "<option value='0' ".(\in_array(0, $options) == false ? '' : "selected='selected'").'>'._MB_WGGITHUB_ALL_REPOSITORIES.'</option>';
121 121
     foreach (\array_keys($repositoriesAll) as $i) {
122 122
         $repo_id = $repositoriesAll[$i]->getVar('repo_id');
123
-        $form .= "<option value='" . $repo_id . "' " . (\in_array($repo_id, $options) == false ? '' : "selected='selected'") . '>' . $repositoriesAll[$i]->getVar('repo_name') . '</option>';
123
+        $form .= "<option value='".$repo_id."' ".(\in_array($repo_id, $options) == false ? '' : "selected='selected'").'>'.$repositoriesAll[$i]->getVar('repo_name').'</option>';
124 124
     }
125 125
     $form .= '</select>';
126 126
 
Please login to merge, or discard this patch.