@@ -35,24 +35,24 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | public function render() |
| 37 | 37 | { |
| 38 | - $ret = "<input type='text' name='" . |
|
| 39 | - $this->getName() . |
|
| 40 | - "' id='" . |
|
| 41 | - $this->getName() . |
|
| 42 | - "' size='" . |
|
| 43 | - $this->getSize() . |
|
| 44 | - "' maxlength='" . |
|
| 45 | - $this->getMaxlength() . |
|
| 46 | - "' value='" . |
|
| 47 | - $this->getValue() . |
|
| 48 | - "'" . |
|
| 49 | - $this->getExtra() . |
|
| 38 | + $ret = "<input type='text' name='". |
|
| 39 | + $this->getName(). |
|
| 40 | + "' id='". |
|
| 41 | + $this->getName(). |
|
| 42 | + "' size='". |
|
| 43 | + $this->getSize(). |
|
| 44 | + "' maxlength='". |
|
| 45 | + $this->getMaxlength(). |
|
| 46 | + "' value='". |
|
| 47 | + $this->getValue(). |
|
| 48 | + "'". |
|
| 49 | + $this->getExtra(). |
|
| 50 | 50 | ' />'; |
| 51 | 51 | |
| 52 | - $ret .= ' <div class="smartobject_autocomplete_hint" id="smartobject_autocomplete_hint' . $this->getName() . '"></div> |
|
| 52 | + $ret .= ' <div class="smartobject_autocomplete_hint" id="smartobject_autocomplete_hint'.$this->getName().'"></div> |
|
| 53 | 53 | |
| 54 | 54 | <script type="text/javascript"> |
| 55 | - new Ajax.Autocompleter("' . $this->getName() . '","smartobject_autocomplete_hint' . $this->getName() . '","' . $this->_include_file . '?key=' . $this->getName() . '"); |
|
| 55 | + new Ajax.Autocompleter("' . $this->getName().'","smartobject_autocomplete_hint'.$this->getName().'","'.$this->_include_file.'?key='.$this->getName().'"); |
|
| 56 | 56 | </script>'; |
| 57 | 57 | |
| 58 | 58 | return $ret; |
@@ -25,23 +25,23 @@ |
||
| 25 | 25 | $objectArray['image'] = str_replace('{XOOPS_URL}', XOOPS_URL, $objectArray['image']); |
| 26 | 26 | |
| 27 | 27 | if ($object->getVar($key) !== '' && (0 === strpos($object->getVar($key), 'http') || 0 === strpos($object->getVar($key), '{XOOPS_URL}'))) { |
| 28 | - $this->addElement(new XoopsFormLabel('', "<img src='" . str_replace('{XOOPS_URL}', XOOPS_URL, $object->getVar($key)) . "' alt='' /><br><br>")); |
|
| 28 | + $this->addElement(new XoopsFormLabel('', "<img src='".str_replace('{XOOPS_URL}', XOOPS_URL, $object->getVar($key))."' alt='' /><br><br>")); |
|
| 29 | 29 | } elseif ($object->getVar($key) !== '') { |
| 30 | - $this->addElement(new XoopsFormLabel('', "<img src='" . $object_imageurl . $object->getVar($key) . "' alt='' /><br><br>")); |
|
| 30 | + $this->addElement(new XoopsFormLabel('', "<img src='".$object_imageurl.$object->getVar($key)."' alt='' /><br><br>")); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | - include_once SMARTOBJECT_ROOT_PATH . 'class/form/elements/smartformfileuploadelement.php'; |
|
| 33 | + include_once SMARTOBJECT_ROOT_PATH.'class/form/elements/smartformfileuploadelement.php'; |
|
| 34 | 34 | $this->addElement(new SmartFormFileUploadElement($object, $key)); |
| 35 | 35 | |
| 36 | - $this->addElement(new XoopsFormLabel('<div style="height: 10px; padding-top: 8px; font-size: 80%;">' . _CO_SOBJECT_URL_FILE_DSC . '</div>', '')); |
|
| 37 | - include_once SMARTOBJECT_ROOT_PATH . 'class/form/elements/smartformtextelement.php'; |
|
| 38 | - include_once SMARTOBJECT_ROOT_PATH . 'class/form/elements/smartformcheckelement.php'; |
|
| 36 | + $this->addElement(new XoopsFormLabel('<div style="height: 10px; padding-top: 8px; font-size: 80%;">'._CO_SOBJECT_URL_FILE_DSC.'</div>', '')); |
|
| 37 | + include_once SMARTOBJECT_ROOT_PATH.'class/form/elements/smartformtextelement.php'; |
|
| 38 | + include_once SMARTOBJECT_ROOT_PATH.'class/form/elements/smartformcheckelement.php'; |
|
| 39 | 39 | |
| 40 | - $this->addElement(new XoopsFormLabel('', '<br>' . _CO_SOBJECT_URL_FILE)); |
|
| 41 | - $this->addElement(new SmartFormTextElement($object, 'url_' . $key)); |
|
| 40 | + $this->addElement(new XoopsFormLabel('', '<br>'._CO_SOBJECT_URL_FILE)); |
|
| 41 | + $this->addElement(new SmartFormTextElement($object, 'url_'.$key)); |
|
| 42 | 42 | $this->addElement(new XoopsFormLabel('', '<br><br>')); |
| 43 | - $delete_check = new SmartFormCheckElement('', 'delete_' . $key); |
|
| 44 | - $delete_check->addOption(1, '<span style="color:red;">' . _CO_SOBJECT_DELETE . '</span>'); |
|
| 43 | + $delete_check = new SmartFormCheckElement('', 'delete_'.$key); |
|
| 44 | + $delete_check->addOption(1, '<span style="color:red;">'._CO_SOBJECT_DELETE.'</span>'); |
|
| 45 | 45 | $this->addElement($delete_check); |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -50,12 +50,12 @@ |
||
| 50 | 50 | $var = $object->vars[$key]; |
| 51 | 51 | $control = $object->controls[$key]; |
| 52 | 52 | |
| 53 | - parent::__construct($var['form_caption'] . '<br>' . _US_TYPEPASSTWICE, ' ', $key . '_password_tray'); |
|
| 53 | + parent::__construct($var['form_caption'].'<br>'._US_TYPEPASSTWICE, ' ', $key.'_password_tray'); |
|
| 54 | 54 | |
| 55 | - $password_box1 = new XoopsFormPassword('', $key . '1', 10, 32); |
|
| 55 | + $password_box1 = new XoopsFormPassword('', $key.'1', 10, 32); |
|
| 56 | 56 | $this->addElement($password_box1); |
| 57 | 57 | |
| 58 | - $password_box2 = new XoopsFormPassword('', $key . '2', 10, 32); |
|
| 58 | + $password_box2 = new XoopsFormPassword('', $key.'2', 10, 32); |
|
| 59 | 59 | $this->addElement($password_box2); |
| 60 | 60 | } |
| 61 | 61 | } |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | smart_loadCommonLanguageFile(); |
| 12 | 12 | |
| 13 | -include_once(SMARTOBJECT_ROOT_PATH . 'class/currency.php'); |
|
| 13 | +include_once(SMARTOBJECT_ROOT_PATH.'class/currency.php'); |
|
| 14 | 14 | |
| 15 | 15 | static $smartobjectCurrenciesObj, $smartobjectCurrenciesArray, $smartobjectDefaultCurrency; |
| 16 | 16 | |
@@ -9,10 +9,10 @@ discard block |
||
| 9 | 9 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
| 10 | 10 | |
| 11 | 11 | if (!defined('SMARTOBJECT_URL')) { |
| 12 | - include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'); |
|
| 12 | + include_once(XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'); |
|
| 13 | 13 | } |
| 14 | -include_once(SMARTOBJECT_ROOT_PATH . 'class/rating.php'); |
|
| 15 | -include_once(SMARTOBJECT_ROOT_PATH . 'include/functions.php'); |
|
| 14 | +include_once(SMARTOBJECT_ROOT_PATH.'class/rating.php'); |
|
| 15 | +include_once(SMARTOBJECT_ROOT_PATH.'include/functions.php'); |
|
| 16 | 16 | |
| 17 | 17 | smart_loadLanguageFile('smartobject', 'rating'); |
| 18 | 18 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | // Retreive the SmartObject Rating plugin for the current module if it exists |
| 22 | 22 | $smartobjectRatingHandler = xoops_getModuleHandler('rating', 'smartobject'); |
| 23 | 23 | $smartobjectPluginHandler = new SmartPluginHandler(); |
| 24 | -$pluginObj = $smartobjectPluginHandler->getPlugin($module_dirname); |
|
| 24 | +$pluginObj = $smartobjectPluginHandler->getPlugin($module_dirname); |
|
| 25 | 25 | if ($pluginObj) { |
| 26 | 26 | $rating_item = $pluginObj->getItem(); |
| 27 | 27 | if ($rating_item) { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | $urls = smart_getCurrentUrls(); |
| 44 | 44 | $xoopsTpl->assign('smartobject_rating_current_page', $urls['full']); |
| 45 | 45 | if (isset($xoTheme) && is_object($xoTheme)) { |
| 46 | - $xoTheme->addStylesheet(SMARTOBJECT_URL . 'assets/css/module.css'); |
|
| 46 | + $xoTheme->addStylesheet(SMARTOBJECT_URL.'assets/css/module.css'); |
|
| 47 | 47 | } else { |
| 48 | 48 | //probleme d'inclusion de css apres le flashplayer. Style plac� dans css du theme |
| 49 | 49 | //$xoopsTpl->assign('smartobject_css',"<link rel='stylesheet' type='text/css' href='".XOOPS_URL."/modules/smartobject/assets/css/module.css' />"); |
@@ -14,30 +14,30 @@ discard block |
||
| 14 | 14 | * SmartObject library path |
| 15 | 15 | */ |
| 16 | 16 | if (!defined('SMARTOBJECT_URL')) { |
| 17 | - define('SMARTOBJECT_URL', XOOPS_URL . '/modules/smartobject/'); |
|
| 17 | + define('SMARTOBJECT_URL', XOOPS_URL.'/modules/smartobject/'); |
|
| 18 | 18 | } |
| 19 | 19 | if (!defined('SMARTOBJECT_ROOT_PATH')) { |
| 20 | - define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/smartobject/'); |
|
| 20 | + define('SMARTOBJECT_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/smartobject/'); |
|
| 21 | 21 | } |
| 22 | 22 | if (!defined('SMARTOBJECT_IMAGES_URL')) { |
| 23 | - define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL . 'assets/images/'); |
|
| 23 | + define('SMARTOBJECT_IMAGES_URL', SMARTOBJECT_URL.'assets/images/'); |
|
| 24 | 24 | } |
| 25 | 25 | if (!defined('SMARTOBJECT_IMAGES_ROOT_PATH')) { |
| 26 | - define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/'); |
|
| 26 | + define('SMARTOBJECT_IMAGES_ROOT_PATH', SMARTOBJECT_ROOT_PATH.'assets/images/'); |
|
| 27 | 27 | } |
| 28 | 28 | if (!defined('SMARTOBJECT_IMAGES_ACTIONS_URL')) { |
| 29 | - define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL . 'assets/images/actions/'); |
|
| 29 | + define('SMARTOBJECT_IMAGES_ACTIONS_URL', SMARTOBJECT_URL.'assets/images/actions/'); |
|
| 30 | 30 | } |
| 31 | 31 | if (!defined('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH')) { |
| 32 | - define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH . 'assets/images/actions/'); |
|
| 32 | + define('SMARTOBJECT_IMAGES_ACTIONS_ROOT_PATH', SMARTOBJECT_ROOT_PATH.'assets/images/actions/'); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Version of the SmartObject Framework |
| 37 | 37 | */ |
| 38 | -include_once(SMARTOBJECT_ROOT_PATH . 'include/version.php'); |
|
| 39 | -include_once(SMARTOBJECT_ROOT_PATH . 'include/functions.php'); |
|
| 40 | -include_once(SMARTOBJECT_ROOT_PATH . 'include/xoops_core_common_functions.php'); |
|
| 38 | +include_once(SMARTOBJECT_ROOT_PATH.'include/version.php'); |
|
| 39 | +include_once(SMARTOBJECT_ROOT_PATH.'include/functions.php'); |
|
| 40 | +include_once(SMARTOBJECT_ROOT_PATH.'include/xoops_core_common_functions.php'); |
|
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * Some constants used by the SmartObjects |
@@ -66,4 +66,4 @@ discard block |
||
| 66 | 66 | // get previous page |
| 67 | 67 | $smart_previous_page = smart_getenv('HTTP_REFERER'); |
| 68 | 68 | |
| 69 | -include_once(SMARTOBJECT_ROOT_PATH . 'class/smartloader.php'); |
|
| 69 | +include_once(SMARTOBJECT_ROOT_PATH.'class/smartloader.php'); |
|
@@ -19,13 +19,13 @@ |
||
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | if (!defined('SMARTOBJECT_URL')) { |
| 22 | - include_once(XOOPS_ROOT_PATH . '/modules/smartobject/include/common.php'); |
|
| 22 | + include_once(XOOPS_ROOT_PATH.'/modules/smartobject/include/common.php'); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | smart_loadLanguageFile('smartobject', 'customtag'); |
| 26 | 26 | |
| 27 | -include_once XOOPS_ROOT_PATH . '/modules/smartobject/include/functions.php'; |
|
| 28 | -include_once(SMARTOBJECT_ROOT_PATH . 'class/customtag.php'); |
|
| 27 | +include_once XOOPS_ROOT_PATH.'/modules/smartobject/include/functions.php'; |
|
| 28 | +include_once(SMARTOBJECT_ROOT_PATH.'class/customtag.php'); |
|
| 29 | 29 | |
| 30 | 30 | $smartobjectCustomtagHandler = xoops_getModuleHandler('customtag', 'smartobject'); |
| 31 | -$smartobjectCustomTagsObj = $smartobjectCustomtagHandler->getCustomtagsByName(); |
|
| 31 | +$smartobjectCustomTagsObj = $smartobjectCustomtagHandler->getCustomtagsByName(); |
|
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | * @filesource |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -include __DIR__ . '/classes/JavaScript.php'; |
|
| 17 | -__DIR__ . '/classes/Prototype.php'; |
|
| 18 | -__DIR__ . '/classes/Scriptaculous.php'; |
|
| 16 | +include __DIR__.'/classes/JavaScript.php'; |
|
| 17 | +__DIR__.'/classes/Prototype.php'; |
|
| 18 | +__DIR__.'/classes/Scriptaculous.php'; |
|
| 19 | 19 | |
| 20 | 20 | // For $projax = new Projax(); |
| 21 | 21 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | { |
| 64 | 64 | $options['form'] = true; |
| 65 | 65 | |
| 66 | - return '<form action="' . $options['url'] . '" onsubmit="' . $this->remote_function($options) . '; return false;" method="' . (isset($options['method']) ? $options['method'] : 'post') . '" >'; |
|
| 66 | + return '<form action="'.$options['url'].'" onsubmit="'.$this->remote_function($options).'; return false;" method="'.(isset($options['method']) ? $options['method'] : 'post').'" >'; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | public function periodically_call_remote($options = null) |
| 113 | 113 | { |
| 114 | 114 | $frequency = isset($options['frequency']) ? $options['frequency'] : 10; |
| 115 | - $code = 'new PeriodicalExecuter(function() {' . $this->remote_function($options) . '},' . $frequency . ')'; |
|
| 115 | + $code = 'new PeriodicalExecuter(function() {'.$this->remote_function($options).'},'.$frequency.')'; |
|
| 116 | 116 | |
| 117 | 117 | return $code; |
| 118 | 118 | } |
@@ -128,22 +128,22 @@ discard block |
||
| 128 | 128 | $update = ''; |
| 129 | 129 | |
| 130 | 130 | if (isset($options['update']) && is_array($options['update'])) { |
| 131 | - $update = isset($options['update']['success']) ? 'success: ' . $options['update']['success'] : ''; |
|
| 131 | + $update = isset($options['update']['success']) ? 'success: '.$options['update']['success'] : ''; |
|
| 132 | 132 | $update .= empty($update) ? '' : ','; |
| 133 | - $update .= isset($options['update']['failure']) ? 'failure: ' . $options['update']['failure'] : ''; |
|
| 133 | + $update .= isset($options['update']['failure']) ? 'failure: '.$options['update']['failure'] : ''; |
|
| 134 | 134 | } else { |
| 135 | 135 | $update .= isset($options['update']) ? $options['update'] : ''; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | - $ajax_function = empty($update) ? 'new Ajax.Request(' : 'new Ajax.Updater(\'' . $update . '\','; |
|
| 138 | + $ajax_function = empty($update) ? 'new Ajax.Request(' : 'new Ajax.Updater(\''.$update.'\','; |
|
| 139 | 139 | |
| 140 | - $ajax_function .= "'" . $options['url'] . "'"; |
|
| 141 | - $ajax_function .= ',' . $javascript_options . ')'; |
|
| 140 | + $ajax_function .= "'".$options['url']."'"; |
|
| 141 | + $ajax_function .= ','.$javascript_options.')'; |
|
| 142 | 142 | |
| 143 | - $ajax_function = isset($options['before']) ? $options['before'] . ';' . $ajax_function : $ajax_function; |
|
| 144 | - $ajax_function = isset($options['after']) ? $ajax_function . ';' . $options['after'] : $ajax_function; |
|
| 145 | - $ajax_function = isset($options['condition']) ? 'if (' . $options['condition'] . ') {' . $ajax_function . '}' : $ajax_function; |
|
| 146 | - $ajax_function = isset($options['confirm']) ? 'if ( confirm(\'' . $options['confirm'] . '\' ) ) { ' . $ajax_function . ' } ' : $ajax_function; |
|
| 143 | + $ajax_function = isset($options['before']) ? $options['before'].';'.$ajax_function : $ajax_function; |
|
| 144 | + $ajax_function = isset($options['after']) ? $ajax_function.';'.$options['after'] : $ajax_function; |
|
| 145 | + $ajax_function = isset($options['condition']) ? 'if ('.$options['condition'].') {'.$ajax_function.'}' : $ajax_function; |
|
| 146 | + $ajax_function = isset($options['confirm']) ? 'if ( confirm(\''.$options['confirm'].'\' ) ) { '.$ajax_function.' } ' : $ajax_function; |
|
| 147 | 147 | |
| 148 | 148 | return $ajax_function; |
| 149 | 149 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | $options['with'] = 'Form.serialize(this.form)'; |
| 161 | 161 | } |
| 162 | 162 | |
| 163 | - return '<input type="button" onclick="' . $this->remote_function($options) . '" name="' . $name . '" value ="' . $value . '" />'; |
|
| 163 | + return '<input type="button" onclick="'.$this->remote_function($options).'" name="'.$name.'" value ="'.$value.'" />'; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | /** |
@@ -203,8 +203,8 @@ discard block |
||
| 203 | 203 | $callbacks = array(); |
| 204 | 204 | foreach ($options as $callback => $code) { |
| 205 | 205 | if (in_array($callback, $this->CALLBACKS)) { |
| 206 | - $name = 'on' . ucfirst($callback); |
|
| 207 | - $callbacks[$name] = 'function(request){' . $code . '}'; |
|
| 206 | + $name = 'on'.ucfirst($callback); |
|
| 207 | + $callbacks[$name] = 'function(request){'.$code.'}'; |
|
| 208 | 208 | } |
| 209 | 209 | } |
| 210 | 210 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | public function _build_observer($klass, $name, $options = null) |
| 221 | 221 | { |
| 222 | 222 | if (isset($options['with']) && false === strpos($options['with'], '=')) { |
| 223 | - $options['with'] = '\'' . $options['with'] . '=\' + value'; |
|
| 223 | + $options['with'] = '\''.$options['with'].'=\' + value'; |
|
| 224 | 224 | } elseif (isset($options['with']) && isset($options['update'])) { |
| 225 | 225 | $options['with'] = 'value'; |
| 226 | 226 | } |
@@ -228,10 +228,10 @@ discard block |
||
| 228 | 228 | $callback = $options['function'] ?: $this->remote_function($options); |
| 229 | 229 | |
| 230 | 230 | $javascript = "new $klass('$name', "; |
| 231 | - $javascript .= isset($options['frequency']) ? $options['frequency'] . ', ' : ''; |
|
| 231 | + $javascript .= isset($options['frequency']) ? $options['frequency'].', ' : ''; |
|
| 232 | 232 | $javascript .= 'function (element,value) { '; |
| 233 | 233 | $javascript .= $callback; |
| 234 | - $javascript .= isset($options['on']) ? ', ' . $options['on'] : ''; |
|
| 234 | + $javascript .= isset($options['on']) ? ', '.$options['on'] : ''; |
|
| 235 | 235 | $javascript .= '})'; |
| 236 | 236 | |
| 237 | 237 | return $javascript; |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | if (isset($options['position'])) { |
| 266 | - $js_options['insertion'] = 'Insertion.' . ucfirst($options['position']); |
|
| 266 | + $js_options['insertion'] = 'Insertion.'.ucfirst($options['position']); |
|
| 267 | 267 | } |
| 268 | 268 | |
| 269 | 269 | $js_options['evalScripts'] = isset($options['script']) ? $options['script'] : 'true'; |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | if (isset($options['form'])) { |
| 272 | 272 | $js_options['parameters'] = 'Form.serialize(this)'; |
| 273 | 273 | } elseif (isset($options['parameters'])) { |
| 274 | - $js_options['parameters'] = 'Form.serialize(\'' . $options['submit'] . '\')'; |
|
| 274 | + $js_options['parameters'] = 'Form.serialize(\''.$options['submit'].'\')'; |
|
| 275 | 275 | } elseif (isset($options['with'])) { |
| 276 | 276 | $js_options['parameters'] = $options['with']; |
| 277 | 277 | } |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | */ |
| 299 | 299 | public function ID($id, $extend = null) |
| 300 | 300 | { |
| 301 | - return "$('$id')" . (!empty($extend)) ? '.' . $extend . '()' : ''; |
|
| 301 | + return "$('$id')".(!empty($extend)) ? '.'.$extend.'()' : ''; |
|
| 302 | 302 | } |
| 303 | 303 | |
| 304 | 304 | /** |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | */ |
| 358 | 358 | public function delay($seconds = 1, $script = '') |
| 359 | 359 | { |
| 360 | - return "setTimeout( function() { $script } , " . ($seconds * 1000) . ' )'; |
|
| 360 | + return "setTimeout( function() { $script } , ".($seconds * 1000).' )'; |
|
| 361 | 361 | } |
| 362 | 362 | |
| 363 | 363 | /** |
@@ -379,7 +379,7 @@ discard block |
||
| 379 | 379 | { |
| 380 | 380 | $args = array_merge(array($id), (is_array($options_for_render) ? $options_for_render : array($options_for_render))); |
| 381 | 381 | |
| 382 | - return $this->call('new Insertion.' . ucfirst($position), $args); |
|
| 382 | + return $this->call('new Insertion.'.ucfirst($position), $args); |
|
| 383 | 383 | } |
| 384 | 384 | |
| 385 | 385 | /** |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | */ |
| 444 | 444 | public function select($pattern, $extend = null) |
| 445 | 445 | { |
| 446 | - return "$$('$pattern')" . (!empty($extend)) ? '.' . $extend : ''; |
|
| 446 | + return "$$('$pattern')".(!empty($extend)) ? '.'.$extend : ''; |
|
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | /** |