Completed
Branch develop (a31803)
by Laurent
21:16
created
htdocs/product/fournisseurs.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -695,7 +695,7 @@
 block discarded – undo
695 695
             });
696 696
         });
697 697
     </script>
698
-END;
698
+end;
699 699
 				} else {
700 700
 					// Price qty min
701 701
 					print '<tr><td class="fieldrequired">'.$langs->trans("PriceQtyMin").'</td>';
Please login to merge, or discard this patch.
htdocs/core/db/sqlite3.class.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1270,7 +1270,7 @@
 block discarded – undo
1270 1270
 
1271 1271
 		// TODO prendre en compte le filtre
1272 1272
 		foreach ($pragmas as $var) {
1273
-			$sql = "PRAGMA $var";
1273
+			$sql = "pragma $var";
1274 1274
 			$resql = $this->query($sql);
1275 1275
 			if ($resql) {
1276 1276
 				$obj = $this->fetch_row($resql);
Please login to merge, or discard this patch.
htdocs/core/lib/date.lib.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -682,7 +682,7 @@
 block discarded – undo
682 682
 {
683 683
 	$base = new DateTime("$year-03-21", new DateTimeZone("UTC"));
684 684
 	$days = easter_days($year); // Return number of days between 21 march and easter day.
685
-	$tmp = $base->add(new DateInterval("P{$days}D"));
685
+	$tmp = $base->add(new DateInterval("p{$days}d"));
686 686
 	return $tmp->getTimestamp();
687 687
 }
688 688
 
Please login to merge, or discard this patch.
htdocs/asset/tpl/depreciation_options_edit.tpl.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
 		}
222 222
 	});
223 223
 </script>
224
-SCRIPT;
224
+script;
225 225
 }
226 226
 
227 227
 ?>
Please login to merge, or discard this patch.
htdocs/core/filemanagerdol/connectors/php/connector.lib.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@
 block discarded – undo
374 374
 	echo <<<EOF
375 375
 <script type="text/javascript">
376 376
 (function(){var d=document.domain;while (true){try{var A=window.parent.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();
377
-EOF;
377
+eof;
378 378
 
379 379
 	if ($errorNumber && $errorNumber != 201) {
380 380
 		$fileUrl = "";
Please login to merge, or discard this patch.
htdocs/bom/class/bom.class.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -671,11 +671,11 @@
 block discarded – undo
671 671
 			$rankToUse = (int) $position;
672 672
 			if ($rankToUse != $line->oldcopy->position) { // check if position have a new value
673 673
 				foreach ($this->lines as $bl) {
674
-					if ($bl->position >= $rankToUse AND $bl->position < ($line->oldcopy->position + 1)) { // move rank up
674
+					if ($bl->position >= $rankToUse and $bl->position < ($line->oldcopy->position + 1)) { // move rank up
675 675
 						$bl->position++;
676 676
 						$bl->update($user);
677 677
 					}
678
-					if ($bl->position <= $rankToUse AND $bl->position > ($line->oldcopy->position)) { // move rank down
678
+					if ($bl->position <= $rankToUse and $bl->position > ($line->oldcopy->position)) { // move rank down
679 679
 						$bl->position--;
680 680
 						$bl->update($user);
681 681
 					}
Please login to merge, or discard this patch.
dev/tools/dolibarr-postgres2mysql.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
  - If you're having problems creating your postgres dump, make sure you use "--format p --inserts"
62 62
  - Default output engine if not specified is InnoDB
63 63
 
64
-XHTML;
64
+xhtml;
65 65
 }
66 66
 
67 67
 /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 function formatsize($s)
101 101
 {
102 102
 	if ($s < pow(2, 14)) {
103
-		return "{$s}B";
103
+		return "{$s}b";
104 104
 	} elseif ($s < pow(2, 20)) {
105 105
 		return sprintf("%.1f", round($s / 1024, 1)) . "K";
106 106
 	} elseif ($s < pow(2, 30)) {
Please login to merge, or discard this patch.
dev/tools/test/testtcpdf.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 Encryption Example
124 124
 
125 125
 Consult the source code documentation for the SetProtection() method.
126
-EOD;
126
+eod;
127 127
 
128 128
 // print a block of text using Write()
129 129
 $pdf->Write(0, $txt, '', 0, 'L', true, 0, false, false, 0);
Please login to merge, or discard this patch.
dev/translation/strip_language_file.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,13 +149,13 @@  discard block
 block discarded – undo
149 149
 
150 150
 			// key is redundant
151 151
 			if (array_key_exists($key, $aSecondary)) {
152
-				print "Key $key is redundant in file $lSecondaryFile (line: $cnt).\n";
152
+				print "key $key is redundant in file $lSecondaryFile (line: $cnt).\n";
153 153
 				continue;
154 154
 			}
155 155
 
156 156
 			// String has no value
157 157
 			if ($value == '') {
158
-				print "Key $key has no value in file $lSecondaryFile (line: $cnt).\n";
158
+				print "key $key has no value in file $lSecondaryFile (line: $cnt).\n";
159 159
 				continue;
160 160
 			}
161 161
 
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
 
204 204
 			// key is redundant
205 205
 			if (array_key_exists($key, $aEnglish)) {
206
-				print "Key $key is redundant in file $lEnglishFile (line: $cnt).\n";
206
+				print "key $key is redundant in file $lEnglishFile (line: $cnt).\n";
207 207
 				continue;
208 208
 			}
209 209
 
210 210
 			// String has no value
211 211
 			if ($value == '') {
212
-				print "Key $key has no value in file $lEnglishFile (line: $cnt).\n";
212
+				print "key $key has no value in file $lEnglishFile (line: $cnt).\n";
213 213
 				continue;
214 214
 			}
215 215
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
 			// key is redundant
274 274
 			if (array_key_exists($key, $aPrimary)) {
275
-				print "Key $key is redundant in file $lPrimaryFile (line: $cnt) - Already found into ".$fileFirstFound[$key]." (line: ".$lineFirstFound[$key].").\n";
275
+				print "key $key is redundant in file $lPrimaryFile (line: $cnt) - Already found into ".$fileFirstFound[$key]." (line: ".$lineFirstFound[$key].").\n";
276 276
 				continue;
277 277
 			} else {
278 278
 				$fileFirstFound[$key] = $fileToProcess;
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
 			// String has no value
283 283
 			if ($value == '') {
284
-				print "Key $key has no value in file $lPrimaryFile (line: $cnt).\n";
284
+				print "key $key has no value in file $lPrimaryFile (line: $cnt).\n";
285 285
 				continue;
286 286
 			}
287 287
 
Please login to merge, or discard this patch.