| @@ -56,7 +56,7 @@ | ||
| 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. | 
| @@ -328,7 +328,7 @@ | ||
| 328 | 328 |  	{ | 
| 329 | 329 | $req = $this->recaptcha_qsencode($data); | 
| 330 | 330 | |
| 331 | - $http_request = "POST $path HTTP/1.0\r\n"; | |
| 331 | + $http_request = "post $path HTTP/1.0\r\n"; | |
| 332 | 332 | $http_request .= "Host: $host\r\n"; | 
| 333 | 333 | $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n"; | 
| 334 | 334 | $http_request .= "Content-Length: " . strlen($req) . "\r\n"; | 
| @@ -180,8 +180,7 @@ | ||
| 180 | 180 | |
| 181 | 181 | public function validate() | 
| 182 | 182 |  	{ | 
| 183 | - if (! | |
| 184 | - ( | |
| 183 | + if (!( | |
| 185 | 184 | ($challenge = @$_POST[$this->getChallengeFieldName()]) | 
| 186 | 185 | and | 
| 187 | 186 | ($response = @$_POST[$this->getResponseFieldName()]) | 
| @@ -318,7 +318,7 @@ discard block | ||
| 318 | 318 |  	{ | 
| 319 | 319 | $table = $this->getTableInfo()->getTableFullName(); | 
| 320 | 320 |  		$fields = implode(', ', $this -> getSelectFieldList($select)); | 
| 321 | -		$sql = "SELECT {$fields} FROM {$table}"; | |
| 321 | +		$sql = "select {$fields} FROM {$table}"; | |
| 322 | 322 |  		if (!empty($where)) { | 
| 323 | 323 |  			$sql .= " WHERE {$where}"; | 
| 324 | 324 | } | 
| @@ -405,7 +405,7 @@ discard block | ||
| 405 | 405 |  		if (!empty($where)) { | 
| 406 | 406 | $where = ' WHERE ' . $where; | 
| 407 | 407 | } | 
| 408 | -		$command = $this->createCommand("UPDATE {$table} SET {$fields}" . $where); | |
| 408 | +		$command = $this->createCommand("update {$table} SET {$fields}" . $where); | |
| 409 | 409 | $this->bindArrayValues($command, array_merge($data, $parameters)); | 
| 410 | 410 | return $command; | 
| 411 | 411 | } | 
| @@ -233,7 +233,7 @@ | ||
| 233 | 233 |  		if (($where = $criteria->getCondition()) === null) { | 
| 234 | 234 | $where = '1=1'; | 
| 235 | 235 | } | 
| 236 | -		$sql = "SELECT {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}"; | |
| 236 | +		$sql = "select {$fkTable}.*, {$srcColumns} FROM {$fkTable} {$innerJoin} WHERE {$where}"; | |
| 237 | 237 | |
| 238 | 238 | $parameters = $criteria->getParameters()->toArray(); | 
| 239 | 239 | $ordering = $criteria->getOrdersBy(); | 
| @@ -140,7 +140,7 @@ | ||
| 140 | 140 | } | 
| 141 | 141 | |
| 142 | 142 |  		if (is_file($filename) == false) { | 
| 143 | -			throw new Exception("File $filename not found"); | |
| 143 | +			throw new Exception("file $filename not found"); | |
| 144 | 144 | } | 
| 145 | 145 | |
| 146 | 146 | include_once $filename; | 
| @@ -377,7 +377,7 @@ | ||
| 377 | 377 | break; | 
| 378 | 378 | } | 
| 379 | 379 | $method = self::$_steps[$this->_step]; | 
| 380 | -				Prado::trace("Executing $method()", 'Prado\TApplication'); | |
| 380 | +				Prado::trace("executing $method()", 'Prado\TApplication'); | |
| 381 | 381 | $this->$method(); | 
| 382 | 382 | $this->_step++; | 
| 383 | 383 | } | 
| @@ -1257,6 +1257,6 @@ | ||
| 1257 | 1257 |  	{ | 
| 1258 | 1258 | $this->flushOutput(false); // flush all remaining content in the buffer | 
| 1259 | 1259 |  		$this->raiseEvent('OnEndRequest', $this, null); | 
| 1260 | - $this->saveGlobals(); // save global state | |
| 1260 | + $this->saveGlobals(); // save global state | |
| 1261 | 1261 | } | 
| 1262 | 1262 | } | 
| @@ -295,7 +295,7 @@ | ||
| 295 | 295 | */ | 
| 296 | 296 | public function getValidationPropertyValue() | 
| 297 | 297 |  	{ | 
| 298 | -		return implode(',', array_map(function ($file) { | |
| 298 | +		return implode(',', array_map(function($file) { | |
| 299 | 299 | return $file->getFileName(); | 
| 300 | 300 | }, $this->_files)); | 
| 301 | 301 | } | 
| @@ -226,7 +226,7 @@ | ||
| 226 | 226 | */ | 
| 227 | 227 | public function clear() | 
| 228 | 228 |  	{ | 
| 229 | -		for ($i = $this->_c - 1;$i >= 0;--$i) { | |
| 229 | +		for ($i = $this->_c - 1; $i >= 0; --$i) { | |
| 230 | 230 | $this->removeAt($i); | 
| 231 | 231 | } | 
| 232 | 232 | } | 
| @@ -127,7 +127,7 @@ | ||
| 127 | 127 | public static function poFile2moFile($pofile, $mofile) | 
| 128 | 128 |  	{ | 
| 129 | 129 |  		if (!is_file($pofile)) { | 
| 130 | -			throw new Exception("File $pofile doesn't exist."); | |
| 130 | +			throw new Exception("file $pofile doesn't exist."); | |
| 131 | 131 | } | 
| 132 | 132 | |
| 133 | 133 | include_once __DIR__ . '/PO.php'; |