Skip to content

Commit f1fd4e3

Browse files
committed
fixed status check
1 parent d670fd7 commit f1fd4e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Contracts/RepositoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function getOrdered($direction = 'asc');
7070
/**
7171
* Get modules by the given status.
7272
*
73-
* @param int $status
73+
* @param bool $status
7474
*
7575
* @return mixed
7676
*/

src/FileRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function has($alias) : bool
259259
*/
260260
public function allEnabled() : array
261261
{
262-
return $this->getByStatus(1);
262+
return $this->getByStatus(true);
263263
}
264264

265265
/**
@@ -269,7 +269,7 @@ public function allEnabled() : array
269269
*/
270270
public function allDisabled() : array
271271
{
272-
return $this->getByStatus(0);
272+
return $this->getByStatus(false);
273273
}
274274

275275
/**
@@ -421,7 +421,7 @@ public function findOrFail($alias)
421421
*
422422
* @return Collection
423423
*/
424-
public function collections($status = 1) : Collection
424+
public function collections($status = true) : Collection
425425
{
426426
return new Collection($this->getByStatus($status));
427427
}

0 commit comments

Comments
 (0)