@@ -32,7 +32,7 @@ |
||
32 | 32 | private $_active = false; |
33 | 33 | |
34 | 34 | /** |
35 | - * @return the tag name for the view element |
|
35 | + * @return string tag name for the view element |
|
36 | 36 | */ |
37 | 37 | protected function getTagName() |
38 | 38 | { |
@@ -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(); |
@@ -257,7 +257,7 @@ |
||
257 | 257 | } |
258 | 258 | |
259 | 259 | /** |
260 | - * @param mixed $tableInfo |
|
260 | + * @param TPgsqlTableInfo $tableInfo |
|
261 | 261 | * @param mixed $src |
262 | 262 | * @return string serial name if found, null otherwise. |
263 | 263 | */ |
@@ -70,7 +70,7 @@ |
||
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(); |
@@ -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"; |
@@ -181,8 +181,7 @@ |
||
181 | 181 | |
182 | 182 | public function validate() |
183 | 183 | { |
184 | - if (! |
|
185 | - ( |
|
184 | + if (!( |
|
186 | 185 | ($challenge = @$_POST[$this->getChallengeFieldName()]) |
187 | 186 | and |
188 | 187 | ($response = @$_POST[$this->getResponseFieldName()]) |
@@ -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 | } |
@@ -239,6 +239,9 @@ discard block |
||
239 | 239 | return false; |
240 | 240 | } |
241 | 241 | |
242 | + /** |
|
243 | + * @param string $filename |
|
244 | + */ |
|
242 | 245 | protected function internalSaveFile($php, $filename, $variant) |
243 | 246 | { |
244 | 247 | $php['info']['date'] = @date('Y-m-d\TH:i:s\Z'); |
@@ -368,6 +371,9 @@ discard block |
||
368 | 371 | return false; |
369 | 372 | } |
370 | 373 | |
374 | + /** |
|
375 | + * @param string $catalogue |
|
376 | + */ |
|
371 | 377 | protected function createMessageTemplate($catalogue) |
372 | 378 | { |
373 | 379 | if ($catalogue === null) { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | { |
35 | 35 | console.log ("[Cumulated Time] [Time] [Level] [Category] [Message]"); |
36 | 36 | |
37 | -EOD; |
|
37 | +eod; |
|
38 | 38 | |
39 | 39 | return $string; |
40 | 40 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | </script> |
62 | 62 | |
63 | -EOD; |
|
63 | +eod; |
|
64 | 64 | |
65 | 65 | return $string; |
66 | 66 | } |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | {$this->action} {$parameters}{$optional} |
187 | 187 | {$description} |
188 | 188 | |
189 | -EOD; |
|
189 | +eod; |
|
190 | 190 | } |
191 | 191 | |
192 | 192 | protected function initializePradoApplication($directory) |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | </parameters> |
345 | 345 | --> |
346 | 346 | </application> |
347 | -EOD; |
|
347 | +eod; |
|
348 | 348 | } |
349 | 349 | |
350 | 350 | protected function renderHtaccessFile() |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | <h1>Welcome to PRADO!</h1> |
365 | 365 | </body> |
366 | 366 | </html> |
367 | -EOD; |
|
367 | +eod; |
|
368 | 368 | } |
369 | 369 | } |
370 | 370 | |
@@ -585,7 +585,7 @@ discard block |
||
585 | 585 | * @soapproperty |
586 | 586 | */ |
587 | 587 | |
588 | -EOD; |
|
588 | +eod; |
|
589 | 589 | } |
590 | 590 | $prop .= "\tpublic $name;"; |
591 | 591 | return $prop; |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | } |
613 | 613 | } |
614 | 614 | |
615 | -EOD; |
|
615 | +eod; |
|
616 | 616 | } |
617 | 617 | } |
618 | 618 |
@@ -143,6 +143,10 @@ discard block |
||
143 | 143 | */ |
144 | 144 | abstract public function performAction($args); |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $dir |
|
148 | + * @param integer $mask |
|
149 | + */ |
|
146 | 150 | protected function createDirectory($dir, $mask) |
147 | 151 | { |
148 | 152 | if (!is_dir($dir)) { |
@@ -154,6 +158,9 @@ discard block |
||
154 | 158 | } |
155 | 159 | } |
156 | 160 | |
161 | + /** |
|
162 | + * @param string $filename |
|
163 | + */ |
|
157 | 164 | protected function createFile($filename, $content) |
158 | 165 | { |
159 | 166 | if (!is_file($filename)) { |
@@ -302,6 +309,9 @@ discard block |
||
302 | 309 | '; |
303 | 310 | } |
304 | 311 | |
312 | + /** |
|
313 | + * @param string $appName |
|
314 | + */ |
|
305 | 315 | protected function renderConfigFile($appName) |
306 | 316 | { |
307 | 317 | return <<<EOD |
@@ -520,6 +530,9 @@ discard block |
||
520 | 530 | return false; |
521 | 531 | } |
522 | 532 | |
533 | + /** |
|
534 | + * @param string $app_dir |
|
535 | + */ |
|
523 | 536 | protected function getActiveRecordConfig($app_dir) |
524 | 537 | { |
525 | 538 | if (false === ($xml = $this->getXmlFile($app_dir))) { |
@@ -537,6 +550,9 @@ discard block |
||
537 | 550 | return false; |
538 | 551 | } |
539 | 552 | |
553 | + /** |
|
554 | + * @param string $app_dir |
|
555 | + */ |
|
540 | 556 | protected function getOutputFile($app_dir, $namespace) |
541 | 557 | { |
542 | 558 | if (is_file($namespace) && strpos($namespace, $app_dir) === 0) { |
@@ -596,6 +612,9 @@ discard block |
||
596 | 612 | return $prop; |
597 | 613 | } |
598 | 614 | |
615 | + /** |
|
616 | + * @param string $class |
|
617 | + */ |
|
599 | 618 | protected function generateClass($properties, $tablename, $class) |
600 | 619 | { |
601 | 620 | $props = implode("\n", $properties); |
@@ -691,6 +710,9 @@ discard block |
||
691 | 710 | return true; |
692 | 711 | } |
693 | 712 | |
713 | + /** |
|
714 | + * @param string $l |
|
715 | + */ |
|
694 | 716 | public function generate($l) |
695 | 717 | { |
696 | 718 | $input = explode(" ", trim($l)); |
@@ -734,6 +756,9 @@ discard block |
||
734 | 756 | return false; |
735 | 757 | } |
736 | 758 | |
759 | + /** |
|
760 | + * @param string $app_dir |
|
761 | + */ |
|
737 | 762 | protected function getActiveRecordConfig($app_dir) |
738 | 763 | { |
739 | 764 | if (false === ($xml = $this->getXmlFile($app_dir))) { |