Completed
Push — master ( b781ca...7b04d5 )
by Richard
19s
created
htdocs/modules/page/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
 // Metas
66 66
 //description
67
-$xoTheme->addMeta('meta', 'description', strip_tags($helper->getModule()->name()) . ', ' . implode(',', $keywords));
67
+$xoTheme->addMeta('meta', 'description', strip_tags($helper->getModule()->name()).', '.implode(',', $keywords));
68 68
 //keywords
69 69
 $xoTheme->addMeta('meta', 'keywords', implode(',', $keywords));
70 70
 unset($keywords);
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/admin/menu.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@
 block discarded – undo
24 24
 
25 25
 static $xcaptcha_handler;
26 26
 if (!isset($xcaptcha_handler)) {
27
-    include_once dirname(__DIR__) . '/class/xcaptcha.php';
27
+    include_once dirname(__DIR__).'/class/xcaptcha.php';
28 28
     $xcaptcha_handler = new Xcaptcha();
29 29
 }
30 30
 
31 31
 $xoops = Xoops::getInstance();
32 32
 
33
-foreach ( array_keys($xcaptcha_handler->getPluginList()) as $key ) {
33
+foreach (array_keys($xcaptcha_handler->getPluginList()) as $key) {
34 34
     ++$cpt;
35 35
     $xoops->loadLanguage($key, 'xcaptcha');
36 36
 
37
-    $adminmenu[$cpt]['title'] = constant('_MI_XCAPTCHA_ADMENU_' . strtoupper($key) );
38
-    $adminmenu[$cpt]['link'] = 'admin/index.php?type=' . $key;
37
+    $adminmenu[$cpt]['title'] = constant('_MI_XCAPTCHA_ADMENU_'.strtoupper($key));
38
+    $adminmenu[$cpt]['link'] = 'admin/index.php?type='.$key;
39 39
     $adminmenu[$cpt]['icon'] = 'administration.png';
40 40
 }
41 41
 
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/admin/index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-include __DIR__ . '/header.php';
19
+include __DIR__.'/header.php';
20 20
 
21 21
 $xoops = Xoops::getInstance();
22 22
 
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
         } else {
33 33
             if ($xcaptcha_handler->loadPluginHandler($type)) {
34 34
                 $config = $xcaptcha_handler->Pluginhandler->VerifyData();
35
-                $xcaptcha_handler->writeConfig('captcha.config.' . $type, $config);
36
-                $xoops->redirect('index.php?type=' . $type, 5, _AM_XCAPTCHA_SAVED);
35
+                $xcaptcha_handler->writeConfig('captcha.config.'.$type, $config);
36
+                $xoops->redirect('index.php?type='.$type, 5, _AM_XCAPTCHA_SAVED);
37 37
             }
38 38
         }
39 39
         break;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             $admin_page->addInfoBoxLine($form->render());
54 54
         } else {
55 55
             if ($plugin = $xcaptcha_handler->loadPluginHandler($type)) {
56
-                $title = constant('_XCAPTCHA_FORM_' . strtoupper($type));
56
+                $title = constant('_XCAPTCHA_FORM_'.strtoupper($type));
57 57
                 $form = $xoops->getModuleForm($plugin, $type, 'xcaptcha');
58 58
                 $admin_page->addInfoBox($title);
59 59
                 $admin_page->addInfoBoxLine($form->render());
@@ -65,4 +65,4 @@  discard block
 block discarded – undo
65 65
 
66 66
         break;
67 67
 }
68
-include __DIR__ . '/footer.php';
68
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/admin/header.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
  * @version         $Id$
18 18
  */
19 19
 
20
-require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
20
+require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
21 21
 
22 22
 $op = '';
23
-if ( isset( $_POST ) ){
24
-    foreach ( $_POST as $k => $v )  {
23
+if (isset($_POST)) {
24
+    foreach ($_POST as $k => $v) {
25 25
         ${$k} = $v;
26 26
     }
27 27
 }
28
-if ( isset( $_GET ) ){
29
-    foreach ( $_GET as $k => $v )  {
28
+if (isset($_GET)) {
29
+    foreach ($_GET as $k => $v) {
30 30
         ${$k} = $v;
31 31
     }
32 32
 }
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
 $xoops = Xoops::getInstance();
37 37
 $system = System::getInstance();
38 38
 
39
-include_once dirname(__DIR__) . '/class/xcaptcha.php';
39
+include_once dirname(__DIR__).'/class/xcaptcha.php';
40 40
 $xcaptcha_handler = new Xcaptcha();
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/class/xcaptcha.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this->config = $this->loadConfig();
35 35
         $this->plugin_List = $this->getPluginList();
36 36
         $this->plugin_config = $this->loadConfigPlugin();
37
-        $this->xcaptcha_path_plugin = \XoopsBaseConfig::get('root-path') . '/modules/xcaptcha/plugins';
37
+        $this->xcaptcha_path_plugin = \XoopsBaseConfig::get('root-path').'/modules/xcaptcha/plugins';
38 38
     }
39 39
 
40 40
     static function getInstance()
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $ret = array();
73 73
 
74
-        foreach (glob($this->captchaHandler->path_basic . '/config.*.php') as $filename) {
74
+        foreach (glob($this->captchaHandler->path_basic.'/config.*.php') as $filename) {
75 75
             $plugin_List = preg_replace('/(config\.)(.*)(\.php)/', '$2', basename($filename));
76 76
             $ret[$plugin_List] = $plugin_List;
77 77
         }
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
     public function loadPluginHandler($name = null)
106 106
     {
107 107
         $name = empty($name) ? 'text' : $name;
108
-        $class = 'Xcaptcha' . ucfirst($name);
108
+        $class = 'Xcaptcha'.ucfirst($name);
109 109
         $this->Pluginhandler = null;
110
-        if (XoopsLoad::fileExists($file = $this->xcaptcha_path_plugin . '/' . $name . '.php')) {
110
+        if (XoopsLoad::fileExists($file = $this->xcaptcha_path_plugin.'/'.$name.'.php')) {
111 111
             require_once $file;
112 112
             $this->Pluginhandler = new $class($this);
113 113
         }
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/class/form/image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $this->addElement($backtype_form, false);
59 59
 
60 60
         $backnum_form = new Xoops\Form\Select(_XCAPTCHA_BACKGROUND_NUM, 'background_num', $this->config['background_num']);
61
-        for ($i = 10; $i <= 100; $i = $i+10) {
61
+        for ($i = 10; $i <= 100; $i = $i + 10) {
62 62
             $backnum_form->addOption($i, $i);
63 63
         }
64 64
         $this->addElement($backnum_form, false);
Please login to merge, or discard this patch.
htdocs/modules/xcaptcha/class/form/captcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $skipmember->addOption(0, _AM_XCAPTCHA_DISABLE);
48 48
         $this->addElement($skipmember, false);
49 49
 
50
-        $this->addElement(new Xoops\Form\Text(_AM_XCAPTCHA_MAXATTEMPTS, 'maxattempts', 2, 2, $this->config['maxattempts'] ), true);
50
+        $this->addElement(new Xoops\Form\Text(_AM_XCAPTCHA_MAXATTEMPTS, 'maxattempts', 2, 2, $this->config['maxattempts']), true);
51 51
 
52 52
         $this->addElement(new Xoops\Form\Hidden('type', 'config'));
53 53
 
Please login to merge, or discard this patch.
htdocs/modules/xlanguage/admin/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-include __DIR__ . '/header.php';
19
+include __DIR__.'/header.php';
20 20
 
21 21
 switch ($op) {
22 22
 
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
                 } else {
79 79
                     $confirm = $xoops->confirm(array(
80 80
                         'ok' => 1, 'xlanguage_id' => $xlanguage_id, 'op' => 'del'
81
-                    ), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM . "<br /><b><span style='color : Red'> %s </span></b><br /><br />", $lang->getVar('xlanguage_name')));
82
-                    $confirm = '<div class="confirm">' . $confirm . '</div>';
81
+                    ), $_SERVER['REQUEST_URI'], sprintf(_AM_XLANGUAGE_DELETE_CFM."<br /><b><span style='color : Red'> %s </span></b><br /><br />", $lang->getVar('xlanguage_name')));
82
+                    $confirm = '<div class="confirm">'.$confirm.'</div>';
83 83
                     $admin_page->addInfoBox(_MI_XLANGUAGE_DELETE);
84 84
                     $admin_page->addInfoBoxLine($confirm);
85 85
                     $admin_page->displayIndex();
@@ -104,4 +104,4 @@  discard block
 block discarded – undo
104 104
         $admin_page->displayIndex();
105 105
         break;
106 106
 }
107
-include __DIR__ . '/footer.php';
107
+include __DIR__.'/footer.php';
Please login to merge, or discard this patch.
htdocs/modules/xlanguage/admin/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @version         $Id$
17 17
  */
18 18
 
19
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
19
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
20 20
 
21 21
 $op = '';
22 22
 if (isset($_POST)) {
Please login to merge, or discard this patch.