diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 9357dab4cd3..700c5569916 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -151,7 +151,7 @@ if ($action=='show_week') $week = $prev['week']; - $day =(int)$day; + $day = (int) $day; $next = dol_get_next_week($day, $week, $month, $year); $next_year = $next['year']; $next_month = $next['month']; @@ -165,7 +165,7 @@ if ($action=='show_week') $tmpday = $first_day; } -if ($action=='show_day') +if ($action == 'show_day') { $prev = dol_get_prev_day($day, $month, $year); $prev_year = $prev['year']; diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 46d8ae1816f..54a4f7f2bb0 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -741,12 +741,12 @@ class FormFile $post_max_size = ini_get('post_max_size'); $mul_post_max_size = substr($post_max_size, -1); $mul_post_max_size = ($mul_post_max_size == 'M' ? 1048576 : ($mul_post_max_size == 'K' ? 1024 : ($mul_post_max_size == 'G' ? 1073741824 : 1))); - $post_max_size = $mul_post_max_size*(int)$post_max_size; + $post_max_size = $mul_post_max_size * (int) $post_max_size; // PHP upload_max_filesize $upload_max_filesize = ini_get('upload_max_filesize'); $mul_upload_max_filesize = substr($upload_max_filesize, -1); $mul_upload_max_filesize = ($mul_upload_max_filesize == 'M' ? 1048576 : ($mul_upload_max_filesize == 'K' ? 1024 : ($mul_upload_max_filesize == 'G' ? 1073741824 : 1))); - $upload_max_filesize = $mul_upload_max_filesize*(int)$upload_max_filesize; + $upload_max_filesize = $mul_upload_max_filesize * (int) $upload_max_filesize; // Max file size $max_file_size = (($post_max_size < $upload_max_filesize) ? $post_max_size : $upload_max_filesize); diff --git a/htdocs/core/class/rssparser.class.php b/htdocs/core/class/rssparser.class.php index 98482e7768c..75dc5ce5eff 100755 --- a/htdocs/core/class/rssparser.class.php +++ b/htdocs/core/class/rssparser.class.php @@ -601,7 +601,7 @@ function xml2php($xml) //To deal with the attributes foreach($value->attributes() as $ak=>$av) { - $child[$ak] = (string)$av; + $child[$ak] = (string) $av; } @@ -632,7 +632,7 @@ function xml2php($xml) if($fils==0) { - return (string)$xml; + return (string) $xml; } return $array; diff --git a/htdocs/includes/modules/livraison/pdf/pdf_typhon.modules.php b/htdocs/includes/modules/livraison/pdf/pdf_typhon.modules.php index 7f323a4722b..f943170cacf 100644 --- a/htdocs/includes/modules/livraison/pdf/pdf_typhon.modules.php +++ b/htdocs/includes/modules/livraison/pdf/pdf_typhon.modules.php @@ -270,7 +270,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder // dans le tableau tva["taux"]=total_tva $tvaligne=$object->lines[$i]->price * $object->lines[$i]->qty; if ($object->remise_percent) $tvaligne-=($tvaligne*$object->remise_percent)/100; - $this->tva[ (string)$object->lines[$i]->tva_tx ] += $tvaligne; + $this->tva[ (string) $object->lines[$i]->tva_tx ] += $tvaligne; */ $nexY+=2; // Passe espace entre les lignes diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index e2ce69b214f..073eeff58dd 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -3662,7 +3662,7 @@ function dol_nboflines_bis($text,$maxlinesize=0,$charset='UTF-8') function dol_microtime_float() { list($usec, $sec) = explode(" ", microtime()); - return ((float)$usec + (float)$sec); + return ((float) $usec + (float) $sec); } /** diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 70bcee0e5ea..a8fb10c3f5b 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -36,7 +36,7 @@ $micro_start_time=0; if (! empty($_SERVER['DOL_TUNING'])) { list($usec, $sec) = explode(" ", microtime()); - $micro_start_time=((float)$usec + (float)$sec); + $micro_start_time=((float) $usec + (float) $sec); // Add Xdebug code coverage //define('XDEBUGCOVERAGE',1); if (defined('XDEBUGCOVERAGE')) { xdebug_start_code_coverage(); }