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 @@ -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 */
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments