@@ -94,7 +94,7 @@ |
||
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * @param ActionRequest $request |
| 97 | - * @param Action $exportable |
|
| 97 | + * @param ExportToExcel $exportable |
|
| 98 | 98 | * |
| 99 | 99 | * @return array |
| 100 | 100 | */ |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * Serialize the request, so we keep information about |
| 20 | 20 | * the resource and lens in the queued jobs. |
| 21 | 21 | * |
| 22 | - * @return array |
|
| 22 | + * @return string[] |
|
| 23 | 23 | */ |
| 24 | 24 | public function __sleep() |
| 25 | 25 | { |
@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | return $this->userName; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $targets |
|
| 30 | + */ |
|
| 28 | 31 | public function prepare($targets) |
| 29 | 32 | { |
| 30 | 33 | if (is_string($targets)) { |
@@ -35,6 +38,11 @@ discard block |
||
| 35 | 38 | return $this; |
| 36 | 39 | } |
| 37 | 40 | |
| 41 | + /** |
|
| 42 | + * @param boolean $cache |
|
| 43 | + * |
|
| 44 | + * @return \Psr\SimpleCache\CacheInterface |
|
| 45 | + */ |
|
| 38 | 46 | private function getCache($cache) |
| 39 | 47 | { |
| 40 | 48 | |
@@ -221,6 +221,10 @@ |
||
| 221 | 221 | |
| 222 | 222 | } |
| 223 | 223 | |
| 224 | + /** |
|
| 225 | + * @param string $cod |
|
| 226 | + * @param integer $type |
|
| 227 | + */ |
|
| 224 | 228 | protected static function insertBoard($cod, $classAfetada, $classAExecutar, $type) |
| 225 | 229 | { |
| 226 | 230 | $newBoard = new self($cod, $classAfetada, $classAExecutar, $type); |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * Function to parse page for title tags |
| 60 | 60 | * |
| 61 | 61 | * @params string $data HTML of page |
| 62 | - * @return string|bool title of page of null if not found |
|
| 62 | + * @return string|null title of page of null if not found |
|
| 63 | 63 | */ |
| 64 | 64 | public function getTitleFromHtml($data) |
| 65 | 65 | { |
@@ -52,6 +52,9 @@ discard block |
||
| 52 | 52 | $this->crawler->executeJavaScript(); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $html |
|
| 57 | + */ |
|
| 55 | 58 | protected function getAllLinks($html) |
| 56 | 59 | { |
| 57 | 60 | $domCrawler = new DomCrawler($html); |
@@ -61,6 +64,10 @@ discard block |
||
| 61 | 64 | ->extract(['href']) |
| 62 | 65 | ) |
| 63 | 66 | ->map( |
| 67 | + |
|
| 68 | + /** |
|
| 69 | + * @param string $url |
|
| 70 | + */ |
|
| 64 | 71 | function ($url) { |
| 65 | 72 | return Url::create($url); |
| 66 | 73 | } |
@@ -144,6 +144,7 @@ |
||
| 144 | 144 | * |
| 145 | 145 | * @params int $form ID of linking page |
| 146 | 146 | * @params int $to ID of target page |
| 147 | + * @param boolean $to |
|
| 147 | 148 | * @return int|bool LinkID on sucess, false on fail |
| 148 | 149 | */ |
| 149 | 150 | protected function saveLink($from, $to) |
@@ -208,6 +208,9 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | var $_feed; |
| 210 | 210 | |
| 211 | + /** |
|
| 212 | + * @param string $format |
|
| 213 | + */ |
|
| 211 | 214 | function _setMIME($format) |
| 212 | 215 | { |
| 213 | 216 | switch (strtoupper($format)) { |
@@ -234,6 +237,9 @@ discard block |
||
| 234 | 237 | } |
| 235 | 238 | } |
| 236 | 239 | |
| 240 | + /** |
|
| 241 | + * @param string $format |
|
| 242 | + */ |
|
| 237 | 243 | function _setFormat($format) |
| 238 | 244 | { |
| 239 | 245 | switch (strtoupper($format)) { |
@@ -387,6 +393,7 @@ discard block |
||
| 387 | 393 | * @static |
| 388 | 394 | * @param string string A string to be truncated. |
| 389 | 395 | * @param int length the maximum length the string should be truncated to |
| 396 | + * @param integer $length |
|
| 390 | 397 | * @return string the truncated string |
| 391 | 398 | */ |
| 392 | 399 | function iTrunc($string, $length) |
@@ -602,7 +609,7 @@ discard block |
||
| 602 | 609 | /** |
| 603 | 610 | * Gets the date stored in this FeedDate as an RFC 822 date. |
| 604 | 611 | * |
| 605 | - * @return a date in RFC 822 format |
|
| 612 | + * @return string date in RFC 822 format |
|
| 606 | 613 | */ |
| 607 | 614 | function rfc822() |
| 608 | 615 | { |
@@ -614,7 +621,7 @@ discard block |
||
| 614 | 621 | /** |
| 615 | 622 | * Gets the date stored in this FeedDate as an ISO 8601 date. |
| 616 | 623 | * |
| 617 | - * @return a date in ISO 8601 (RFC 3339) format |
|
| 624 | + * @return string date in ISO 8601 (RFC 3339) format |
|
| 618 | 625 | */ |
| 619 | 626 | function iso8601() |
| 620 | 627 | { |
@@ -665,6 +672,7 @@ discard block |
||
| 665 | 672 | * Sets this RSS feed's version number. |
| 666 | 673 | * |
| 667 | 674 | * @access private |
| 675 | + * @param string $version |
|
| 668 | 676 | */ |
| 669 | 677 | function _setRSSVersion($version) |
| 670 | 678 | { |
@@ -67,6 +67,10 @@ discard block |
||
| 67 | 67 | | |
| 68 | 68 | */ |
| 69 | 69 | if (! function_exists('mb_strlen') ) { |
| 70 | + |
|
| 71 | + /** |
|
| 72 | + * @param string $a |
|
| 73 | + */ |
|
| 70 | 74 | function mb_strlen( $a ) |
| 71 | 75 | { |
| 72 | 76 | return strlen($a); |
@@ -80,6 +84,10 @@ discard block |
||
| 80 | 84 | } |
| 81 | 85 | |
| 82 | 86 | if (! function_exists('mb_strtolower') ) { |
| 87 | + |
|
| 88 | + /** |
|
| 89 | + * @param string $a |
|
| 90 | + */ |
|
| 83 | 91 | function mb_strtolower( $a , $b = '' ) |
| 84 | 92 | { |
| 85 | 93 | return strtolower($a); |
@@ -87,6 +95,11 @@ discard block |
||
| 87 | 95 | } |
| 88 | 96 | |
| 89 | 97 | if (! function_exists('mb_check_encoding') ) { |
| 98 | + |
|
| 99 | + /** |
|
| 100 | + * @param string $a |
|
| 101 | + * @param string $b |
|
| 102 | + */ |
|
| 90 | 103 | function mb_check_encoding( $a , $b ) |
| 91 | 104 | { |
| 92 | 105 | return false; |
@@ -94,6 +107,10 @@ discard block |
||
| 94 | 107 | } |
| 95 | 108 | |
| 96 | 109 | if (! function_exists('mb_substr') ) { |
| 110 | + |
|
| 111 | + /** |
|
| 112 | + * @param integer $b |
|
| 113 | + */ |
|
| 97 | 114 | function mb_substr( $a , $b , $c = 9999999 ) |
| 98 | 115 | { |
| 99 | 116 | return substr($a, $b, $c); |
@@ -451,7 +468,6 @@ discard block |
||
| 451 | 468 | /** |
| 452 | 469 | * Load config file |
| 453 | 470 | * |
| 454 | - * @param string $path the configuration file path |
|
| 455 | 471 | * @param boolean $load_user_configuration_dir do we have to parse all user configuration files ? No for upgrade for |
| 456 | 472 | * example... |
| 457 | 473 | * |