File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Aneeskhan47 \PaginationMerge ;
4
4
5
+ use Illuminate \Pagination \LengthAwarePaginator ;
5
6
use Illuminate \Support \Arr ;
6
- use InvalidArgumentException ;
7
7
use Illuminate \Support \Collection ;
8
- use Illuminate \ Pagination \ LengthAwarePaginator ;
8
+ use InvalidArgumentException ;
9
9
10
10
class PaginationMerge
11
11
{
@@ -49,7 +49,7 @@ public function merge($paginators, $pageName = 'page')
49
49
$ paginators = is_array ($ paginators ) ? $ paginators : func_get_args ();
50
50
51
51
foreach ($ paginators as $ paginator ) {
52
- if (!$ paginator instanceof LengthAwarePaginator) {
52
+ if (! $ paginator instanceof LengthAwarePaginator) {
53
53
throw new InvalidArgumentException ("Only LengthAwarePaginator may be merged. " );
54
54
}
55
55
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function register()
21
21
{
22
22
// Register the main class to use with the facade
23
23
$ this ->app ->singleton ('laravel-pagination-merge ' , function () {
24
- return new PaginationMerge ;
24
+ return new PaginationMerge () ;
25
25
});
26
26
}
27
27
}
You can’t perform that action at this time.
0 commit comments