Completed
Push — master ( 2d4977...3189d6 )
by Michael
10:50
created
class/smartobjectpermission.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
     {
193 193
         global $xoopsModule;
194 194
 
195
-        $smartModule =& smartsection_getModuleInfo();
195
+        $smartModule = & smartsection_getModuleInfo();
196 196
 
197 197
         $result        = true;
198 198
         $module_id     = $smartModule->getVar('mid');
Please login to merge, or discard this patch.
class/smartuploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
  * @link    http://smartfactory.ca The SmartFactory
81 81
  * @package SmartObject
82 82
  */
83
-mt_srand((double)microtime() * 1000000);
83
+mt_srand((double) microtime() * 1000000);
84 84
 
85 85
 include_once XOOPS_ROOT_PATH . '/class/uploader.php';
86 86
 
Please login to merge, or discard this patch.
class/smartobject.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
     public function toArray()
422 422
     {
423 423
         $ret  = array();
424
-        $vars =& $this->getVars();
424
+        $vars = & $this->getVars();
425 425
         foreach ($vars as $key => $var) {
426 426
             $value     = $this->getVar($key);
427 427
             $ret[$key] = $value;
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         }
539 539
 
540 540
         $smartPermissionsHandler = new SmartobjectPermissionHandler($this->handler);
541
-        $ret                      = $smartPermissionsHandler->getGrantedGroups($group_perm, $this->id());
541
+        $ret = $smartPermissionsHandler->getGrantedGroups($group_perm, $this->id());
542 542
 
543 543
         if (count($ret) == 0) {
544 544
             return false;
@@ -797,8 +797,8 @@  discard block
 block discarded – undo
797 797
                             $this->setErrors(sprintf(_XOBJ_ERR_REQUIRED, $k));
798 798
                             continue;
799 799
                         }
800
-                        if (isset($v['maxlength']) && strlen($cleanv) > (int)$v['maxlength']) {
801
-                            $this->setErrors(sprintf(_XOBJ_ERR_SHORTERTHAN, $k, (int)$v['maxlength']));
800
+                        if (isset($v['maxlength']) && strlen($cleanv) > (int) $v['maxlength']) {
801
+                            $this->setErrors(sprintf(_XOBJ_ERR_SHORTERTHAN, $k, (int) $v['maxlength']));
802 802
                             continue;
803 803
                         }
804 804
                         if (!$v['not_gpc']) {
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
                         break;
828 828
                     case XOBJ_DTYPE_INT:
829 829
                     case XOBJ_DTYPE_TIME_ONLY:
830
-                        $cleanv = (int)$cleanv;
830
+                        $cleanv = (int) $cleanv;
831 831
                         break;
832 832
 
833 833
                     case XOBJ_DTYPE_CURRENCY:
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
                             $cleanv = 'http://' . $cleanv;
861 861
                         }
862 862
                         if (!$v['not_gpc']) {
863
-                            $cleanv =& $ts->stripSlashesGPC($cleanv);
863
+                            $cleanv = & $ts->stripSlashesGPC($cleanv);
864 864
                         }
865 865
                         break;
866 866
                     case XOBJ_DTYPE_SIMPLE_ARRAY:
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
                     case XOBJ_DTYPE_STIME:
873 873
                     case XOBJ_DTYPE_MTIME:
874 874
                     case XOBJ_DTYPE_LTIME:
875
-                        $cleanv = !is_string($cleanv) ? (int)$cleanv : strtotime($cleanv);
875
+                        $cleanv = !is_string($cleanv) ? (int) $cleanv : strtotime($cleanv);
876 876
                         if (!($cleanv > 0)) {
877 877
                             $cleanv = strtotime($cleanv);
878 878
                         }
@@ -881,7 +881,7 @@  discard block
 block discarded – undo
881 881
                         break;
882 882
                 }
883 883
             }
884
-            $this->cleanVars[$k] =& $cleanv;
884
+            $this->cleanVars[$k] = & $cleanv;
885 885
             unset($cleanv);
886 886
         }
887 887
         if (count($this->_errors) > 0) {
@@ -1099,10 +1099,10 @@  discard block
 block discarded – undo
1099 1099
                 }
1100 1100
                 break;
1101 1101
             case XOBJ_DTYPE_SIMPLE_ARRAY:
1102
-                $ret =& explode('|', $ret);
1102
+                $ret = & explode('|', $ret);
1103 1103
                 break;
1104 1104
             case XOBJ_DTYPE_ARRAY:
1105
-                $ret =& unserialize($ret);
1105
+                $ret = & unserialize($ret);
1106 1106
                 break;
1107 1107
             case XOBJ_DTYPE_SOURCE:
1108 1108
                 switch (strtolower($format)) {
@@ -1361,7 +1361,7 @@  discard block
 block discarded – undo
1361 1361
     public function getUrlLinkObj($key)
1362 1362
     {
1363 1363
         $smartobjectLinkurlHandler = xoops_getModuleHandler('urllink', 'smartobject');
1364
-        $urllinkid                   = $this->getVar($key) != null ? $this->getVar($key) : 0;
1364
+        $urllinkid = $this->getVar($key) != null ? $this->getVar($key) : 0;
1365 1365
         if ($urllinkid != 0) {
1366 1366
             return $smartobjectLinkurlHandler->get($urllinkid);
1367 1367
         } else {
@@ -1387,7 +1387,7 @@  discard block
 block discarded – undo
1387 1387
     public function getFileObj($key)
1388 1388
     {
1389 1389
         $smartobjectFileHandler = xoops_getModuleHandler('file', 'smartobject');
1390
-        $fileid                   = $this->getVar($key) != null ? $this->getVar($key) : 0;
1390
+        $fileid = $this->getVar($key) != null ? $this->getVar($key) : 0;
1391 1391
         if ($fileid != 0) {
1392 1392
             return $smartobjectFileHandler->get($fileid);
1393 1393
         } else {
Please login to merge, or discard this patch.