Commit f95175d6 authored by David Maus's avatar David Maus
Browse files

Rename Helper::any() to Helper::some()

parent 9afb9aff
......@@ -91,7 +91,7 @@ abstract class Helper {
* @param callback $predicate Predicate
* @return boolean TRUE if at least one element matches predicate
*/
public static function any (array $sequence, $predicate) {
public static function some (array $sequence, $predicate) {
foreach ($sequence as $element) {
if (call_user_func($predicate, $element)) {
return true;
......
......@@ -206,7 +206,7 @@ abstract class Record {
* @return boolean TRUE if the record is valid
*/
public function isValid () {
return !$this->isEmpty() && !Helper::any($this->getFields(), function (Field $field) { return $field->isEmpty(); });
return !$this->isEmpty() && !Helper::some($this->getFields(), function (Field $field) { return $field->isEmpty(); });
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment