From 8f103cdeaebc4425ff6a00fb4f5dc34633e0a4a9 Mon Sep 17 00:00:00 2001 From: Colin Viebrock Date: Tue, 20 Mar 2012 22:30:20 -0500 Subject: [PATCH] Remove PHP_EOL, fixes #430. Signed-off-by: Colin Viebrock --- laravel/form.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/laravel/form.php b/laravel/form.php index 1fd97ca6..155bb6d5 100644 --- a/laravel/form.php +++ b/laravel/form.php @@ -59,7 +59,7 @@ public static function open($action = null, $method = 'POST', $attributes = arra $append = static::hidden(Request::spoofer, $method); } - return ''.$append.PHP_EOL; + return ''.$append; } /** @@ -172,7 +172,7 @@ public static function label($name, $value, $attributes = array()) $value = HTML::entities($value); - return ''.PHP_EOL; + return ''; } /** @@ -200,7 +200,7 @@ public static function input($type, $name, $value = null, $attributes = array()) $attributes = array_merge($attributes, compact('type', 'name', 'value', 'id')); - return ''.PHP_EOL; + return ''; } /** @@ -349,7 +349,7 @@ public static function textarea($name, $value = '', $attributes = array()) if ( ! isset($attributes['cols'])) $attributes['cols'] = 50; - return ''.HTML::entities($value).''.PHP_EOL; + return ''.HTML::entities($value).''; } /** @@ -382,7 +382,7 @@ public static function select($name, $options = array(), $selected = null, $attr $html[] = static::option($value, $display, $selected); } - return ''.implode('', $html).''.PHP_EOL; + return ''.implode('', $html).''; } /** @@ -527,7 +527,7 @@ public static function image($url, $name = null, $attributes = array()) */ public static function button($value, $attributes = array()) { - return ''.HTML::entities($value).''.PHP_EOL; + return ''.HTML::entities($value).''; } /** @@ -554,4 +554,4 @@ protected static function id($name, $attributes) } } -} \ No newline at end of file +}