@@ -695,7 +695,7 @@ |
||
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>'; |
@@ -1270,7 +1270,7 @@ |
||
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); |
@@ -682,7 +682,7 @@ |
||
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 |
@@ -221,7 +221,7 @@ |
||
221 | 221 | } |
222 | 222 | }); |
223 | 223 | </script> |
224 | -SCRIPT; |
|
224 | +script; |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | ?> |
@@ -374,7 +374,7 @@ |
||
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 = ""; |
@@ -671,11 +671,11 @@ |
||
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 | } |
@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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)) { |
@@ -123,7 +123,7 @@ |
||
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); |
@@ -149,13 +149,13 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |