Remove PHP_EOL, fixes #430.
Signed-off-by: Colin Viebrock <colin@viebrock.ca>
This commit is contained in:
parent
f16ac134ee
commit
8f103cdeae
|
@ -59,7 +59,7 @@ public static function open($action = null, $method = 'POST', $attributes = arra
|
||||||
$append = static::hidden(Request::spoofer, $method);
|
$append = static::hidden(Request::spoofer, $method);
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<form'.HTML::attributes($attributes).'>'.$append.PHP_EOL;
|
return '<form'.HTML::attributes($attributes).'>'.$append;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -172,7 +172,7 @@ public static function label($name, $value, $attributes = array())
|
||||||
|
|
||||||
$value = HTML::entities($value);
|
$value = HTML::entities($value);
|
||||||
|
|
||||||
return '<label for="'.$name.'"'.$attributes.'>'.$value.'</label>'.PHP_EOL;
|
return '<label for="'.$name.'"'.$attributes.'>'.$value.'</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -200,7 +200,7 @@ public static function input($type, $name, $value = null, $attributes = array())
|
||||||
|
|
||||||
$attributes = array_merge($attributes, compact('type', 'name', 'value', 'id'));
|
$attributes = array_merge($attributes, compact('type', 'name', 'value', 'id'));
|
||||||
|
|
||||||
return '<input'.HTML::attributes($attributes).'>'.PHP_EOL;
|
return '<input'.HTML::attributes($attributes).'>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -349,7 +349,7 @@ public static function textarea($name, $value = '', $attributes = array())
|
||||||
|
|
||||||
if ( ! isset($attributes['cols'])) $attributes['cols'] = 50;
|
if ( ! isset($attributes['cols'])) $attributes['cols'] = 50;
|
||||||
|
|
||||||
return '<textarea'.HTML::attributes($attributes).'>'.HTML::entities($value).'</textarea>'.PHP_EOL;
|
return '<textarea'.HTML::attributes($attributes).'>'.HTML::entities($value).'</textarea>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -382,7 +382,7 @@ public static function select($name, $options = array(), $selected = null, $attr
|
||||||
$html[] = static::option($value, $display, $selected);
|
$html[] = static::option($value, $display, $selected);
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<select'.HTML::attributes($attributes).'>'.implode('', $html).'</select>'.PHP_EOL;
|
return '<select'.HTML::attributes($attributes).'>'.implode('', $html).'</select>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -527,7 +527,7 @@ public static function image($url, $name = null, $attributes = array())
|
||||||
*/
|
*/
|
||||||
public static function button($value, $attributes = array())
|
public static function button($value, $attributes = array())
|
||||||
{
|
{
|
||||||
return '<button'.HTML::attributes($attributes).'>'.HTML::entities($value).'</button>'.PHP_EOL;
|
return '<button'.HTML::attributes($attributes).'>'.HTML::entities($value).'</button>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -554,4 +554,4 @@ protected static function id($name, $attributes)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue