diff --git a/system/download.php b/system/download.php index 37778019bff..1dac8da82b5 100644 --- a/system/download.php +++ b/system/download.php @@ -118,13 +118,13 @@ public static function file($path, $name = null) } return Response::make(file_get_contents($path))->header('Content-Description', 'File Transfer') - ->header('Content-Type', static::mime(pathinfo($path, PATHINFO_EXTENSION))) - ->header('Content-Disposition', 'attachment; filename="'.$name.'"') - ->header('Content-Transfer-Encoding', 'binary') - ->header('Expires', 0) - ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') - ->header('Pragma', 'public') - ->header('Content-Length', filesize($path)); + ->header('Content-Type', static::mime(pathinfo($path, PATHINFO_EXTENSION))) + ->header('Content-Disposition', 'attachment; filename="'.$name.'"') + ->header('Content-Transfer-Encoding', 'binary') + ->header('Expires', 0) + ->header('Cache-Control', 'must-revalidate, post-check=0, pre-check=0') + ->header('Pragma', 'public') + ->header('Content-Length', filesize($path)); } /** diff --git a/system/error.php b/system/error.php index 2520a8a4644..c5d29f2b4d1 100644 --- a/system/error.php +++ b/system/error.php @@ -8,19 +8,19 @@ class Error { * @var array */ public static $levels = array( - 0 => 'Error', - E_ERROR => 'Error', - E_WARNING => 'Warning', - E_PARSE => 'Parsing Error', - E_NOTICE => 'Notice', - E_CORE_ERROR => 'Core Error', - E_CORE_WARNING => 'Core Warning', - E_COMPILE_ERROR => 'Compile Error', - E_COMPILE_WARNING => 'Compile Warning', - E_USER_ERROR => 'User Error', - E_USER_WARNING => 'User Warning', - E_USER_NOTICE => 'User Notice', - E_STRICT => 'Runtime Notice' + 0 => 'Error', + E_ERROR => 'Error', + E_WARNING => 'Warning', + E_PARSE => 'Parsing Error', + E_NOTICE => 'Notice', + E_CORE_ERROR => 'Core Error', + E_CORE_WARNING => 'Core Warning', + E_COMPILE_ERROR => 'Compile Error', + E_COMPILE_WARNING => 'Compile Warning', + E_USER_ERROR => 'User Error', + E_USER_WARNING => 'User Warning', + E_USER_NOTICE => 'User Notice', + E_STRICT => 'Runtime Notice' ); /** diff --git a/system/filter.php b/system/filter.php index f5ed5faaa50..47909fb5ccc 100644 --- a/system/filter.php +++ b/system/filter.php @@ -34,7 +34,7 @@ public static function call($filters, $parameters = array(), $override = false) { if ( ! isset(static::$filters[$filter])) { - throw new \Exception("Route filter [$filter] is not defined."); + throw new \Exception("Route filter [$filter] is not defined."); } $response = call_user_func_array(static::$filters[$filter], $parameters); diff --git a/system/form.php b/system/form.php index b303c0ed2fd..bdabef8bc4b 100644 --- a/system/form.php +++ b/system/form.php @@ -16,7 +16,7 @@ class Form { * @param string $method * @param array $attributes * @return string - */ + */ public static function open($action = null, $method = 'POST', $attributes = array()) { // ------------------------------------------------------- @@ -34,7 +34,7 @@ public static function open($action = null, $method = 'POST', $attributes = arra if ( ! array_key_exists('accept-charset', $attributes)) { - $attributes['accept-charset'] = Config::get('application.encoding'); + $attributes['accept-charset'] = Config::get('application.encoding'); } $html = '