| @@ -76,7 +76,7 @@ | ||
| 76 | 76 | |
| 77 | 77 | /** | 
| 78 | 78 | * Creates a control used for repetition (used as a template). | 
| 79 | - * @return TControl the control to be repeated | |
| 79 | + * @return TActiveRadioButtonItem the control to be repeated | |
| 80 | 80 | */ | 
| 81 | 81 | protected function createRepeatedControl() | 
| 82 | 82 |  	{ | 
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 | } | 
| 70 | 70 | |
| 71 | 71 | /** | 
| 72 | - * @return TListItemType item type. | |
| 72 | + * @return string item type. | |
| 73 | 73 | */ | 
| 74 | 74 | public function getItemType() | 
| 75 | 75 |  	{ | 
| @@ -19,7 +19,6 @@ | ||
| 19 | 19 | namespace Prado\I18N\core; | 
| 20 | 20 | |
| 21 | 21 | use DOMDocument; | 
| 22 | -use DOMXPath; | |
| 23 | 22 | use Prado\Exceptions\TException; | 
| 24 | 23 | use Prado\Exceptions\TIOException; | 
| 25 | 24 | |
| @@ -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 | } | 
| @@ -497,6 +497,9 @@ | ||
| 497 | 497 | return [$variant, $file]; | 
| 498 | 498 | } | 
| 499 | 499 | |
| 500 | + /** | |
| 501 | + * @param string $catalogue | |
| 502 | + */ | |
| 500 | 503 | protected function getTemplate($catalogue) | 
| 501 | 504 |  	{ | 
| 502 | 505 |  		$date = @date('c'); | 
| @@ -52,6 +52,10 @@ discard block | ||
| 52 | 52 | } | 
| 53 | 53 | } | 
| 54 | 54 | |
| 55 | + /** | |
| 56 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent | |
| 57 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record | |
| 58 | + */ | |
| 55 | 59 | public function createScaffoldInput($parent, $item, $column, $record) | 
| 56 | 60 |  	{ | 
| 57 | 61 | $this->_parent = $parent; | 
| @@ -68,6 +72,10 @@ discard block | ||
| 68 | 72 | $label->setForControl(self::DEFAULT_ID); | 
| 69 | 73 | } | 
| 70 | 74 | |
| 75 | + /** | |
| 76 | + * @param \Prado\Data\ActiveRecord\Scaffold\TScaffoldEditView $parent | |
| 77 | + * @param \Prado\Data\ActiveRecord\TActiveRecord $record | |
| 78 | + */ | |
| 71 | 79 | public function loadScaffoldInput($parent, $item, $column, $record) | 
| 72 | 80 |  	{ | 
| 73 | 81 | $this->_parent = $parent; | 
| @@ -56,6 +56,9 @@ discard block | ||
| 56 | 56 | $this->reflect(); | 
| 57 | 57 | } | 
| 58 | 58 | |
| 59 | + /** | |
| 60 | + * @param \ReflectionMethod $method | |
| 61 | + */ | |
| 59 | 62 | private function isPropertyMethod($method) | 
| 60 | 63 |  	{ | 
| 61 | 64 | $methodName = $method->getName(); | 
| @@ -64,6 +67,9 @@ discard block | ||
| 64 | 67 | && isset($methodName[3]); | 
| 65 | 68 | } | 
| 66 | 69 | |
| 70 | + /** | |
| 71 | + * @param \ReflectionMethod $method | |
| 72 | + */ | |
| 67 | 73 | private function isEventMethod($method) | 
| 68 | 74 |  	{ | 
| 69 | 75 | $methodName = $method->getName(); | 
| @@ -137,7 +137,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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(); | 
| @@ -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. | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | } | 
| 75 | 75 | |
| 76 | 76 | /** | 
| 77 | - * @param TDbConnection $conn default database connection | |
| 77 | + * @param \Prado\Data\TDbConnection $conn default database connection | |
| 78 | 78 | */ | 
| 79 | 79 | public function setDbConnection($conn) | 
| 80 | 80 |  	{ | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 | } | 
| 91 | 91 | |
| 92 | 92 | /** | 
| 93 | - * @param null|mixed $self | |
| 93 | + * @param \Prado\TComponent $self | |
| 94 | 94 | * @return TActiveRecordManager static instance of record manager. | 
| 95 | 95 | */ | 
| 96 | 96 | public static function getInstance($self = null) | 
| @@ -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()]) |