Completed
Branch develop (42a3b4)
by
unknown
21:25
created
htdocs/variants/class/ProductCombination2ValuePair.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
 	 */
70 70
 	public function __toString()
71 71
 	{
72
-		require_once DOL_DOCUMENT_ROOT . '/variants/class/ProductAttributeValue.class.php';
73
-		require_once DOL_DOCUMENT_ROOT . '/variants/class/ProductAttribute.class.php';
72
+		require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductAttributeValue.class.php';
73
+		require_once DOL_DOCUMENT_ROOT.'/variants/class/ProductAttribute.class.php';
74 74
 
75 75
 		$prodattr = new ProductAttribute($this->db);
76 76
 		$prodattrval = new ProductAttributeValue($this->db);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 		$prodattr->fetch($this->fk_prod_attr);
79 79
 		$prodattrval->fetch($this->fk_prod_attr_val);
80 80
 
81
-		return $prodattr->label . ': ' . $prodattrval->value;
81
+		return $prodattr->label.': '.$prodattrval->value;
82 82
 	}
83 83
 
84 84
 	/**
@@ -89,14 +89,14 @@  discard block
 block discarded – undo
89 89
 	 */
90 90
 	public function create($user)
91 91
 	{
92
-		$sql = "INSERT INTO " . MAIN_DB_PREFIX . "product_attribute_combination2val
92
+		$sql = "INSERT INTO ".MAIN_DB_PREFIX."product_attribute_combination2val
93 93
 		(fk_prod_combination, fk_prod_attr, fk_prod_attr_val)
94
-		VALUES(" . (int) $this->fk_prod_combination . ", " . (int) $this->fk_prod_attr . ", " . (int) $this->fk_prod_attr_val . ")";
94
+		VALUES(" . (int) $this->fk_prod_combination.", ".(int) $this->fk_prod_attr.", ".(int) $this->fk_prod_attr_val.")";
95 95
 
96 96
 		$query = $this->db->query($sql);
97 97
 
98 98
 		if ($query) {
99
-			$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . 'product_attribute_combination2val');
99
+			$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX.'product_attribute_combination2val');
100 100
 
101 101
 			return 1;
102 102
 		}
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         c2v.fk_prod_attr_val,
118 118
         c2v.fk_prod_attr,
119 119
         c2v.fk_prod_combination
120
-        FROM " . MAIN_DB_PREFIX . "product_attribute c LEFT JOIN " . MAIN_DB_PREFIX . "product_attribute_combination2val c2v ON c.rowid = c2v.fk_prod_attr
120
+        FROM " . MAIN_DB_PREFIX."product_attribute c LEFT JOIN ".MAIN_DB_PREFIX."product_attribute_combination2val c2v ON c.rowid = c2v.fk_prod_attr
121 121
         WHERE c2v.fk_prod_combination = " . (int) $fk_combination;
122 122
 
123 123
 		$sql .= $this->db->order('c.position', 'asc');
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	 */
152 152
 	public function deleteByFkCombination($fk_combination)
153 153
 	{
154
-		$sql = "DELETE FROM " . MAIN_DB_PREFIX . "product_attribute_combination2val WHERE fk_prod_combination = " . (int) $fk_combination;
154
+		$sql = "DELETE FROM ".MAIN_DB_PREFIX."product_attribute_combination2val WHERE fk_prod_combination = ".(int) $fk_combination;
155 155
 
156 156
 		if ($this->db->query($sql)) {
157 157
 			return 1;
Please login to merge, or discard this patch.
htdocs/core/modules/mailings/contacts1.modules.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 */
121 121
 	public function formFilter()
122 122
 	{
123
-		global $conf,$langs;
123
+		global $conf, $langs;
124 124
 
125 125
 		// Load translation files required by the page
126 126
 		$langs->loadLangs(array("commercial", "companies", "suppliers", "categories"));
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 		$sql = "SELECT sp.poste, count(distinct(sp.email)) AS nb";
132 132
 		$sql .= " FROM ".MAIN_DB_PREFIX."socpeople as sp";
133 133
 		$sql .= " WHERE sp.entity IN (".getEntity('contact').")";
134
-		$sql .= " AND sp.email <> ''";    // Note that null != '' is false
134
+		$sql .= " AND sp.email <> ''"; // Note that null != '' is false
135 135
 		$sql .= " AND sp.statut = 1";
136 136
 		$sql .= " AND (sp.poste IS NOT NULL AND sp.poste <> '')";
137 137
 		$sql .= " GROUP BY sp.poste";
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 		$sql .= " ".MAIN_DB_PREFIX."categorie as c,";
167 167
 		$sql .= " ".MAIN_DB_PREFIX."categorie_contact as cs";
168 168
 		$sql .= " WHERE sp.entity IN (".getEntity('contact').")";
169
-		$sql .= " AND sp.email <> ''";    // Note that null != '' is false
169
+		$sql .= " AND sp.email <> ''"; // Note that null != '' is false
170 170
 		$sql .= " AND sp.statut = 1";
171 171
 		$sql .= " AND cs.fk_categorie = c.rowid";
172 172
 		$sql .= " AND cs.fk_socpeople = sp.rowid";
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
 		$sql .= " ".MAIN_DB_PREFIX."categorie as c,";
240 240
 		$sql .= " ".MAIN_DB_PREFIX."categorie_societe as cs";
241 241
 		$sql .= " WHERE sp.entity IN (".getEntity('contact').")";
242
-		$sql .= " AND sp.email <> ''";    // Note that null != '' is false
242
+		$sql .= " AND sp.email <> ''"; // Note that null != '' is false
243 243
 		$sql .= " AND sp.statut = 1";
244 244
 		$sql .= " AND cs.fk_categorie = c.rowid";
245 245
 		$sql .= " AND cs.fk_soc = sp.fk_soc";
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 		$sql .= " ".MAIN_DB_PREFIX."categorie as c,";
277 277
 		$sql .= " ".MAIN_DB_PREFIX."categorie_fournisseur as cs";
278 278
 		$sql .= " WHERE sp.entity IN (".getEntity('contact').")";
279
-		$sql .= " AND sp.email <> ''";    // Note that null != '' is false
279
+		$sql .= " AND sp.email <> ''"; // Note that null != '' is false
280 280
 		$sql .= " AND sp.statut = 1";
281 281
 		$sql .= " AND cs.fk_categorie = c.rowid";
282 282
 		$sql .= " AND cs.fk_soc = sp.fk_soc";
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 
435 435
 		// Filter on job position
436 436
 		$key = $filter_jobposition;
437
-		if (!empty($key) && $key != 'all'  && $key != '-1') {
437
+		if (!empty($key) && $key != 'all' && $key != '-1') {
438 438
 			$sql .= " AND sp.poste = '".$this->db->escape($key)."'";
439 439
 		}
440 440
 
Please login to merge, or discard this patch.
htdocs/core/search_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 $title = $langs->trans("Search");
71 71
 
72 72
 // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests
73
-$head = '<!-- Quick access -->'."\n";	// This is used by DoliDroid to know page is a search page
73
+$head = '<!-- Quick access -->'."\n"; // This is used by DoliDroid to know page is a search page
74 74
 $arrayofjs = array();
75 75
 $arrayofcss = array();
76 76
 top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
 		$accesskey = '';
112 112
 		if (empty($accesskeyalreadyassigned[$val['label'][0]])) {
113
-			$accesskey = $val['label'][0];	// First char of string
113
+			$accesskey = $val['label'][0]; // First char of string
114 114
 			$accesskeyalreadyassigned[$accesskey] = $accesskey;
115 115
 		}
116 116
 
Please login to merge, or discard this patch.
htdocs/core/login/functions_http.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
  */
77 77
 function decodeHttpBasicAuth($value)
78 78
 {
79
-	$encoded_basic_auth = substr($value, 6);	// Remove the "Basic " string
79
+	$encoded_basic_auth = substr($value, 6); // Remove the "Basic " string
80 80
 	$decoded_basic_auth = base64_decode($encoded_basic_auth);
81 81
 	$credentials_basic_auth = explode(':', $decoded_basic_auth);
82 82
 
Please login to merge, or discard this patch.
htdocs/printing/admin/printing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 			$i++;
202 202
 
203 203
 			if ($key['varname'] == 'PRINTGCP_TOKEN_ACCESS') {
204
-				$keyforprovider = '';	// @BUG This must be set
204
+				$keyforprovider = ''; // @BUG This must be set
205 205
 
206 206
 				// Token
207 207
 				print '<tr class="oddeven">';
Please login to merge, or discard this patch.
htdocs/user/virtualcard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 	print $langs->trans("Text");
289 289
 	print '</td><td>';
290 290
 	require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
291
-	$extendededitor = 0;	// We force no WYSIWYG editor
291
+	$extendededitor = 0; // We force no WYSIWYG editor
292 292
 	$doleditor = new DolEditor('USER_PUBLIC_MORE', getDolUserString('USER_PUBLIC_MORE', '', $object), '', 160, 'dolibarr_notes', '', false, false, $extendededitor, ROWS_5, '90%');
293 293
 	$doleditor->Create();
294 294
 	print "</td></tr>\n";
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 
303 303
 	print '<br>';
304 304
 
305
-	print '</div>';	// End hide/show
305
+	print '</div>'; // End hide/show
306 306
 
307 307
 	print '<br>';
308 308
 
Please login to merge, or discard this patch.
dev/tools/dolibarr-postgres2mysql.php 2 patches
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.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
 
29 29
 $sapi_type = php_sapi_name();
30 30
 $script_file = basename(__FILE__);
31
-$path = dirname(__FILE__) . '/';
31
+$path = dirname(__FILE__).'/';
32 32
 
33 33
 // Test si mode batch
34 34
 $sapi_type = php_sapi_name();
35 35
 if (substr($sapi_type, 0, 3) == 'cgi') {
36
-	echo "Error: You are using PHP for CGI. To execute " . $script_file . " from command line, you must use PHP for CLI mode.\n";
36
+	echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n";
37 37
 	exit();
38 38
 }
39 39
 
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
 	if ($s < pow(2, 14)) {
103 103
 		return "{$s}B";
104 104
 	} elseif ($s < pow(2, 20)) {
105
-		return sprintf("%.1f", round($s / 1024, 1)) . "K";
105
+		return sprintf("%.1f", round($s / 1024, 1))."K";
106 106
 	} elseif ($s < pow(2, 30)) {
107
-		return sprintf("%.1f", round($s / 1024 / 1024, 1)) . "M";
107
+		return sprintf("%.1f", round($s / 1024 / 1024, 1))."M";
108 108
 	} else {
109
-		return sprintf("%.1f", round($s / 1024 / 1024 / 1024, 1)) . "G";
109
+		return sprintf("%.1f", round($s / 1024 / 1024 / 1024, 1))."G";
110 110
 	}
111 111
 }
112 112
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	}
139 139
 
140 140
 	$fs = filesize($infilename);
141
-	echo "Filesize: " . formatsize($fs) . "\n";
141
+	echo "Filesize: ".formatsize($fs)."\n";
142 142
 
143 143
 	while ($instr = fgets($infp)) {
144 144
 		$linenum++;
@@ -215,13 +215,13 @@  discard block
 block discarded – undo
215 215
 
216 216
 	fputs($outfp, "\n");
217 217
 
218
-	fputs($outfp, '/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;' . "\n");
219
-	fputs($outfp, '/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;' . "\n");
220
-	fputs($outfp, '/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;' . "\n");
221
-	fputs($outfp, '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;' . "\n");
222
-	fputs($outfp, '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;' . "\n");
223
-	fputs($outfp, '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;' . "\n");
224
-	fputs($outfp, '/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;' . "\n");
218
+	fputs($outfp, '/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;'."\n");
219
+	fputs($outfp, '/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;'."\n");
220
+	fputs($outfp, '/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;'."\n");
221
+	fputs($outfp, '/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;'."\n");
222
+	fputs($outfp, '/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;'."\n");
223
+	fputs($outfp, '/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;'."\n");
224
+	fputs($outfp, '/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;'."\n");
225 225
 
226 226
 	printf("Completed! %9d lines   %9d sql chunks\n\n", $linenum, $chunkcount);
227 227
 
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
 	}
251 251
 
252 252
 	if ($header) {
253
-		$output = "-- Converted with " . PRODUCT . "-" . VERSION . "\n";
254
-		$output .= "-- Converted on " . date("r") . "\n";
253
+		$output = "-- Converted with ".PRODUCT."-".VERSION."\n";
254
+		$output .= "-- Converted on ".date("r")."\n";
255 255
 		$output .= "\n";
256 256
 
257 257
 		$output .= "/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;\n";
@@ -282,8 +282,8 @@  discard block
 block discarded – undo
282 282
 
283 283
 		$reg = array();
284 284
 		if (preg_match('/CREATE SEQUENCE (?:public\.)(.*)_(id|rowid|id_comment)_seq/', $line, $reg)) {
285
-			$outputatend .= '-- Make field ' . $reg[2] . ' auto_increment for table ' . $reg[1] . "\n";
286
-			$outputatend .= 'ALTER TABLE ' . $reg[1] . ' CHANGE COLUMN ' . $reg[2] . ' ' . $reg[2] . ' INTEGER NOT NULL AUTO_INCREMENT;' . "\n\n";
285
+			$outputatend .= '-- Make field '.$reg[2].' auto_increment for table '.$reg[1]."\n";
286
+			$outputatend .= 'ALTER TABLE '.$reg[1].' CHANGE COLUMN '.$reg[2].' '.$reg[2].' INTEGER NOT NULL AUTO_INCREMENT;'."\n\n";
287 287
 			// var_dump($outputatend);
288 288
 		}
289 289
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 
300 300
 			$reg2 = array();
301 301
 			if (preg_match('/CREATE TABLE ([^\s]+)/', $line, $reg2)) {
302
-				$output .= 'DROP TABLE IF EXISTS `' . $reg2[1] . '`;' . "\n";
302
+				$output .= 'DROP TABLE IF EXISTS `'.$reg2[1].'`;'."\n";
303 303
 			}
304 304
 			$output .= $line;
305 305
 			$linenumber++;
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
 				$arrayofprimaryalreadyintabledef[$in_create_table] = $in_create_table;
380 380
 			}
381 381
 
382
-			$specialfields = array("repeat","status","type","call");
382
+			$specialfields = array("repeat", "status", "type", "call");
383 383
 
384 384
 			$field = getfieldname($line);
385 385
 			if (in_array($field, $specialfields)) {
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
 				$lastchr = substr($output, -2, 1);
399 399
 				// echo "lastchr=$lastchr";
400 400
 				if ($lastchr == ",") {
401
-					$output = substr($output, 0, -2) . "\n";
401
+					$output = substr($output, 0, -2)."\n";
402 402
 				}
403 403
 			}
404 404
 
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 				$after = str_replace(" (E'", " ('", $after);
424 424
 				$after = str_replace(", E'", ", '", $after);
425 425
 
426
-				$output .= $before . " VALUES " . $after;
426
+				$output .= $before." VALUES ".$after;
427 427
 				$linenumber++;
428 428
 				continue;
429 429
 			} else {
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
 					$inquotes = false;
452 452
 				}
453 453
 
454
-				$output .= $before . " VALUES " . $after;
454
+				$output .= $before." VALUES ".$after;
455 455
 				do {
456 456
 					$linenumber++;
457 457
 
@@ -501,14 +501,14 @@  discard block
 block discarded – undo
501 501
 						$output .= str_replace("\n", "", $pkey);
502 502
 						// the postgres and mysql syntax for this is (at least, in the example im looking at)
503 503
 						// identical, so we can just add it as is.
504
-						$output .= $line . "\n";
504
+						$output .= $line."\n";
505 505
 					} else {
506
-						$output .= '-- ' . str_replace("\n", "", $pkey);
507
-						$output .= '-- ' . $line . "\n";
506
+						$output .= '-- '.str_replace("\n", "", $pkey);
507
+						$output .= '-- '.$line."\n";
508 508
 					}
509 509
 				} else {
510
-					$output .= '-- ' . str_replace("\n", "", $pkey);
511
-					$output .= '-- ' . $line . "\n";
510
+					$output .= '-- '.str_replace("\n", "", $pkey);
511
+					$output .= '-- '.$line."\n";
512 512
 				}
513 513
 			}
514 514
 		}
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 				$tablename = str_replace('public.', '', $matches[2]);
523 523
 				$columns = $matches[3];
524 524
 				if ($tablename && $columns) {
525
-					$output .= "ALTER TABLE `" . $tablename . "` ADD INDEX " . $indexname . "( {$columns} ) ;\n";
525
+					$output .= "ALTER TABLE `".$tablename."` ADD INDEX ".$indexname."( {$columns} ) ;\n";
526 526
 				}
527 527
 			}
528 528
 		}
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 				$tablename = str_replace('public.', '', $matches[2]);
535 535
 				$columns = str_replace('"', '', $matches[3]);
536 536
 				if ($tablename && $columns) {
537
-					$output .= "ALTER TABLE `" . $tablename . "` ADD UNIQUE INDEX " . $indexname . " ( {$columns} ) ;\n";
537
+					$output .= "ALTER TABLE `".$tablename."` ADD UNIQUE INDEX ".$indexname." ( {$columns} ) ;\n";
538 538
 				}
539 539
 			}
540 540
 		}
@@ -565,16 +565,16 @@  discard block
 block discarded – undo
565 565
 			if ($line == "\\.\n") {
566 566
 				$in_insert = false;
567 567
 				if ($values) {
568
-					$output .= "INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n\n";
568
+					$output .= "INSERT INTO $heads VALUES\n".implode(",\n", $values).";\n\n";
569 569
 				}
570 570
 			} else {
571 571
 				$vals = explode('	', $line);
572 572
 				foreach ($vals as $i => $val) {
573
-					$vals[$i] = ($val == '\\N') ? 'NULL' : "'" . str_replace("'", "\\'", trim($val)) . "'";
573
+					$vals[$i] = ($val == '\\N') ? 'NULL' : "'".str_replace("'", "\\'", trim($val))."'";
574 574
 				}
575
-				$values[] = '(' . implode(',', $vals) . ')';
575
+				$values[] = '('.implode(',', $vals).')';
576 576
 				if (count($values) >= 1000) {
577
-					$output .= "INSERT INTO $heads VALUES\n" . implode(",\n", $values) . ";\n";
577
+					$output .= "INSERT INTO $heads VALUES\n".implode(",\n", $values).";\n";
578 578
 					$values = array();
579 579
 				}
580 580
 			}
@@ -583,5 +583,5 @@  discard block
 block discarded – undo
583 583
 		$linenumber++;
584 584
 	}
585 585
 
586
-	return array('output' => $output,'outputatend' => $outputatend);
586
+	return array('output' => $output, 'outputatend' => $outputatend);
587 587
 }
Please login to merge, or discard this patch.
dev/tools/test/namespacemig/bbb.class.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class Bbb
20 20
 {
21
-	const BBB='bbb';
21
+	const BBB = 'bbb';
22 22
 
23 23
 	/**
24 24
 	 * do
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	{
30 30
 		global $globalaaa, $globalbbb;
31 31
 		echo 'dobbb'."\n";
32
-		$globalaaa.='+bbb';
33
-		$globalbbb.='+bbb';
32
+		$globalaaa .= '+bbb';
33
+		$globalbbb .= '+bbb';
34 34
 	}
35 35
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,9 +25,11 @@
 block discarded – undo
25 25
 	 *
26 26
 	 * @return void
27 27
 	 */
28
-	public function do()
28
+	public function do {
29
+		()
29 30
 	{
30 31
 		global $globalaaa, $globalbbb;
32
+	}
31 33
 		echo 'dobbb'."\n";
32 34
 		$globalaaa.='+bbb';
33 35
 		$globalbbb.='+bbb';
Please login to merge, or discard this patch.
dev/tools/test/namespacemig/aaa.class.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
  */
21 21
 class Aaa
22 22
 {
23
-	const AAA='aaa';
23
+	const AAA = 'aaa';
24 24
 
25 25
 	/**
26 26
 	 * do
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,8 +27,10 @@
 block discarded – undo
27 27
 	 *
28 28
 	 * @return void
29 29
 	 */
30
-	public function do()
30
+	public function do {
31
+		()
31 32
 	{
32 33
 		echo 'doaaa'."\n";
33 34
 	}
35
+	}
34 36
 }
Please login to merge, or discard this patch.