Skip to content

Commit

Permalink
fixed scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur LORENT committed May 9, 2019
1 parent ceecc4a commit d23067e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [1.0.12](https://github.com/Okipa/laravel-table/releases/tag/1.0.12)

2019-05-09

- Locked project compatibility to Laravel 5.5+ and PHP7.2+ to avoid issues.
- Improved code phpdoc for better maintainability.

## [1.0.11](https://github.com/Okipa/laravel-table/releases/tag/1.0.11)

2019-05-06
Expand Down
4 changes: 2 additions & 2 deletions src/Table.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public function destroyConfirmationHtmlAttributes(Closure $destroyConfirmationCl
*/
public function navigationStatus(): string
{
return __('laravel-table::laravel-table.navigation', [
return (string) __('laravel-table::laravel-table.navigation', [
'start' => ($this->list->perPage() * ($this->list->currentPage() - 1)) + 1,
'stop' => $this->list->count() + (($this->list->currentPage() - 1) * $this->list->perPage()),
'total' => (int) $this->list->total(),
Expand Down Expand Up @@ -559,7 +559,7 @@ protected function applySortClauses(Builder $query): void
*/
protected function paginateList(Builder $query): void
{
$this->list = $query->paginate((int) $this->rows ?: $query->count());
$this->list = $query->paginate($this->rows ?: (int) $query->count());
$this->list->appends(array_merge([
'rows' => $this->rows,
'search' => $this->search,
Expand Down

0 comments on commit d23067e

Please sign in to comment.