@@ -321,7 +321,7 @@ |
||
| 321 | 321 | |
| 322 | 322 | /** |
| 323 | 323 | * @param $name |
| 324 | - * @return mixed|null |
|
| 324 | + * @return Fields\Field|null |
|
| 325 | 325 | */ |
| 326 | 326 | public function __get($name) |
| 327 | 327 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | - * @param FormInterface|Field $context |
|
| 34 | + * @param FormInterface $context |
|
| 35 | 35 | * @param Field[] $fields |
| 36 | 36 | * @return array |
| 37 | 37 | */ |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | 129 | * @param string $browser |
| 130 | - * @return null|string |
|
| 130 | + * @return string|false |
|
| 131 | 131 | */ |
| 132 | 132 | private function robot($browser) |
| 133 | 133 | { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | - * @return \Coyote\Microblog[] |
|
| 109 | + * @return \Illuminate\Database\Eloquent\Collection |
|
| 110 | 110 | */ |
| 111 | 111 | public function popular() |
| 112 | 112 | { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * @param \Coyote\Microblog[] $comments |
| 140 | 140 | * @param \Illuminate\Database\Eloquent\Collection $microblogs |
| 141 | - * @return \Coyote\Microblog[] |
|
| 141 | + * @return \Illuminate\Database\Eloquent\Collection |
|
| 142 | 142 | */ |
| 143 | 143 | private function mergeComments($comments, $microblogs) |
| 144 | 144 | { |
@@ -214,9 +214,8 @@ |
||
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | /** |
| 217 | - * @param \Illuminate\Database\Query\Builder $query |
|
| 218 | 217 | * @param int|null $userId |
| 219 | - * @return \Illuminate\Database\Query\Builder|$this |
|
| 218 | + * @return Builder |
|
| 220 | 219 | */ |
| 221 | 220 | public function scopeIncludeIsSubscribed(Builder $builder, ?int $userId): Builder |
| 222 | 221 | { |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | return $result; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param integer|null $userId |
|
| 84 | + */ |
|
| 82 | 85 | private function getBuilder(?int $userId, string $guestId) |
| 83 | 86 | { |
| 84 | 87 | return $this |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | protected $took; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @param array $response |
|
| 28 | + * @param callable $response |
|
| 29 | 29 | */ |
| 30 | 30 | public function __construct($response) |
| 31 | 31 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $model = $this->app->make($className); |
| 89 | 89 | $this->line("Indexing $className ..."); |
| 90 | 90 | |
| 91 | - $builder = $model->select()->orderBy('id', 'desc');//->where('id', 44030); |
|
| 91 | + $builder = $model->select()->orderBy('id', 'desc'); //->where('id', 44030); |
|
| 92 | 92 | $objectName = get_class($model); |
| 93 | 93 | |
| 94 | 94 | // ugly hack for job offers... |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | use Coyote\Services\Forum\TreeBuilder\JsonDecorator; |
| 11 | 11 | use GuzzleHttp\Exception\ClientException; |
| 12 | 12 | use GuzzleHttp\Exception\ConnectException; |
| 13 | -use GuzzleHttp\Exception\ServerException; |
|
| 14 | 13 | use Illuminate\Http\Request; |
| 15 | 14 | use Coyote\Services\Forum\TreeBuilder\Builder as TreeBuilder; |
| 16 | 15 | use Illuminate\Validation\ValidationException; |