@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Finder\Components\Processing; |
| 4 | 4 | |
| 5 | -use Log; |
|
| 6 | -use App\Models\User; |
|
| 7 | - |
|
| 8 | 5 | class CollectDados |
| 9 | 6 | { |
| 10 | 7 | |
@@ -4,9 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Board; |
| 6 | 6 | |
| 7 | -use Log; |
|
| 8 | -use App\Models\User; |
|
| 9 | - |
|
| 10 | 7 | class NewCommit |
| 11 | 8 | { |
| 12 | 9 | |
@@ -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); |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | |
| 6 | 6 | namespace Finder\Components\View\Boards; |
| 7 | 7 | |
| 8 | -use Log; |
|
| 9 | - |
|
| 10 | 8 | class BusinessBoard extends Board |
| 11 | 9 | { |
| 12 | 10 | |
@@ -5,8 +5,6 @@ |
||
| 5 | 5 | |
| 6 | 6 | namespace Finder\Components\View\Editores; |
| 7 | 7 | |
| 8 | -use Log; |
|
| 9 | - |
|
| 10 | 8 | class TuiImageEditor |
| 11 | 9 | { |
| 12 | 10 | |
@@ -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 | { |