Completed
Branch develop (3f00ea)
by
unknown
16:31
created
htdocs/admin/pdf.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -639,7 +639,7 @@
 block discarded – undo
639 639
 
640 640
 print '<tr class="oddeven"><td>'.$langs->trans("PDF_USE_A").'</td><td>';
641 641
 //$pdfa = false; // PDF default version
642
-$pdfa = getDolGlobalString('PDF_USE_A', '3'); 	// PDF/A-1 ou PDF/A-3
642
+$pdfa = getDolGlobalString('PDF_USE_A', '3'); // PDF/A-1 ou PDF/A-3
643 643
 print $form->selectarray('PDF_USE_A', $arraylistofpdfformat, $pdfa);
644 644
 print '</td></tr>';
645 645
 
Please login to merge, or discard this patch.
htdocs/core/modules/facture/doc/pdf_sponge.modules.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 					if (!empty($conf->mycompany->multidir_output[$object->entity])) {
357 357
 						$logodir = $conf->mycompany->multidir_output[$object->entity];
358 358
 					}
359
-					$pagecount = $pdf->setSourceFile($logodir.'/' . getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
359
+					$pagecount = $pdf->setSourceFile($logodir.'/'.getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
360 360
 					$tplidx = $pdf->importPage(1);
361 361
 				}
362 362
 
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
 				// $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
454 454
 
455 455
 				// $this->tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
456
-				$this->tab_top = 90 + $top_shift + $shipp_shift;		// top_shift is an addition for linked objects or addons (0 in most cases)
456
+				$this->tab_top = 90 + $top_shift + $shipp_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
457 457
 				$this->tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
458 458
 
459 459
 				// You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
 					}
707 707
 
708 708
 					$pdf->setTopMargin($this->tab_top_newpage);
709
-					$page_bottom_margin =  $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
709
+					$page_bottom_margin = $this->heightforfooter + $this->heightforfreetext + $this->heightforinfotot + $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs);
710 710
 					$pdf->setPageOrientation('', 1, $page_bottom_margin);
711 711
 					$pageposbefore = $pdf->getPage();
712 712
 
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
 					if (!isset($this->tva[$vatrate])) {
953 953
 						$this->tva[$vatrate] = 0;
954 954
 					}
955
-					$this->tva[$vatrate] += $tvaligne;	// ->tva is abandoned, we use now ->tva_array that is more complete
955
+					$this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
956 956
 					$vatcode = $object->lines[$i]->vat_src_code;
957 957
 					if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) {
958 958
 						$this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0;
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
 				// Pagefoot
1036 1036
 				$this->_pagefoot($pdf, $object, $outputlangs, 0, $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs));
1037 1037
 				if (method_exists($pdf, 'AliasNbPages')) {
1038
-					$pdf->AliasNbPages();  // @phan-suppress-current-line PhanUndeclaredMethod
1038
+					$pdf->AliasNbPages(); // @phan-suppress-current-line PhanUndeclaredMethod
1039 1039
 				}
1040 1040
 
1041 1041
 				if (getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE') == 'bottom') {
@@ -1244,8 +1244,8 @@  discard block
 block discarded – undo
1244 1244
 			$posy = $pdf->GetY() + 4;
1245 1245
 		}
1246 1246
 
1247
-		$posxval = 52;	// Position of values of properties shown on left side
1248
-		$posxend = 110;	// End of x for text on left side
1247
+		$posxval = 52; // Position of values of properties shown on left side
1248
+		$posxend = 110; // End of x for text on left side
1249 1249
 		if ($this->page_largeur < 210) { // To work with US executive format
1250 1250
 			$posxend -= 10;
1251 1251
 		}
@@ -1275,7 +1275,7 @@  discard block
 block discarded – undo
1275 1275
 
1276 1276
 			$pdf->SetFont('', '', $default_font_size - 2);
1277 1277
 			$pdf->SetXY($posxval, $posy);
1278
-			$categoryOfOperationLabel = $outputlangs->transnoentities("MentionCategoryOfOperations" . $this->categoryOfOperation);
1278
+			$categoryOfOperationLabel = $outputlangs->transnoentities("MentionCategoryOfOperations".$this->categoryOfOperation);
1279 1279
 			$pdf->MultiCell($posxend - $posxval, 4, $categoryOfOperationLabel, 0, 'L');
1280 1280
 
1281 1281
 			$posy = $pdf->GetY() + 3; // for 2 lines
@@ -2058,7 +2058,7 @@  discard block
 block discarded – undo
2058 2058
 		if (empty($hidetop)) {
2059 2059
 			// Show category of operations
2060 2060
 			if (getDolGlobalInt('INVOICE_CATEGORY_OF_OPERATION') == 1 && $this->categoryOfOperation >= 0) {
2061
-				$categoryOfOperations = $outputlangs->transnoentities("MentionCategoryOfOperations") . ' : ' . $outputlangs->transnoentities("MentionCategoryOfOperations" . $this->categoryOfOperation);
2061
+				$categoryOfOperations = $outputlangs->transnoentities("MentionCategoryOfOperations").' : '.$outputlangs->transnoentities("MentionCategoryOfOperations".$this->categoryOfOperation);
2062 2062
 				$pdf->SetXY($this->marge_gauche, $tab_top - 4);
2063 2063
 				$pdf->MultiCell(($pdf->GetStringWidth($categoryOfOperations)) + 4, 2, $categoryOfOperations);
2064 2064
 			}
@@ -2174,7 +2174,7 @@  discard block
 block discarded – undo
2174 2174
 		}
2175 2175
 		if ($this->situationinvoice) {
2176 2176
 			$langs->loadLangs(array("other"));
2177
-			$title = $outputlangs->transnoentities("PDFInvoiceSituation") . " " . $outputlangs->transnoentities("NumberingShort") . $object->situation_counter . " -";
2177
+			$title = $outputlangs->transnoentities("PDFInvoiceSituation")." ".$outputlangs->transnoentities("NumberingShort").$object->situation_counter." -";
2178 2178
 		}
2179 2179
 		if (getDolGlobalString('PDF_USE_ALSO_LANGUAGE_CODE') && is_object($outputlangsbis)) {
2180 2180
 			$title .= ' - ';
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
 				if (!empty($carac_client_shipping)) {
2456 2456
 					$posy += $hautcadre;
2457 2457
 
2458
-					$hautcadre = $hautcadre - 10;	// Height for the shipping address does not need to be as high as main box
2458
+					$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
2459 2459
 
2460 2460
 					// Show shipping frame
2461 2461
 					$pdf->SetXY($posx + 2, $posy - 5);
Please login to merge, or discard this patch.
htdocs/core/modules/facture/doc/pdf_crabe.modules.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
 					if (!empty($conf->mycompany->multidir_output[$object->entity])) {
331 331
 						$logodir = $conf->mycompany->multidir_output[$object->entity];
332 332
 					}
333
-					$pagecount = $pdf->setSourceFile($logodir.'/' . getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
333
+					$pagecount = $pdf->setSourceFile($logodir.'/'.getDolGlobalString('MAIN_ADD_PDF_BACKGROUND'));
334 334
 					$tplidx = $pdf->importPage(1);
335 335
 				}
336 336
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
 				// $pdf->GetY() here can't be used. It is bottom of the second address box but first one may be higher
445 445
 
446 446
 				// $tab_top is y where we must continue content (90 = 42 + 48: 42 is height of logo and ref, 48 is address blocks)
447
-				$tab_top = 90 + $top_shift;		// top_shift is an addition for linked objects or addons (0 in most cases)
447
+				$tab_top = 90 + $top_shift; // top_shift is an addition for linked objects or addons (0 in most cases)
448 448
 				$tab_top_newpage = (!getDolGlobalInt('MAIN_PDF_DONOTREPEAT_HEAD') ? 42 + $top_shift : 10);
449 449
 
450 450
 				// You can add more thing under header here, if you increase $extra_under_address_shift too.
@@ -787,7 +787,7 @@  discard block
 block discarded – undo
787 787
 					if (!isset($this->tva[$vatrate])) {
788 788
 						$this->tva[$vatrate] = 0;
789 789
 					}
790
-					$this->tva[$vatrate] += $tvaligne;	// ->tva is abandoned, we use now ->tva_array that is more complete
790
+					$this->tva[$vatrate] += $tvaligne; // ->tva is abandoned, we use now ->tva_array that is more complete
791 791
 					$vatcode = $object->lines[$i]->vat_src_code;
792 792
 					if (empty($this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'])) {
793 793
 						$this->tva_array[$vatrate.($vatcode ? ' ('.$vatcode.')' : '')]['amount'] = 0;
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
 				// Pagefoot
874 874
 				$this->_pagefoot($pdf, $object, $outputlangs, 0, $this->getHeightForQRInvoice($pdf->getPage(), $object, $langs));
875 875
 				if (method_exists($pdf, 'AliasNbPages')) {
876
-					$pdf->AliasNbPages();  // @phan-suppress-current-line PhanUndeclaredMethod
876
+					$pdf->AliasNbPages(); // @phan-suppress-current-line PhanUndeclaredMethod
877 877
 				}
878 878
 
879 879
 				if (getDolGlobalString('INVOICE_ADD_SWISS_QR_CODE') == 'bottom') {
@@ -1147,7 +1147,7 @@  discard block
 block discarded – undo
1147 1147
 		}
1148 1148
 
1149 1149
 		$posxval = 52;
1150
-		$posxend = 110;	// End of x for text on left side
1150
+		$posxend = 110; // End of x for text on left side
1151 1151
 		if ($this->page_largeur < 210) { // To work with US executive format
1152 1152
 			$posxend -= 10;
1153 1153
 		}
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
 			$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
1166 1166
 			$pdf->MultiCell(67, 4, $lib_condition_paiement, 0, 'L');
1167 1167
 
1168
-			$posy = $pdf->GetY() + 3;	// We need spaces for 2 lines payment conditions
1168
+			$posy = $pdf->GetY() + 3; // We need spaces for 2 lines payment conditions
1169 1169
 		}
1170 1170
 
1171 1171
 		// Show category of operations
@@ -1177,7 +1177,7 @@  discard block
 block discarded – undo
1177 1177
 
1178 1178
 			$pdf->SetFont('', '', $default_font_size - 2);
1179 1179
 			$pdf->SetXY($posxval, $posy);
1180
-			$categoryOfOperationLabel = $outputlangs->transnoentities("MentionCategoryOfOperations" . $this->categoryOfOperation);
1180
+			$categoryOfOperationLabel = $outputlangs->transnoentities("MentionCategoryOfOperations".$this->categoryOfOperation);
1181 1181
 			$pdf->MultiCell($posxend - $posxval, 4, $categoryOfOperationLabel, 0, 'L');
1182 1182
 
1183 1183
 			$posy = $pdf->GetY() + 3; // for 2 lines
@@ -1724,7 +1724,7 @@  discard block
 block discarded – undo
1724 1724
 		if (empty($hidetop)) {
1725 1725
 			// Show category of operations
1726 1726
 			if (getDolGlobalInt('INVOICE_CATEGORY_OF_OPERATION') == 1 && $this->categoryOfOperation >= 0) {
1727
-				$categoryOfOperations = $outputlangs->transnoentities("MentionCategoryOfOperations") . ' : ' . $outputlangs->transnoentities("MentionCategoryOfOperations" . $this->categoryOfOperation);
1727
+				$categoryOfOperations = $outputlangs->transnoentities("MentionCategoryOfOperations").' : '.$outputlangs->transnoentities("MentionCategoryOfOperations".$this->categoryOfOperation);
1728 1728
 				$pdf->SetXY($this->marge_gauche, $tab_top - 4);
1729 1729
 				$pdf->MultiCell(($pdf->GetStringWidth($categoryOfOperations)) + 4, 2, $categoryOfOperations);
1730 1730
 			}
@@ -1894,7 +1894,7 @@  discard block
 block discarded – undo
1894 1894
 		}
1895 1895
 		if ($this->situationinvoice) {
1896 1896
 			$langs->loadLangs(array("other"));
1897
-			$title = $outputlangs->transnoentities("PDFInvoiceSituation") . " " . $outputlangs->transnoentities("NumberingShort") . $object->situation_counter . " -";
1897
+			$title = $outputlangs->transnoentities("PDFInvoiceSituation")." ".$outputlangs->transnoentities("NumberingShort").$object->situation_counter." -";
1898 1898
 		}
1899 1899
 		if (getDolGlobalString('PDF_USE_ALSO_LANGUAGE_CODE') && is_object($outputlangsbis)) {
1900 1900
 			$title .= ' - ';
@@ -2120,7 +2120,7 @@  discard block
 block discarded – undo
2120 2120
 
2121 2121
 			$carac_client_name = pdfBuildThirdpartyName($thirdparty, $outputlangs);
2122 2122
 
2123
-			$mode =  'target';
2123
+			$mode = 'target';
2124 2124
 			$carac_client = pdf_build_address($outputlangs, $this->emetteur, $object->thirdparty, ($usecontact ? $object->contact : ''), ($usecontact ? 1 : 0), $mode, $object);
2125 2125
 
2126 2126
 			// Show recipient
@@ -2175,7 +2175,7 @@  discard block
 block discarded – undo
2175 2175
 				if (!empty($carac_client_shipping)) {
2176 2176
 					$posy += $hautcadre;
2177 2177
 
2178
-					$hautcadre = $hautcadre - 10;	// Height for the shipping address does not need to be as high as main box
2178
+					$hautcadre = $hautcadre - 10; // Height for the shipping address does not need to be as high as main box
2179 2179
 
2180 2180
 					// Show shipping frame
2181 2181
 					$pdf->SetXY($posx + 2, $posy - 5);
Please login to merge, or discard this patch.
htdocs/core/lib/pdf.lib.php 1 patch
Spacing   +22 added lines, -24 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 	//$metric=$arrayformat['unit'];
182 182
 
183 183
 	//$pdfa = false; // PDF default version
184
-	$pdfa = getDolGlobalString('PDF_USE_A', '3'); 	// PDF/A-1 ou PDF/A-3
184
+	$pdfa = getDolGlobalString('PDF_USE_A', '3'); // PDF/A-1 ou PDF/A-3
185 185
 
186 186
 	if (!getDolGlobalString('MAIN_DISABLE_TCPDI') && class_exists('TCPDI')) {
187 187
 		$pdf = new TCPDI($pagetype, $metric, $format, true, 'UTF-8', false, $pdfa);
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
 				$stringaddress .= ($stringaddress ? "\n" : '').$tmp.': '.$outputlangs->convToOutputCharset($sourcecompany->idprof6);
536 536
 			}
537 537
 			if (getDolGlobalString('PDF_ADD_MORE_AFTER_SOURCE_ADDRESS')) {
538
-				$stringaddress .= ($stringaddress ? "\n" : '') . getDolGlobalString('PDF_ADD_MORE_AFTER_SOURCE_ADDRESS');
538
+				$stringaddress .= ($stringaddress ? "\n" : '').getDolGlobalString('PDF_ADD_MORE_AFTER_SOURCE_ADDRESS');
539 539
 			}
540 540
 		}
541 541
 
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 				if ($usecontact && is_object($targetcontact) && getDolGlobalInt('MAIN_USE_COMPANY_NAME_OF_CONTACT')) {
648 648
 					$targetcontact->fetch_thirdparty();
649 649
 					if (!empty($targetcontact->thirdparty->id) && $targetcontact->thirdparty->tva_intra) {
650
-						$stringaddress .= ($stringaddress ? "\n" : '') . $outputlangs->transnoentities("VATIntraShort") . ': ' . $outputlangs->convToOutputCharset($targetcontact->thirdparty->tva_intra);
650
+						$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->transnoentities("VATIntraShort").': '.$outputlangs->convToOutputCharset($targetcontact->thirdparty->tva_intra);
651 651
 					}
652 652
 				} elseif (!empty($targetcompany->tva_intra)) {
653 653
 					$stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->transnoentities("VATIntraShort").': '.$outputlangs->convToOutputCharset($targetcompany->tva_intra);
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
 
735 735
 	// Add a background image on document only if good setup of const
736 736
 	if (getDolGlobalString('MAIN_USE_BACKGROUND_ON_PDF') && (getDolGlobalString('MAIN_USE_BACKGROUND_ON_PDF') != '-1')) {		// Warning, this option make TCPDF generation being crazy and some content disappeared behind the image
737
-		$filepath = $conf->mycompany->dir_output.'/logos/' . getDolGlobalString('MAIN_USE_BACKGROUND_ON_PDF');
737
+		$filepath = $conf->mycompany->dir_output.'/logos/'.getDolGlobalString('MAIN_USE_BACKGROUND_ON_PDF');
738 738
 		if (file_exists($filepath)) {
739 739
 			$pdf->SetAutoPageBreak(0, 0); // Disable auto pagebreak before adding image
740 740
 			if (getDolGlobalString('MAIN_USE_BACKGROUND_ON_PDF_ALPHA')) {
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
 	$outputlangs->load("dict");
1027 1027
 	$line = '';
1028 1028
 	$reg = array();
1029
-	$marginwithfooter = 0;  // Return value
1029
+	$marginwithfooter = 0; // Return value
1030 1030
 
1031 1031
 	$dims = $pdf->getPageDimensions();
1032 1032
 
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof5);
1158 1158
 	}
1159 1159
 	// Prof Id 6
1160
-	if (!empty($fromcompany->idprof6) &&  $fromcompany->idprof6) {
1160
+	if (!empty($fromcompany->idprof6) && $fromcompany->idprof6) {
1161 1161
 		$field = $outputlangs->transcountrynoentities("ProfId6", $fromcompany->country_code);
1162 1162
 		if (preg_match('/\((.*)\)/i', $field, $reg)) {
1163 1163
 			$field = $reg[1];
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof6);
1166 1166
 	}
1167 1167
 	// Prof Id 7
1168
-	if (!empty($fromcompany->idprof7) &&  $fromcompany->idprof7) {
1168
+	if (!empty($fromcompany->idprof7) && $fromcompany->idprof7) {
1169 1169
 		$field = $outputlangs->transcountrynoentities("ProfId7", $fromcompany->country_code);
1170 1170
 		if (preg_match('/\((.*)\)/i', $field, $reg)) {
1171 1171
 			$field = $reg[1];
@@ -1173,7 +1173,7 @@  discard block
 block discarded – undo
1173 1173
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof7);
1174 1174
 	}
1175 1175
 	// Prof Id 8
1176
-	if (!empty($fromcompany->idprof8) &&  $fromcompany->idprof8) {
1176
+	if (!empty($fromcompany->idprof8) && $fromcompany->idprof8) {
1177 1177
 		$field = $outputlangs->transcountrynoentities("ProfId8", $fromcompany->country_code);
1178 1178
 		if (preg_match('/\((.*)\)/i', $field, $reg)) {
1179 1179
 			$field = $reg[1];
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof8);
1182 1182
 	}
1183 1183
 	// Prof Id 9
1184
-	if (!empty($fromcompany->idprof9) &&  $fromcompany->idprof9) {
1184
+	if (!empty($fromcompany->idprof9) && $fromcompany->idprof9) {
1185 1185
 		$field = $outputlangs->transcountrynoentities("ProfId9", $fromcompany->country_code);
1186 1186
 		if (preg_match('/\((.*)\)/i', $field, $reg)) {
1187 1187
 			$field = $reg[1];
@@ -1189,7 +1189,7 @@  discard block
 block discarded – undo
1189 1189
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof9);
1190 1190
 	}
1191 1191
 	// Prof Id 10
1192
-	if (!empty($fromcompany->idprof10) &&  $fromcompany->idprof10) {
1192
+	if (!empty($fromcompany->idprof10) && $fromcompany->idprof10) {
1193 1193
 		$field = $outputlangs->transcountrynoentities("ProfId10", $fromcompany->country_code);
1194 1194
 		if (preg_match('/\((.*)\)/i', $field, $reg)) {
1195 1195
 			$field = $reg[1];
@@ -1197,7 +1197,7 @@  discard block
 block discarded – undo
1197 1197
 		$line4 .= ($line4 ? " - " : "").$field.": ".$outputlangs->convToOutputCharset($fromcompany->idprof10);
1198 1198
 	}
1199 1199
 	// IntraCommunautary VAT
1200
-	if (!empty($fromcompany->tva_intra)  && $fromcompany->tva_intra != '') {
1200
+	if (!empty($fromcompany->tva_intra) && $fromcompany->tva_intra != '') {
1201 1201
 		$line4 .= ($line4 ? " - " : "").$outputlangs->transnoentities("VATIntraShort").": ".$outputlangs->convToOutputCharset($fromcompany->tva_intra);
1202 1202
 	}
1203 1203
 
@@ -1368,7 +1368,7 @@  discard block
 block discarded – undo
1368 1368
 
1369 1369
 	$pagination = $pdf->PageNo().' / '.$pdf->getAliasNbPages();
1370 1370
 	$fontRenderCorrection = 0;
1371
-	if (in_array(pdf_getPDFFont($outputlangs), array('freemono',  'DejaVuSans'))) {
1371
+	if (in_array(pdf_getPDFFont($outputlangs), array('freemono', 'DejaVuSans'))) {
1372 1372
 		$fontRenderCorrection = 10;
1373 1373
 	}
1374 1374
 	$pdf->MultiCell(18 + $fontRenderCorrection, 2, $pagination, 0, 'R', 0);
@@ -1465,7 +1465,7 @@  discard block
 block discarded – undo
1465 1465
 
1466 1466
 		if (getDolGlobalString('MARGIN_TOP_ZERO_UL')) {
1467 1467
 			$pdf->setListIndentWidth(5);
1468
-			$TMarginList = ['ul' => [['h' => 0.1, ],['h' => 0.1, ]], 'li' => [['h' => 0.1, ],],];
1468
+			$TMarginList = ['ul' => [['h' => 0.1, ], ['h' => 0.1, ]], 'li' => [['h' => 0.1, ], ], ];
1469 1469
 			$pdf->setHtmlVSpace($TMarginList);
1470 1470
 		}
1471 1471
 
@@ -1507,7 +1507,7 @@  discard block
 block discarded – undo
1507 1507
 		$prodser = new Product($db);
1508 1508
 
1509 1509
 		if (getDolGlobalString('PRODUIT_CUSTOMER_PRICES')) {
1510
-			include_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php';
1510
+			include_once DOL_DOCUMENT_ROOT.'/product/class/productcustomerprice.class.php';
1511 1511
 		}
1512 1512
 	}
1513 1513
 
@@ -1554,7 +1554,7 @@  discard block
 block discarded – undo
1554 1554
 		$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
1555 1555
 	}
1556 1556
 
1557
-	$libelleproduitservice = '';  // Default value
1557
+	$libelleproduitservice = ''; // Default value
1558 1558
 	if (!getDolGlobalString('PDF_HIDE_PRODUCT_LABEL_IN_SUPPLIER_LINES')) {
1559 1559
 		// Description short of product line
1560 1560
 		$libelleproduitservice = $label;
@@ -1588,8 +1588,7 @@  discard block
 block discarded – undo
1588 1588
 					$libelleproduitservice = dol_concatdesc(
1589 1589
 						dol_concatdesc($libelleproduitservice, " * ".$subprodval[3]),
1590 1590
 						(!empty($qtyText) ?
1591
-							$outputlangs->trans('Qty').':'.$qtyText.' x '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1].'= '.$outputlangs->trans('QtyTot').':'.$subprodval[1] * $qtyText :
1592
-							$outputlangs->trans('Qty').' '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1])
1591
+							$outputlangs->trans('Qty').':'.$qtyText.' x '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1].'= '.$outputlangs->trans('QtyTot').':'.$subprodval[1] * $qtyText : $outputlangs->trans('Qty').' '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1])
1593 1592
 					);
1594 1593
 				}
1595 1594
 			} else {
@@ -1597,8 +1596,7 @@  discard block
 block discarded – undo
1597 1596
 					$libelleproduitservice = dol_concatdesc(
1598 1597
 						dol_concatdesc($libelleproduitservice, " * ".$subprodval[5].(($subprodval[5] && $subprodval[3]) ? ' - ' : '').$subprodval[3]),
1599 1598
 						(!empty($qtyText) ?
1600
-							$outputlangs->trans('Qty').':'.$qtyText.' x '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1].'= '.$outputlangs->trans('QtyTot').':'.$subprodval[1] * $qtyText :
1601
-							$outputlangs->trans('Qty').' '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1])
1599
+							$outputlangs->trans('Qty').':'.$qtyText.' x '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1].'= '.$outputlangs->trans('QtyTot').':'.$subprodval[1] * $qtyText : $outputlangs->trans('Qty').' '.$outputlangs->trans('AssociatedProducts').':'.$subprodval[1])
1602 1600
 					);
1603 1601
 				}
1604 1602
 			}
@@ -1701,11 +1699,11 @@  discard block
 block discarded – undo
1701 1699
 								break;
1702 1700
 
1703 1701
 							case 2:
1704
-								$ref_prodserv = $productCustomerPrice->ref_customer . ' (' . $outputlangs->transnoentitiesnoconv('InternalRef') . ' ' . $ref_prodserv . ')';
1702
+								$ref_prodserv = $productCustomerPrice->ref_customer.' ('.$outputlangs->transnoentitiesnoconv('InternalRef').' '.$ref_prodserv.')';
1705 1703
 								break;
1706 1704
 
1707 1705
 							default:
1708
-								$ref_prodserv = $ref_prodserv . ' (' . $outputlangs->transnoentitiesnoconv('RefCustomer') . ' ' . $productCustomerPrice->ref_customer . ')';
1706
+								$ref_prodserv = $ref_prodserv.' ('.$outputlangs->transnoentitiesnoconv('RefCustomer').' '.$productCustomerPrice->ref_customer.')';
1709 1707
 						}
1710 1708
 					}
1711 1709
 				}
@@ -2558,7 +2556,7 @@  discard block
 block discarded – undo
2558 2556
 						}
2559 2557
 					}
2560 2558
 
2561
-					if (! is_object($order)) {
2559
+					if (!is_object($order)) {
2562 2560
 						$object->note_public = dol_concatdesc($object->note_public, $outputlangs->transnoentities($elementobject->ref));
2563 2561
 					} else {
2564 2562
 						$object->note_public = dol_concatdesc($object->note_public, $outputlangs->convToOutputCharset($order->ref).($order->ref_client ? ' ('.$order->ref_client.')' : ''));
@@ -2581,7 +2579,7 @@  discard block
 block discarded – undo
2581 2579
 					}
2582 2580
 				}
2583 2581
 
2584
-				if (! is_object($order)) {
2582
+				if (!is_object($order)) {
2585 2583
 					$linkedobjects[$objecttype]['ref_title'] = $outputlangs->transnoentities("RefSending");
2586 2584
 					if (empty($linkedobjects[$objecttype]['ref_value'])) {
2587 2585
 						$linkedobjects[$objecttype]['ref_value'] = '';
@@ -2683,7 +2681,7 @@  discard block
 block discarded – undo
2683 2681
 				if (isset($hookmanager->resArray['linetotalremise'])) {
2684 2682
 					return $hookmanager->resArray['linetotalremise'];
2685 2683
 				} else {
2686
-					return (float) $hookmanager->resPrint;	// For backward compatibility
2684
+					return (float) $hookmanager->resPrint; // For backward compatibility
2687 2685
 				}
2688 2686
 			}
2689 2687
 		}
Please login to merge, or discard this patch.
htdocs/core/class/html.formactions.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
 
250 250
 			$error = 0;
251 251
 			if (empty($reshook)) {
252
-				print '<!-- formactions->showactions -->' . "\n";
252
+				print '<!-- formactions->showactions -->'."\n";
253 253
 				print load_fiche_titre($title, $morehtmlright, '', 0, '', '', $morehtmlcenter);
254 254
 			}
255 255
 
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 		$caction = new CActionComm($this->db);
383 383
 
384 384
 		// Suggest a list with manual events or all auto events
385
-		$arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot, '', 0);		// If we use param 'all' instead of 'code', there is no group by include in answer but the key 'type' of answer array contains the key for the group by.
385
+		$arraylist = $caction->liste_array(1, 'code', $excludetype, $onlyautoornot, '', 0); // If we use param 'all' instead of 'code', there is no group by include in answer but the key 'type' of answer array contains the key for the group by.
386 386
 		/* Removed. The empty line must now be managed with param showempty
387 387
 		if (empty($multiselect)) {
388 388
 			// Add empty line at start only if no multiselect
Please login to merge, or discard this patch.
htdocs/adherents/messaging.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 	// Try to know count of actioncomm from cache
195 195
 	require_once DOL_DOCUMENT_ROOT.'/core/lib/memory.lib.php';
196 196
 	$cachekey = 'count_events_member_'.$object->id;
197
-	$nbEvent = dol_getcache($cachekey);	// TODO Add nb into badge in menu so we can get it from cache also here
197
+	$nbEvent = dol_getcache($cachekey); // TODO Add nb into badge in menu so we can get it from cache also here
198 198
 
199 199
 	$titlelist = $langs->trans("ActionsOnMember").(is_numeric($nbEvent) ? '<span class="opacitymedium colorblack paddingleft">('.$nbEvent.')</span>' : '');
200 200
 	if (!empty($conf->dol_optimize_smallscreen)) {
Please login to merge, or discard this patch.