Skip to content

Commit dba1123

Browse files
committed
Update readme
1 parent 60f02c0 commit dba1123

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
[![License](https://img.shields.io/packagist/l/rinvex/repository.svg?label=License&style=flat-square)](https://github.com/rinvex/repository/blob/develop/LICENSE)
1414

1515

16+
💡 If you are looking for **Laravel 5.5** support, use the `dev-develop` branch. It's stable but not tagged yet since test suites isn't complete. 💡
17+
18+
19+
⚠️ [This package is looking for new maintainer, read details or takeover if interested!](https://github.com/rinvex/repository/issues/156) ⚠️
20+
21+
1622
## Features
1723

1824
- Cache, Cache, Cache!

src/Traits/Criteriable.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,12 @@ protected function extractCriterionClassAndArgs(array $criterion)
106106
throw CriterionException::wrongArraySignature($criterion);
107107
}
108108

109-
//If an array is assoc we assume that the key is a class and value is an arguments
109+
// If an array is assoc we assume that the key is a class and value is an arguments
110110
if (Arr::isAssoc($criterion)) {
111111
$criterion = [array_keys($criterion)[0], array_values($criterion)[0]];
112-
113-
//If an array is not assoc but count is one, we can assume there is a class without arguments.
114-
//Like when a string passed as criterion
115112
} elseif (count($criterion) === 1) {
113+
// If an array is not assoc but count is one, we can assume there is a class without arguments.
114+
// Like when a string passed as criterion
116115
array_push($criterion, []);
117116
}
118117

0 commit comments

Comments
 (0)