Completed
Push — master ( 2a36d1...bf34f3 )
by Michael
03:21
created
class/form/elements/smartformuploadelement.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,8 +28,8 @@
 block discarded – undo
28 28
      */
29 29
     public function render()
30 30
     {
31
-        return "<input type='hidden' name='MAX_FILE_SIZE' value='" . $this->getMaxFileSize() . "'>
32
-                <input type='file' name='" . $this->getName() . "' id='" . $this->getName() . "'" . $this->getExtra() . ">
33
-                <input type='hidden' name='smart_upload_file[]' id='smart_upload_file[]' value='" . $this->getName() . "'>";
31
+        return "<input type='hidden' name='MAX_FILE_SIZE' value='".$this->getMaxFileSize()."'>
32
+                <input type='file' name='" . $this->getName()."' id='".$this->getName()."'".$this->getExtra().">
33
+                <input type='hidden' name='smart_upload_file[]' id='smart_upload_file[]' value='" . $this->getName()."'>";
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
class/form/elements/smartformparentcategoryelement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $categoryHandler = xoops_getModuleHandler('category', $object->handler->_moduleName);
25 25
         $categories      = $categoryHandler->getObjects($criteria);
26 26
 
27
-        require_once XOOPS_ROOT_PATH . '/class/tree.php';
27
+        require_once XOOPS_ROOT_PATH.'/class/tree.php';
28 28
         $mytree = new XoopsObjectTree($categories, 'categoryid', 'parentid');
29 29
         parent::__construct($object->vars[$key]['form_caption'], $key, $object->getVar($key, 'e'));
30 30
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         if ($key > 0) {
57 57
             $value       = $tree->tree[$key]['obj']->getVar($tree->_myId);
58
-            $ret[$key]   = $prefix_curr . $tree->tree[$key]['obj']->getVar($fieldName);
58
+            $ret[$key]   = $prefix_curr.$tree->tree[$key]['obj']->getVar($fieldName);
59 59
             $prefix_curr .= '-';
60 60
         }
61 61
         if (isset($tree->tree[$key]['child']) && !empty($tree->tree[$key]['child'])) {
Please login to merge, or discard this patch.
class/form/elements/smartformhidden.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
         if (is_array($this->getValue())) {
33 33
             $ret = '';
34 34
             foreach ($this->getValue() as $value) {
35
-                $ret .= "<input type='hidden' name='" . $this->getName() . "[]' id='" . $this->getName() . "' value='" . $value . "'>\n";
35
+                $ret .= "<input type='hidden' name='".$this->getName()."[]' id='".$this->getName()."' value='".$value."'>\n";
36 36
             }
37 37
         } else {
38
-            $ret = "<input type='hidden' name='" . $this->getName() . "' id='" . $this->getName() . "' value='" . $this->getValue() . "'>";
38
+            $ret = "<input type='hidden' name='".$this->getName()."' id='".$this->getName()."' value='".$this->getValue()."'>";
39 39
         }
40 40
 
41 41
         return $ret;
Please login to merge, or discard this patch.
class/smartuploader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,9 +69,9 @@
 block discarded – undo
69 69
  * @link    http://smartfactory.ca The SmartFactory
70 70
  * @package SmartObject
71 71
  */
72
-mt_srand((double)microtime() * 1000000);
72
+mt_srand((double) microtime() * 1000000);
73 73
 
74
-require_once XOOPS_ROOT_PATH . '/class/uploader.php';
74
+require_once XOOPS_ROOT_PATH.'/class/uploader.php';
75 75
 
76 76
 /**
77 77
  * Class SmartUploader
Please login to merge, or discard this patch.
class/smartobjectsingleview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
      */
104 104
     public function render($fetchOnly = false, $debug = false)
105 105
     {
106
-        require_once XOOPS_ROOT_PATH . '/class/template.php';
106
+        require_once XOOPS_ROOT_PATH.'/class/template.php';
107 107
 
108 108
         $this->_tpl             = new XoopsTpl();
109 109
         $vars                   = $this->_object->vars;
Please login to merge, or discard this patch.
class/smarthookhandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     public function executeHook($hook_name)
38 38
     {
39 39
         $lower_hook_name = strtolower($hook_name);
40
-        $filename        = SMARTOBJECT_ROOT_PATH . 'include/custom_code/' . $lower_hook_name . '.php';
40
+        $filename        = SMARTOBJECT_ROOT_PATH.'include/custom_code/'.$lower_hook_name.'.php';
41 41
         if (file_exists($filename)) {
42 42
             require_once $filename;
43
-            $function = 'smarthook_' . $lower_hook_name;
43
+            $function = 'smarthook_'.$lower_hook_name;
44 44
             if (function_exists($function)) {
45 45
                 $function();
46 46
             }
Please login to merge, or discard this patch.
class/smartobjecttreetable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * @subpackage SmartObjectTable
10 10
  */
11 11
 
12
-require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjecttable.php';
12
+require_once SMARTOBJECT_ROOT_PATH.'class/smartobjecttable.php';
13 13
 
14 14
 /**
15 15
  * SmartObjectTreeTable class
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
                 $space .= '&nbsp;';
100 100
             }
101 101
 
102
-            $aColumn['value'] = $space . $value;
102
+            $aColumn['value'] = $space.$value;
103 103
             $aColumn['class'] = $class;
104 104
             $aColumn['width'] = $column->getWidth();
105 105
             $aColumn['align'] = $column->getAlign();
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
             }
124 124
         }
125 125
 
126
-        require_once SMARTOBJECT_ROOT_PATH . 'class/smartobjectcontroller.php';
126
+        require_once SMARTOBJECT_ROOT_PATH.'class/smartobjectcontroller.php';
127 127
         $controller = new SmartObjectController($this->_objectHandler);
128 128
 
129 129
         if (in_array('edit', $this->_actions)) {
Please login to merge, or discard this patch.
class/smartprinterfriendly.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
          * @todo make the output XHTML compliant
43 43
          */
44 44
 
45
-        require_once XOOPS_ROOT_PATH . '/class/template.php';
45
+        require_once XOOPS_ROOT_PATH.'/class/template.php';
46 46
 
47 47
         $this->_tpl = new XoopsTpl();
48 48
 
Please login to merge, or discard this patch.
blocks/addto.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  discard block
 block discarded – undo
8 8
  */
9 9
 function smartobject_addto_show($options)
10 10
 {
11
-    require_once XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php';
12
-    require_once SMARTOBJECT_ROOT_PATH . 'class/smartaddto.php';
11
+    require_once XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php';
12
+    require_once SMARTOBJECT_ROOT_PATH.'class/smartaddto.php';
13 13
     $smartaddto = new SmartAddTo($options[0]);
14 14
     $block      = $smartaddto->renderForBlock();
15 15
 
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
  */
23 23
 function smartobject_addto_edit($options)
24 24
 {
25
-    require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
25
+    require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
26 26
 
27 27
     $form = '';
28 28
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     $layout_select->addOption(1, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION1);
32 32
     $layout_select->addOption(2, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION2);
33 33
     $layout_select->addOption(3, _MB_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION3);
34
-    $form .= $layout_select->getCaption() . ' ' . $layout_select->render() . '<br>';
34
+    $form .= $layout_select->getCaption().' '.$layout_select->render().'<br>';
35 35
 
36 36
     return $form;
37 37
 }
Please login to merge, or discard this patch.