Passed
Pull Request — master (#610)
by Richard
14:27
created
htdocs/modules/page/class/groupperm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
             $criteria->add(new Criteria('gperm_itemid', $content_id));
56 56
             $criteria->add(new Criteria('gperm_modid', $module_id));
57 57
             $criteria->add(new Criteria('gperm_name', 'page_view_item', '='));
58
-            $criteria->add(new Criteria('gperm_groupid', '(' . implode(', ', $groups_delete) . ')', 'IN'));
58
+            $criteria->add(new Criteria('gperm_groupid', '('.implode(', ', $groups_delete).')', 'IN'));
59 59
             if (parent::deleteAll($criteria)) {
60 60
             }
61 61
         }
Please login to merge, or discard this patch.
htdocs/modules/page/class/page_related.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     public function getValues($keys = null, $format = null, $maxDepth = null)
41 41
     {
42 42
         $ret = parent::getValues($keys, $format, $maxDepth);
43
-        $ret['navigation'] = \Xoops\Locale::translate('L_RELATED_NAVIGATION_OPTION' . $this->getVar('related_navigation'), 'page');
43
+        $ret['navigation'] = \Xoops\Locale::translate('L_RELATED_NAVIGATION_OPTION'.$this->getVar('related_navigation'), 'page');
44 44
         $ret['related_links'] = Page::getInstance()->getLinkHandler()->getLinks($this->getVar('related_id'));
45 45
         return $ret;
46 46
     }
Please login to merge, or discard this patch.
htdocs/modules/page/class/form/page_content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         //title
51 51
         $tab1->addElement(new Xoops\Form\Text(XoopsLocale::TITLE, 'content_title', 12, 255, $obj->getVar('content_title'), ''), true);
52 52
         // editor
53
-        $editor_configs=array();
53
+        $editor_configs = array();
54 54
         $editor_configs['editor'] = $helper->getConfig('page_editor');
55 55
         $editor_configs['rows'] = 12;
56 56
         $editor_configs['cols'] = 12;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $checkbox = new Xoops\Form\Checkbox(XoopsLocale::OPTIONS, 'content_option', $content_option, false);
95 95
         $checkbox->setDescription(PageLocale::CONTENT_OPTIONS_DSC);
96 96
         foreach ($obj->options as $option) {
97
-            $checkbox->addOption($option, \Xoops\Locale::translate('L_CONTENT_DO' . strtoupper($option), 'page'));
97
+            $checkbox->addOption($option, \Xoops\Locale::translate('L_CONTENT_DO'.strtoupper($option), 'page'));
98 98
         }
99 99
         $tab3->addElement($checkbox);
100 100
         //maindisplay
Please login to merge, or discard this patch.
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.