| @@ -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. | 
| @@ -102,7 +102,7 @@ | ||
| 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. | 
| @@ -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()]) | 
| @@ -523,7 +523,7 @@ | ||
| 523 | 523 | </body> | 
| 524 | 524 | </file> | 
| 525 | 525 | </xliff> | 
| 526 | -EOD; | |
| 526 | +eod; | |
| 527 | 527 | return $xml; | 
| 528 | 528 | } | 
| 529 | 529 | } | 
| @@ -418,7 +418,7 @@ | ||
| 418 | 418 | 'trans-unit' => array( | 
| 419 | 419 | ) | 
| 420 | 420 | ); | 
| 421 | -EOD; | |
| 421 | +eod; | |
| 422 | 422 | return $php; | 
| 423 | 423 | } | 
| 424 | 424 | } | 
| @@ -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 | } | 
| @@ -319,7 +319,7 @@ | ||
| 319 | 319 | REFERENCED_TABLE_NAME IS NOT NULL | 
| 320 | 320 | AND TABLE_NAME LIKE :table | 
| 321 | 321 | $andSchema | 
| 322 | -EOD; | |
| 322 | +eod; | |
| 323 | 323 | $command = $this->getDbConnection()->createCommand($sql); | 
| 324 | 324 |  		$command->bindValue(':table', $tableName); | 
| 325 | 325 |  		if ($schemaName !== null) { | 
| @@ -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; |