Skip to content

Commit

Permalink
Merge pull request #2704 from yajra/analysis-jLr3or
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
yajra authored Oct 27, 2021
2 parents a497567 + 6ab1626 commit f9468f2
Show file tree
Hide file tree
Showing 17 changed files with 225 additions and 212 deletions.
6 changes: 3 additions & 3 deletions src/ApiResourceDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ApiResourceDataTable extends CollectionDataTable
/**
* Can the DataTable engine be created with these parameters.
*
* @param mixed $source
* @param mixed $source
* @return bool
*/
public static function canCreate($source)
Expand All @@ -36,7 +36,7 @@ public static function canCreate($source)
/**
* Factory method, create and return an instance for the DataTable engine.
*
* @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection $source
* @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection $source
* @return ApiResourceDataTable|DataTableAbstract
*/
public static function create($source)
Expand All @@ -47,7 +47,7 @@ public static function create($source)
/**
* CollectionEngine constructor.
*
* @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection $collection
* @param \Illuminate\Http\Resources\Json\AnonymousResourceCollection $collection
*/
public function __construct(AnonymousResourceCollection $collection)
{
Expand Down
18 changes: 9 additions & 9 deletions src/CollectionDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class CollectionDataTable extends DataTableAbstract
/**
* Can the DataTable engine be created with these parameters.
*
* @param mixed $source
* @param mixed $source
* @return bool
*/
public static function canCreate($source)
Expand All @@ -44,7 +44,7 @@ public static function canCreate($source)
/**
* Factory method, create and return an instance for the DataTable engine.
*
* @param array|\Illuminate\Support\Collection $source
* @param array|\Illuminate\Support\Collection $source
* @return CollectionDataTable|DataTableAbstract
*/
public static function create($source)
Expand All @@ -59,7 +59,7 @@ public static function create($source)
/**
* CollectionEngine constructor.
*
* @param \Illuminate\Support\Collection $collection
* @param \Illuminate\Support\Collection $collection
*/
public function __construct(Collection $collection)
{
Expand All @@ -73,7 +73,7 @@ public function __construct(Collection $collection)
/**
* Serialize collection.
*
* @param mixed $collection
* @param mixed $collection
* @return mixed|null
*/
protected function serialize($collection)
Expand Down Expand Up @@ -151,7 +151,7 @@ public function paging()
/**
* Organizes works.
*
* @param bool $mDataSupport
* @param bool $mDataSupport
* @return \Illuminate\Http\JsonResponse
*/
public function make($mDataSupport = true)
Expand Down Expand Up @@ -201,7 +201,7 @@ public function results()
/**
* Revert transformed DT_RowIndex back to it's original values.
*
* @param bool $mDataSupport
* @param bool $mDataSupport
*/
private function revertIndexColumn($mDataSupport)
{
Expand All @@ -219,7 +219,7 @@ private function revertIndexColumn($mDataSupport)
/**
* Perform global search for the given keyword.
*
* @param string $keyword
* @param string $keyword
*/
protected function globalSearch($keyword)
{
Expand Down Expand Up @@ -278,7 +278,7 @@ protected function defaultOrdering()
/**
* Get array sorter closure.
*
* @param array $criteria
* @param array $criteria
* @return \Closure
*/
protected function getSorter(array $criteria)
Expand Down Expand Up @@ -334,7 +334,7 @@ protected function resolveCallbackParameter()
* the FULL dataset the collection was sliced from. It effectively allows the
* collection to be "pre-sliced".
*
* @param int $offset
* @param int $offset
* @return $this
*/
public function setOffset(int $offset)
Expand Down
6 changes: 3 additions & 3 deletions src/Contracts/DataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function totalCount();
* Set auto filter off and run your own filter.
* Overrides global search.
*
* @param callable $callback
* @param bool $globalSearch
* @param callable $callback
* @param bool $globalSearch
* @return $this
*/
public function filter(callable $callback, $globalSearch = false);
Expand Down Expand Up @@ -66,7 +66,7 @@ public function ordering();
/**
* Organizes works.
*
* @param bool $mDataSupport
* @param bool $mDataSupport
* @return \Illuminate\Http\JsonResponse
*/
public function make($mDataSupport = true);
Expand Down
4 changes: 2 additions & 2 deletions src/Contracts/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
interface Formatter
{
/**
* @param string $value
* @param mixed $row
* @param string $value
* @param mixed $row
* @return string
*/
public function format($value, $row);
Expand Down
Loading

0 comments on commit f9468f2

Please sign in to comment.