/usr/share/php/Horde/Constraint/And.php is in php-horde-constraint 2.0.1-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | <?php
/**
* Represents a collection of constraints, if one is false, this collection will
* evaluate to false
*
* Based on PHPUnit_Framework_Constraint_And
*
* @author James Pepin <james@jamespepin.com>
*/
class Horde_Constraint_And extends Horde_Constraint_Coupler
{
public function evaluate($value)
{
foreach ($this->_constraints as $c) {
if (!$c->evaluate($value)) {
return false;
}
}
return true;
}
}
|