@@ -46,7 +46,6 @@ |
||
| 46 | 46 | /** |
| 47 | 47 | * Send error response page. |
| 48 | 48 | * |
| 49 | - * @param \Exception $e |
|
| 50 | 49 | */ |
| 51 | 50 | protected static function error() |
| 52 | 51 | { |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | /** |
| 175 | 175 | * Get stub contents. |
| 176 | 176 | * |
| 177 | - * @param $name |
|
| 177 | + * @param string $name |
|
| 178 | 178 | * |
| 179 | 179 | * @return string |
| 180 | 180 | */ |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | /** |
| 26 | 26 | * Execute the console command. |
| 27 | 27 | * |
| 28 | - * @return void |
|
| 28 | + * @return false|null |
|
| 29 | 29 | */ |
| 30 | 30 | public function handle() |
| 31 | 31 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | * |
| 201 | 201 | * @param $id |
| 202 | 202 | * |
| 203 | - * @return mixed |
|
| 203 | + * @return boolean |
|
| 204 | 204 | */ |
| 205 | 205 | public function destroy($id) |
| 206 | 206 | { |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | * Prepare input data for insert or update. |
| 270 | 270 | * |
| 271 | 271 | * @param array $data |
| 272 | - * @param callable $callback |
|
| 272 | + * @param Closure $callback |
|
| 273 | 273 | */ |
| 274 | 274 | protected function prepare($data = [], Closure $callback = null) |
| 275 | 275 | { |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | /** |
| 484 | 484 | * Set saving callback. |
| 485 | 485 | * |
| 486 | - * @param callable $callback |
|
| 486 | + * @param Closure $callback |
|
| 487 | 487 | * |
| 488 | 488 | * @return void |
| 489 | 489 | */ |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | /** |
| 496 | 496 | * Set saved callback. |
| 497 | 497 | * |
| 498 | - * @param callable $callback |
|
| 498 | + * @param Closure $callback |
|
| 499 | 499 | * |
| 500 | 500 | * @return void |
| 501 | 501 | */ |
@@ -739,6 +739,9 @@ discard block |
||
| 739 | 739 | } |
| 740 | 740 | } |
| 741 | 741 | |
| 742 | + /** |
|
| 743 | + * @param string $method |
|
| 744 | + */ |
|
| 742 | 745 | public static function findFieldClass($method) |
| 743 | 746 | { |
| 744 | 747 | $className = __NAMESPACE__.'\\Form\\Field\\'.ucfirst($method); |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | /** |
| 56 | 56 | * Returns builder is $mode. |
| 57 | 57 | * |
| 58 | - * @param $mode |
|
| 58 | + * @param string $mode |
|
| 59 | 59 | * |
| 60 | 60 | * @return bool |
| 61 | 61 | */ |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * @param $file |
| 67 | 67 | * |
| 68 | - * @return mixed |
|
| 68 | + * @return \Symfony\Component\HttpFoundation\File\File |
|
| 69 | 69 | */ |
| 70 | 70 | protected function uploadAndDeleteOriginal(UploadedFile $file) |
| 71 | 71 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * Create a new grid instance. |
| 120 | 120 | * |
| 121 | 121 | * @param Eloquent $model |
| 122 | - * @param callable $builder |
|
| 122 | + * @param Closure $builder |
|
| 123 | 123 | */ |
| 124 | 124 | public function __construct(Eloquent $model, Closure $builder) |
| 125 | 125 | { |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | /** |
| 302 | 302 | * Set grid row callback function. |
| 303 | 303 | * |
| 304 | - * @param callable $callable |
|
| 304 | + * @param Closure $callable |
|
| 305 | 305 | * |
| 306 | 306 | * @return Collection|void |
| 307 | 307 | */ |
@@ -373,7 +373,7 @@ discard block |
||
| 373 | 373 | /** |
| 374 | 374 | * Set the grid filter. |
| 375 | 375 | * |
| 376 | - * @param callable $callback |
|
| 376 | + * @param Closure $callback |
|
| 377 | 377 | */ |
| 378 | 378 | public function filter(Closure $callback) |
| 379 | 379 | { |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | * @param $method |
| 470 | 470 | * @param $arguments |
| 471 | 471 | * |
| 472 | - * @return $this|Column |
|
| 472 | + * @return Column|null |
|
| 473 | 473 | */ |
| 474 | 474 | public function __call($method, $arguments) |
| 475 | 475 | { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | * @param string $method |
| 110 | 110 | * @param array $arguments |
| 111 | 111 | * |
| 112 | - * @return $this |
|
| 112 | + * @return AbstractFilter|null |
|
| 113 | 113 | */ |
| 114 | 114 | public function __call($method, $arguments) |
| 115 | 115 | { |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | protected $filter; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param \Encore\Admin\Grid\Filter\AbstractFilter $filter |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct($filter) |
| 15 | 18 | { |
| 16 | 19 | $this->filter = $filter; |