@@ -63,7 +63,7 @@ |
||
| 63 | 63 | } |
| 64 | 64 | if (!empty($this->columns)) { |
| 65 | 65 | if ($span = $i % $this->columns) { |
| 66 | - $ret .= '<td colspan="'.($this->columns - $span).'"></td></tr>'; |
|
| 66 | + $ret .= '<td colspan="'.($this->columns-$span).'"></td></tr>'; |
|
| 67 | 67 | } |
| 68 | 68 | $ret .= '</table>'; |
| 69 | 69 | } |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | $namespace = ''; |
| 142 | 142 | if (false !== ($lastNsPos = strripos($className, $this->_namespaceSeparator))) { |
| 143 | 143 | $namespace = substr($className, 0, $lastNsPos); |
| 144 | - $className = substr($className, $lastNsPos + 1); |
|
| 144 | + $className = substr($className, $lastNsPos+1); |
|
| 145 | 145 | $fileName = str_replace($this->_namespaceSeparator, DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR; |
| 146 | 146 | } |
| 147 | 147 | $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className).$this->_fileExtension; |
@@ -415,7 +415,7 @@ |
||
| 415 | 415 | $imageIcon = imagecreatefrompng($iconFile); |
| 416 | 416 | // Write text |
| 417 | 417 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 418 | - $spaceBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 418 | + $spaceBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 419 | 419 | imagefttext($imageModule, 8.5, 0, $spaceBorder, 45, $textColor, $font, ucfirst($moduleDirname), array()); |
| 420 | 420 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
| 421 | 421 | $logoImg = '/'.$moduleDirname.'_logo.png'; |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | |
| 135 | 135 | // Write text |
| 136 | 136 | $textColor = imagecolorallocate($imageModule, 0, 0, 0); |
| 137 | - $spaceToBorder = (92 - strlen($moduleDirname) * 7.5) / 2; |
|
| 137 | + $spaceToBorder = (92-strlen($moduleDirname) * 7.5) / 2; |
|
| 138 | 138 | imagefttext($imageModule, 8.5, 0, $spaceToBorder, 45, $textColor, $font, ucfirst($moduleDirname), array()); |
| 139 | 139 | |
| 140 | 140 | imagecopy($imageModule, $imageIcon, 29, 2, 0, 0, 32, 32); |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $nb_fieldSearch = count($fieldSearch); |
| 96 | 96 | $sql .= '('; |
| 97 | 97 | for ($i = 0; $i < $nb_fieldSearch; ++$i) { |
| 98 | - if ($i != $nb_fieldSearch - 1) { |
|
| 98 | + if ($i != $nb_fieldSearch-1) { |
|
| 99 | 99 | $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray['.$options.']% OR '; |
| 100 | 100 | } else { |
| 101 | 101 | $sql .= ''.$fieldSearch[$i].' LIKE %$queryarray[0]%'; |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | if (strpos($fieldName, '_')) { |
| 100 | 100 | $str = strpos($fieldName, '_'); |
| 101 | 101 | if ($str !== false) { |
| 102 | - $rpFieldName = substr($fieldName, $str + 1, strlen($fieldName)); |
|
| 102 | + $rpFieldName = substr($fieldName, $str+1, strlen($fieldName)); |
|
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | $lpFieldName = substr($fieldName, 0, strpos($fieldName, '_')); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | // Autoload Function |
| 29 | 29 | ini_set('display_errors', 1); |
| 30 | -error_reporting(E_ALL | E_STRICT); |
|
| 30 | +error_reporting(E_ALL|E_STRICT); |
|
| 31 | 31 | |
| 32 | 32 | if (!function_exists('application_autoloader')) { |
| 33 | 33 | function application_autoloader($class) |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | 'set_release_info' => $_POST['set_release_info'], |
| 102 | 102 | 'set_release_file' => $_POST['set_release_file'], |
| 103 | 103 | 'set_manual' => $_POST['set_manual'], |
| 104 | - 'set_manual_file' => $_POST['set_manual_file'], )); |
|
| 104 | + 'set_manual_file' => $_POST['set_manual_file'],)); |
|
| 105 | 105 | //Form set_image |
| 106 | 106 | $settingsObj->setVar('set_image', $_POST['set_image']); |
| 107 | 107 | //Form module save |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | 'set_release' => $_POST['set_release'], |
| 116 | 116 | 'set_status' => $_POST['set_status'], |
| 117 | 117 | 'set_donations' => $_POST['set_donations'], |
| 118 | - 'set_subversion' => $_POST['set_subversion'], ) |
|
| 118 | + 'set_subversion' => $_POST['set_subversion'],) |
|
| 119 | 119 | ); |
| 120 | 120 | $settingOption = XoopsRequest::getArray('setting_option', array()); |
| 121 | 121 | $settingsObj->setVar('set_admin', in_array('admin', $settingOption)); |
@@ -94,7 +94,7 @@ |
||
| 94 | 94 | 'file_mid' => $_POST['file_mid'], |
| 95 | 95 | 'file_name' => $_POST['file_name'], |
| 96 | 96 | 'file_extension' => $_POST['file_extension'], |
| 97 | - 'file_infolder' => $_POST['file_infolder'], )); |
|
| 97 | + 'file_infolder' => $_POST['file_infolder'],)); |
|
| 98 | 98 | |
| 99 | 99 | if ($tdmcreate->getHandler('addfiles')->insert($addfilesObj)) { |
| 100 | 100 | if ($addfilesObj->isNew()) { |