function too_large()
{
- return ($this->value=='');
+ return ($this->value == '');
}
// }}}
function too_large()
{
- return ($this->length()<2);
+ return ($this->length() < 2);
}
// }}}
{
$this->fields = $_fields;
$this->and = $_and;
- foreach ($this->fields as $key=>&$field) {
- if (is_null($field)) {
- unset($this->fields[$key]);
+
+ $cleanFields = array();
+ foreach ($this->fields as $field) {
+ if (!is_null($field)) {
+ $cleanFields[] = $field;
}
}
+ $this->fields = $cleanFields;
}
// }}}
function too_large()
{
$b = true;
- for ($i=0 ; $b && $i<count($this->fields) ; $i++) {
+ for ($i = 0; $b && $i < count($this->fields); ++$i) {
if (!is_null($this->fields[$i])) {
$b = $b && $this->fields[$i]->too_large();
}