Completed
Push — master ( bf34f3...88111b )
by Michael
03:08
created
admin/tag.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     $tagObj = $smartobjectTagHandler->get($tagid);
22 22
 
23 23
     if ($tagObj->isNew()) {
24
-        $breadcrumb            = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_CREATE;
24
+        $breadcrumb            = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_CREATE;
25 25
         $title                 = _AM_SOBJECT_TAG_CREATE;
26 26
         $info                  = _AM_SOBJECT_TAG_CREATE_INFO;
27 27
         $collaps_name          = 'tagcreate';
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     //$tagObj->stripMultilanguageFields();
31 31
     } else {
32 32
         if ($language) {
33
-            $breadcrumb            = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_TAG_EDITING_LANGUAGE;
33
+            $breadcrumb            = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_TAG_EDITING_LANGUAGE;
34 34
             $title                 = _AM_SOBJECT_TAG_EDIT_LANGUAGE;
35 35
             $info                  = _AM_SOBJECT_TAG_EDIT_LANGUAGE_INFO;
36 36
             $collaps_name          = 'tageditlanguage';
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $submit_button_caption = null;
39 39
             $tagObj->makeNonMLFieldReadOnly();
40 40
         } else {
41
-            $breadcrumb            = _AM_SOBJECT_TAGS . ' > ' . _AM_SOBJECT_EDITING;
41
+            $breadcrumb            = _AM_SOBJECT_TAGS.' > '._AM_SOBJECT_EDITING;
42 42
             $title                 = _AM_SOBJECT_TAG_EDIT;
43 43
             $info                  = _AM_SOBJECT_TAG_EDIT_INFO;
44 44
             $collaps_name          = 'tagedit';
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     smart_close_collapsable($collaps_name);
58 58
 }
59 59
 
60
-require_once __DIR__ . '/admin_header.php';
61
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
62
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttag.php';
60
+require_once __DIR__.'/admin_header.php';
61
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
62
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttag.php';
63 63
 
64 64
 $smartobjectTagHandler = xoops_getModuleHandler('tag');
65 65
 
@@ -79,22 +79,22 @@  discard block
 block discarded – undo
79 79
 switch ($op) {
80 80
 
81 81
     case 'del':
82
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
82
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
83 83
         $controller = new SmartObjectController($smartobjectTagHandler);
84 84
         $controller->handleObjectDeletion(_AM_SOBJECT_TAG_DELETE_CONFIRM);
85 85
 
86 86
         break;
87 87
 
88 88
     case 'addtag':
89
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
89
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
90 90
         $controller = new SmartObjectController($smartobjectTagHandler);
91 91
         $tagObj     = $controller->storeSmartObject();
92 92
         if ($tagObj->hasError()) {
93
-            redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
93
+            redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors());
94 94
         }
95 95
 
96 96
         if ($tagObj->hasError()) {
97
-            redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR . $tagObj->getHtmlErrors());
97
+            redirect_header($smart_previous_page, 3, _CO_SOBJECT_SAVE_ERROR.$tagObj->getHtmlErrors());
98 98
         } else {
99 99
             redirect_header(smart_get_page_before_form(), 3, _CO_SOBJECT_SAVE_SUCCESS);
100 100
         }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         smart_collapsableBar('tags', _AM_SOBJECT_TAGS, _AM_SOBJECT_TAGS_INFO);
116 116
 
117
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
117
+        require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
118 118
         $objectTable = new SmartObjectTable($smartobjectTagHandler, false, ['delete']);
119 119
         $objectTable->addColumn(new SmartObjectColumn('name'));
120 120
         $objectTable->addColumn(new SmartObjectColumn('language'));
@@ -141,4 +141,4 @@  discard block
 block discarded – undo
141 141
 
142 142
 //smart_modFooter();
143 143
 //xoops_cp_footer();
144
-require_once __DIR__ . '/admin_footer.php';
144
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/customtag.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
     }
45 45
 }
46 46
 
47
-require_once __DIR__ . '/admin_header.php';
47
+require_once __DIR__.'/admin_header.php';
48 48
 smart_loadLanguageFile('smartobject', 'customtag');
49 49
 
50
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
51
-require_once SMARTOBJECT_ROOT_PATH . 'class/customtag.php';
50
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
51
+require_once SMARTOBJECT_ROOT_PATH.'class/customtag.php';
52 52
 $smartobjectCustomtagHandler = xoops_getModuleHandler('customtag');
53 53
 
54 54
 $adminObject = \Xmf\Module\Admin::getInstance();
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 switch ($op) {
66 66
     case 'mod':
67 67
 
68
-        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
68
+        $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0;
69 69
 
70 70
         smart_xoops_cp_header();
71 71
         $adminObject->displayNavigation(basename(__FILE__));
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     case 'clone':
77 77
 
78
-        $customtagid = isset($_GET['customtagid']) ? (int)$_GET['customtagid'] : 0;
78
+        $customtagid = isset($_GET['customtagid']) ? (int) $_GET['customtagid'] : 0;
79 79
 
80 80
         smart_xoops_cp_header();
81 81
         $adminObject->displayNavigation(basename(__FILE__));
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
         break;
85 85
 
86 86
     case 'addcustomtag':
87
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
87
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
88 88
         $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectCustomtagHandler);
89 89
         $controller->storeFromDefaultForm(_AM_SOBJECT_CUSTOMTAGS_CREATED, _AM_SOBJECT_CUSTOMTAGS_MODIFIED);
90 90
         break;
91 91
 
92 92
     case 'del':
93 93
 
94
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
94
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
95 95
         $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectCustomtagHandler);
96 96
         $controller->handleObjectDeletion();
97 97
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
         smart_collapsableBar('createdcustomtags', _AM_SOBJECT_CUSTOMTAGS, _AM_SOBJECT_CUSTOMTAGS_DSC);
110 110
 
111
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
111
+        require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
112 112
         $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectCustomtagHandler);
113 113
         $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('name', 'left', 150, 'getCustomtagName'));
114 114
         $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('description', 'left'));
@@ -157,4 +157,4 @@  discard block
 block discarded – undo
157 157
 
158 158
 //smart_modFooter();
159 159
 //xoops_cp_footer();
160
-require_once __DIR__ . '/admin_footer.php';
160
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/adsense.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@  discard block
 block discarded – undo
40 40
     }
41 41
 }
42 42
 
43
-require_once __DIR__ . '/admin_header.php';
44
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
45
-require_once SMARTOBJECT_ROOT_PATH . 'class/adsense.php';
43
+require_once __DIR__.'/admin_header.php';
44
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
45
+require_once SMARTOBJECT_ROOT_PATH.'class/adsense.php';
46 46
 $smartobjectAdsenseHandler = xoops_getModuleHandler('adsense');
47 47
 smart_loadLanguageFile('smartobject', 'adsense');
48 48
 $adminObject = \Xmf\Module\Admin::getInstance();
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 switch ($op) {
60 60
     case 'mod':
61 61
 
62
-        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
62
+        $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0;
63 63
 
64 64
         smart_xoops_cp_header();
65 65
         $adminObject->displayNavigation(basename(__FILE__));
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     case 'clone':
71 71
 
72
-        $adsenseid = isset($_GET['adsenseid']) ? (int)$_GET['adsenseid'] : 0;
72
+        $adsenseid = isset($_GET['adsenseid']) ? (int) $_GET['adsenseid'] : 0;
73 73
 
74 74
         smart_xoops_cp_header();
75 75
         $adminObject->displayNavigation(basename(__FILE__));
@@ -78,20 +78,20 @@  discard block
 block discarded – undo
78 78
         break;
79 79
 
80 80
     case 'addadsense':
81
-        if (@require_once SMARTOBJECT_ROOT_PATH . 'include/captcha/captcha.php') {
81
+        if (@require_once SMARTOBJECT_ROOT_PATH.'include/captcha/captcha.php') {
82 82
             $xoopsCaptcha = XoopsCaptcha::getInstance();
83 83
             if (!$xoopsCaptcha->verify()) {
84 84
                 redirect_header('javascript:history.go(-1);', 3, $xoopsCaptcha->getMessage());
85 85
             }
86 86
         }
87
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
87
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
88 88
         $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectAdsenseHandler);
89 89
         $controller->storeFromDefaultForm(_AM_SOBJECT_ADSENSES_CREATED, _AM_SOBJECT_ADSENSES_MODIFIED);
90 90
         break;
91 91
 
92 92
     case 'del':
93 93
 
94
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
94
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
95 95
         $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectAdsenseHandler);
96 96
         $controller->handleObjectDeletion();
97 97
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         smart_collapsableBar('createdadsenses', _AM_SOBJECT_ADSENSES, _AM_SOBJECT_ADSENSES_DSC);
108 108
 
109
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
109
+        require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
110 110
         $objectTable = new XoopsModules\Smartobject\SmartObjectTable($smartobjectAdsenseHandler);
111 111
         $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn('description', 'left'));
112 112
         $objectTable->addColumn(new XoopsModules\Smartobject\SmartObjectColumn(_AM_SOBJECT_ADSENSE_TAG, 'center', 200, 'getXoopsCode'));
@@ -153,4 +153,4 @@  discard block
 block discarded – undo
153 153
 
154 154
 //smart_modFooter();
155 155
 //xoops_cp_footer();
156
-require_once __DIR__ . '/admin_footer.php';
156
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team
18 18
  */
19 19
 
20
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/admin_header.php';
21 21
 xoops_cp_header();
22 22
 
23 23
 $adminObject->displayNavigation(basename(__FILE__));
24 24
 $adminObject::setPaypal('[email protected]');
25 25
 $adminObject->displayAbout(false);
26 26
 
27
-require_once __DIR__ . '/admin_footer.php';
27
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 $adminmenu[] = [
21 21
     'title' => _MI_SOBJECT_HOME,
22 22
     'link'  => 'admin/index.php',
23
-    'icon'  => $pathIcon32 . '/home.png',
23
+    'icon'  => $pathIcon32.'/home.png',
24 24
 ];
25 25
 
26 26
 //$adminmenu[] = [
@@ -32,37 +32,37 @@  discard block
 block discarded – undo
32 32
 $adminmenu[] = [
33 33
     'title' => _MI_SOBJECT_SENT_LINKS,
34 34
     'link'  => 'admin/link.php',
35
-    'icon'  => $pathIcon32 . '/addlink.png',
35
+    'icon'  => $pathIcon32.'/addlink.png',
36 36
 ];
37 37
 
38 38
 $adminmenu[] = [
39 39
     'title' => _MI_SOBJECT_TAGS,
40 40
     'link'  => 'admin/customtag.php',
41
-    'icon'  => $pathIcon32 . '/identity.png',
41
+    'icon'  => $pathIcon32.'/identity.png',
42 42
 ];
43 43
 
44 44
 $adminmenu[] = [
45 45
     'title' => _MI_SOBJECT_ADSENSES,
46 46
     'link'  => 'admin/adsense.php',
47
-    'icon'  => $pathIcon32 . '/alert.png',
47
+    'icon'  => $pathIcon32.'/alert.png',
48 48
 ];
49 49
 
50 50
 $adminmenu[] = [
51 51
     'title' => _MI_SOBJECT_RATINGS,
52 52
     'link'  => 'admin/rating.php',
53
-    'icon'  => $pathIcon32 . '/stats.png',
53
+    'icon'  => $pathIcon32.'/stats.png',
54 54
 ];
55 55
 
56 56
 $adminmenu[] = [
57 57
     'title' => _MI_SOBJECT_ABOUT,
58 58
     'link'  => 'admin/about.php',
59
-    'icon'  => $pathIcon32 . '/about.png',
59
+    'icon'  => $pathIcon32.'/about.png',
60 60
 ];
61 61
 
62 62
 //---------------------------------
63 63
 
64 64
 if (!defined('SMARTOBJECT_ROOT_PATH')) {
65
-    require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php';
65
+    require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php';
66 66
 }
67 67
 
68 68
 $smartobjectConfig = smart_getModuleConfig('smartobject');
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     $adminmenu[] = [
72 72
         'title' => _MI_SOBJECT_CURRENCIES,
73 73
         'link'  => 'admin/currency.php',
74
-        'icon'  => $pathIcon32 . '/cash_stack.png',
74
+        'icon'  => $pathIcon32.'/cash_stack.png',
75 75
     ];
76 76
 }
77 77
 
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
     //  $headermenu[$i]['link'] = '../../system/admin.php?fct=preferences&op=showmod&mod=' . $xoopsModule->getVar('mid');
84 84
     $mid = $xoopsModule->getVar('mid');
85 85
     if (defined('XOOPS_CUBE_LEGACY')) {
86
-        $link_pref = XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid;
86
+        $link_pref = XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid;
87 87
     } else {
88
-        $link_pref = XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid;
88
+        $link_pref = XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid;
89 89
     }
90 90
     $headermenu[$i]['link'] = $link_pref;
91 91
     // -----
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
     //  $headermenu[$i]['link'] = XOOPS_URL . "/modules/system/admin.php?fct=modulesadmin&op=update&module=" . $xoopsModule->getVar('dirname');
95 95
     $dirname = $xoopsModule->getVar('dirname');
96 96
     if (defined('XOOPS_CUBE_LEGACY')) {
97
-        $link_module = XOOPS_URL . '/modules/legacy/admin/index.php?action=ModuleUpdate&dirname=' . $dirname;
97
+        $link_module = XOOPS_URL.'/modules/legacy/admin/index.php?action=ModuleUpdate&dirname='.$dirname;
98 98
     } else {
99
-        $link_module = XOOPS_URL . '/modules/system/admin.php?fct=modulesadmin&op=update&module=' . $dirname;
99
+        $link_module = XOOPS_URL.'/modules/system/admin.php?fct=modulesadmin&op=update&module='.$dirname;
100 100
     }
101 101
     $headermenu[$i]['link'] = $link_module;
102 102
     // -----
Please login to merge, or discard this patch.
sendlink.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -9,17 +9,17 @@  discard block
 block discarded – undo
9 9
 
10 10
 use XoopsModules\Smartobject\SmartObjectController;
11 11
 
12
-require_once __DIR__ . '/header.php';
13
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartloader.php';
14
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectlink.php';
15
-require_once XOOPS_ROOT_PATH . '/class/template.php';
12
+require_once __DIR__.'/header.php';
13
+require_once SMARTOBJECT_ROOT_PATH.'class/smartloader.php';
14
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectlink.php';
15
+require_once XOOPS_ROOT_PATH.'/class/template.php';
16 16
 
17 17
 $xoopsTpl                = new \XoopsTpl();
18 18
 $myts                    = \MyTextSanitizer::getInstance();
19 19
 $xoopsConfig['sitename'] = $myts->displayTarea($xoopsConfig['sitename']);
20 20
 
21 21
 xoops_header(false);
22
-echo smart_get_css_link(SMARTOBJECT_URL . 'assets/css/module.css');
22
+echo smart_get_css_link(SMARTOBJECT_URL.'assets/css/module.css');
23 23
 echo '</head><body>';
24 24
 
25 25
 $smartobjectLinkHandler = xoops_getModuleHandler('link', 'smartobject');
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 switch ($op) {
31 31
     case 'sendlink':
32 32
 
33
-        require_once XOOPS_ROOT_PATH . '/modules/smartobject/class/smartobjectcontroller.php';
33
+        require_once XOOPS_ROOT_PATH.'/modules/smartobject/class/smartobjectcontroller.php';
34 34
         $controller = new XoopsModules\Smartobject\SmartObjectController($smartobjectLinkHandler);
35 35
 
36 36
         $linkObj = $controller->storeSmartObject();
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
         $xoopsMailer = xoops_getMailer();
44 44
         $xoopsMailer->useMail();
45
-        $xoopsMailer->setTemplateDir('language/' . $xoopsConfig['language'] . '/mail_template');
45
+        $xoopsMailer->setTemplateDir('language/'.$xoopsConfig['language'].'/mail_template');
46 46
 
47 47
         $xoopsMailer->setTemplate('sendlink.tpl');
48 48
         $xoopsMailer->assign('X_SITENAME', $xoopsConfig['sitename']);
49 49
         $xoopsMailer->assign('TO_NAME', $linkObj->getVar('to_name'));
50 50
         $xoopsMailer->assign('FROM_NAME', $linkObj->getVar('from_name'));
51
-        $xoopsMailer->assign('SITEURL', XOOPS_URL . '/');
51
+        $xoopsMailer->assign('SITEURL', XOOPS_URL.'/');
52 52
         $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']);
53 53
         $xoopsMailer->assign('MESSAGE', $_POST['body']);
54 54
         $xoopsMailer->setToEmails($linkObj->getVar('to_email'));
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $xoopsMailer->setSubject(sprintf(_CO_SOBJECT_SUBJECT_DEFAULT, $myts->oopsStripSlashesGPC($xoopsConfig['sitename'])));
58 58
 
59 59
         if (!$xoopsMailer->send(true)) {
60
-            $xoopsTpl->assign('send_error', sprintf(_CO_SOBJECT_SEND_ERROR, $xoopsConfig['adminmail']) . '<br>' . $xoopsMailer->getErrors(true));
60
+            $xoopsTpl->assign('send_error', sprintf(_CO_SOBJECT_SEND_ERROR, $xoopsConfig['adminmail']).'<br>'.$xoopsMailer->getErrors(true));
61 61
         } else {
62 62
             $xoopsTpl->assign('send_success', _CO_SOBJECT_SEND_SUCCESS);
63 63
         }
Please login to merge, or discard this patch.
preloads/autoloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -3,12 +3,12 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * @see http://www.php-fig.org/psr/psr-4/examples/
5 5
  */
6
-spl_autoload_register(function ($class) {
6
+spl_autoload_register(function($class) {
7 7
     // project-specific namespace prefix
8
-    $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__)));
8
+    $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__)));
9 9
 
10 10
     // base directory for the namespace prefix
11
-    $base_dir = __DIR__ . '/../class/';
11
+    $base_dir = __DIR__.'/../class/';
12 12
 
13 13
     // does the class use the namespace prefix?
14 14
     $len      = strlen($prefix);
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     // replace the namespace prefix with the base directory, replace namespace
24 24
     // separators with directory separators in the relative class name, append
25 25
     // with .php
26
-    $file           = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
26
+    $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
27 27
 
28 28
     // if the file exists, require it
29 29
     if (file_exists($file)) {
Please login to merge, or discard this patch.
preloads/core.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
      */
29 29
     public static function eventCoreIncludeCommonEnd($args)
30 30
     {
31
-        include __DIR__ . '/autoloader.php';
31
+        include __DIR__.'/autoloader.php';
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
class/SmartobjectRating.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,14 +117,14 @@
 block discarded – undo
117 117
      */
118 118
     public function getItemValue()
119 119
     {
120
-        $moduleUrl      = XOOPS_URL . '/modules/' . $this->getVar('dirname', 'n') . '/';
120
+        $moduleUrl      = XOOPS_URL.'/modules/'.$this->getVar('dirname', 'n').'/';
121 121
         $plugin         = $this->getModulePlugin();
122 122
         $pluginItemInfo = $plugin->getItemInfo($this->getVar('item'));
123 123
         if (!$pluginItemInfo) {
124 124
             return '';
125 125
         }
126 126
         $itemPath = sprintf($pluginItemInfo['url'], $this->getVar('itemid'));
127
-        $ret      = '<a href="' . $moduleUrl . $itemPath . '">' . $pluginItemInfo['caption'] . '</a>';
127
+        $ret      = '<a href="'.$moduleUrl.$itemPath.'">'.$pluginItemInfo['caption'].'</a>';
128 128
 
129 129
         return $ret;
130 130
     }
Please login to merge, or discard this patch.