Completed
Pull Request — master (#665)
by Fabio
47:56 queued 31:05
created
framework/Web/Javascripts/TJavaScriptLiteral.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
 	public function __toString()
49 49
 	{
50
-		return (string)$this->_s;
50
+		return (string) $this->_s;
51 51
 	}
52 52
 
53 53
 	public function toJavaScriptLiteral()
Please login to merge, or discard this patch.
framework/Web/THttpUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
  */
21 21
 class THttpUtility
22 22
 {
23
-	private static $_encodeTable = ['<' => '&lt;','>' => '&gt;','"' => '&quot;'];
24
-	private static $_decodeTable = ['&lt;' => '<','&gt;' => '>','&quot;' => '"'];
25
-	private static $_stripTable = ['&lt;' => '','&gt;' => '','&quot;' => ''];
23
+	private static $_encodeTable = ['<' => '&lt;', '>' => '&gt;', '"' => '&quot;'];
24
+	private static $_decodeTable = ['&lt;' => '<', '&gt;' => '>', '&quot;' => '"'];
25
+	private static $_stripTable = ['&lt;' => '', '&gt;' => '', '&quot;' => ''];
26 26
 
27 27
 	/**
28 28
 	 * HTML-encodes a string.
Please login to merge, or discard this patch.
framework/Data/Common/Oracle/TOracleTableColumn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 class TOracleTableColumn extends TDbTableColumn
29 29
 {
30 30
 	private static $types = [
31
-		'numeric' => [ 'numeric' ]
31
+		'numeric' => ['numeric']
32 32
 //		'integer' => array('bit', 'bit varying', 'real', 'serial', 'int', 'integer'),
33 33
 //		'boolean' => array('boolean'),
34 34
 //		'float' => array('bigint', 'bigserial', 'double precision', 'money', 'numeric')
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/TActiveRecordManager.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	public function setGatewayClass($value)
130 130
 	{
131 131
 		$this->_gateway = null;
132
-		$this->_gatewayClass = (string)$value;
132
+		$this->_gatewayClass = (string) $value;
133 133
 	}
134 134
 
135 135
 	/**
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 	 * @var TActiveRecordInvalidFinderResult
57 57
 	 * @since 3.1.5
58 58
 	 */
59
-	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null;
59
+	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null;
60 60
 
61 61
 	/**
62 62
 	 * @return ICache application cache.
Please login to merge, or discard this patch.
framework/Data/TDbDataReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 	public function setFetchMode($mode)
80 80
 	{
81 81
 		$params = func_get_args();
82
-		call_user_func_array([$this->_statement,'setFetchMode'], $params);
82
+		call_user_func_array([$this->_statement, 'setFetchMode'], $params);
83 83
 	}
84 84
 
85 85
 	/**
Please login to merge, or discard this patch.
framework/Data/Common/Pgsql/TPgsqlMetaData.php 2 patches
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 				nspname = :schema))
138 138
 			AND a.attnum > 0 AND NOT a.attisdropped
139 139
 		ORDER BY a.attnum
140
-EOD;
140
+eod;
141 141
 		$this->getDbConnection()->setActive(true);
142 142
 		$command = $this->getDbConnection()->createCommand($sql);
143 143
 		$command->bindValue(':table', $tableName);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 		SELECT count(c.relname) FROM pg_catalog.pg_class c
198 198
 		LEFT JOIN pg_catalog.pg_namespace n ON (n.oid = c.relnamespace)
199 199
 		WHERE (n.nspname=:schema) AND (c.relkind = 'v'::"char") AND c.relname = :table
200
-EOD;
200
+eod;
201 201
 		$this->getDbConnection()->setActive(true);
202 202
 		$command = $this->getDbConnection()->createCommand($sql);
203 203
 		$command->bindValue(':schema', $schemaName);
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 					WHERE nspname=:schema))
333 333
 	ORDER BY
334 334
 			1
335
-EOD;
335
+eod;
336 336
 		$this->getDbConnection()->setActive(true);
337 337
 		$command = $this->getDbConnection()->createCommand($sql);
338 338
 		$command->bindValue(':table', $tableName);
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
 			)
373 373
 		)
374 374
 				AND attnum IN ({$index})
375
-EOD;
375
+eod;
376 376
 		$command = $this->getDbConnection()->createCommand($sql);
377 377
 		$command->bindValue(':table', $tableName);
378 378
 		$command->bindValue(':schema', $schemaName);
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
 		$sql = <<<EOD
435 435
 SELECT table_name, table_schema FROM information_schema.tables
436 436
 WHERE table_schema=:schema AND table_type='BASE TABLE'
437
-EOD;
437
+eod;
438 438
 		$command = $this->getDbConnection()->createCommand($sql);
439 439
 		$command->bindParam(':schema', $schema);
440 440
 		$rows = $command->queryAll();
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 		if (count($parts = explode('.', str_replace('"', '', $table))) > 1) {
93 93
 			return [$parts[0], $parts[1]];
94 94
 		} else {
95
-			return [$this->getDefaultSchema(),$parts[0]];
95
+			return [$this->getDefaultSchema(), $parts[0]];
96 96
 		}
97 97
 	}
98 98
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 					break;
354 354
 			}
355 355
 		}
356
-		return [$primary,$foreign];
356
+		return [$primary, $foreign];
357 357
 	}
358 358
 
359 359
 	/**
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 			$fname = ucwords(str_replace('_', ' ', $name));
71 71
 			$sorts[$name . ' ASC'] = $fname . ' Ascending';
72 72
 			$sorts[$name . ' DESC'] = $fname . ' Descending';
73
-			$headers[] = $fname ;
73
+			$headers[] = $fname;
74 74
 		}
75 75
 		$this->_sort->setDataSource($sorts);
76 76
 		$this->_sort->dataBind();
Please login to merge, or discard this patch.
framework/Data/ActiveRecord/TActiveRecordConfig.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	 * @var TActiveRecordInvalidFinderResult
103 103
 	 * @since 3.1.5
104 104
 	 */
105
-	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::Null;
105
+	private $_invalidFinderResult = TActiveRecordInvalidFinderResult::null;
106 106
 
107 107
 	/**
108 108
 	 * Initialize the active record manager.
Please login to merge, or discard this patch.
framework/Web/TCacheHttpSession.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
 	 */
101 101
 	public function _read($id)
102 102
 	{
103
-		return (string)$this->_cache->get($this->calculateKey($id));
103
+		return (string) $this->_cache->get($this->calculateKey($id));
104 104
 	}
105 105
 
106 106
 	/**
Please login to merge, or discard this patch.