Completed
Branch develop (e85e15)
by
unknown
25:35
created
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.
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/initdata/generate-thirdparty.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
 
106 106
 print "Generates ".GEN_NUMBER_SOCIETE." companies\n";
107 107
 for ($s = 0; $s < GEN_NUMBER_SOCIETE; $s++) {
108
-	print "Company $s\n";
108
+	print "company $s\n";
109 109
 	$soc = new Societe($db);
110 110
 	$soc->name = "Company num ".time()."$s";
111 111
 	$soc->town = $listoftown[mt_rand(0, count($listoftown)-1)];
Please login to merge, or discard this patch.
htdocs/includes/odtphp/zip/PclZipProxy.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
 			|| !file_exists($filename)) {
122 122
 			return false;
123 123
 		}
124
-		if (isSet($localname)) {
124
+		if (isset($localname)) {
125 125
 			$localname = preg_replace("/(?:\.|\/)*(.*)/", "\\1", $localname);
126 126
 			$localpath = dirname($localname);
127 127
 			$tmpfilename = $this->tmpdir . '/' . basename($localname);
Please login to merge, or discard this patch.
htdocs/includes/odtphp/Segment.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
 
261 261
 		$xml = <<<IMG
262 262
 <draw:frame draw:style-name="fr1" draw:name="$filename" text:anchor-type="aschar" svg:width="{$width}cm" svg:height="{$height}cm" draw:z-index="3"><draw:image xlink:href="Pictures/$file" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></draw:frame>
263
-IMG;
263
+img;
264 264
 		$this->images[$value] = $file;
265 265
 		$this->setVars($key, $xml, false);
266 266
 		return $this;
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/dav/lib/CalDAV/Backend/PDO.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,11 +163,11 @@  discard block
 block discarded – undo
163 163
         // Making fields a comma-delimited list
164 164
         $fields = implode(', ', $fields);
165 165
         $stmt = $this->pdo->prepare(<<<SQL
166
-SELECT {$this->calendarInstancesTableName}.id as id, $fields FROM {$this->calendarInstancesTableName}
166
+select {$this->calendarInstancesTableName}.id as id, $fields FROM {$this->calendarInstancesTableName}
167 167
     LEFT JOIN {$this->calendarTableName} ON
168 168
         {$this->calendarInstancesTableName}.calendarid = {$this->calendarTableName}.id
169 169
 WHERE principaluri = ? ORDER BY calendarorder ASC
170
-SQL
170
+sql
171 171
         );
172 172
         $stmt->execute([$principalUri]);
173 173
 
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
     calendarobjects.uid = ?
875 875
     AND
876 876
     calendar_instances.access = 1
877
-SQL;
877
+sql;
878 878
 
879 879
         $stmt = $this->pdo->prepare($query);
880 880
         $stmt->execute([$principalUri, $uid]);
@@ -1452,7 +1452,7 @@  discard block
 block discarded – undo
1452 1452
 FROM {$this->calendarInstancesTableName}
1453 1453
 WHERE
1454 1454
     calendarid = ?
1455
-SQL;
1455
+sql;
1456 1456
 
1457 1457
         $stmt = $this->pdo->prepare($query);
1458 1458
         $stmt->execute([$calendarId]);
Please login to merge, or discard this patch.