Skip to content

Commit

Permalink
Applied fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
voku authored and StyleCIBot committed Aug 19, 2015
1 parent 77a5bbc commit 759584f
Show file tree
Hide file tree
Showing 39 changed files with 1,069 additions and 1,074 deletions.
2 changes: 1 addition & 1 deletion src/Normalizer.php
Expand Up @@ -19,4 +19,4 @@
class Normalizer extends \voku\helper\shim\Normalizer
{
}
}
}
6 changes: 3 additions & 3 deletions src/voku/helper/Bootup.php
Expand Up @@ -63,7 +63,7 @@ protected static function initIconv()
if ('UTF-8' !== strtoupper(iconv_get_encoding('output_encoding'))) {
iconv_set_encoding('output_encoding', 'UTF-8');
}
} else if (!defined('ICONV_IMPL')) {
} elseif (!defined('ICONV_IMPL')) {
require __DIR__ . '/bootup/iconv.php';
}
}
Expand Down Expand Up @@ -145,7 +145,7 @@ protected static function initMbstring()
) {
mb_language('uni');
}
} else if (!defined('MB_OVERLOAD_MAIL')) {
} elseif (!defined('MB_OVERLOAD_MAIL')) {
extension_loaded('iconv') or self::initIconv();

require __DIR__ . '/bootup/mbstring.php';
Expand Down Expand Up @@ -464,7 +464,7 @@ function ($m) {
if ($exit === true) {
// Use ob_start() to buffer content and avoid problem of headers already sent...
if (headers_sent() === false) {
$severProtocol = (isset($_SERVER["SERVER_PROTOCOL"]) ? $_SERVER["SERVER_PROTOCOL"] : 'HTTP/1.1');
$severProtocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.1');
header($severProtocol . ' 301 Moved Permanently');
header('Location: ' . $uri);
exit();
Expand Down

0 comments on commit 759584f

Please sign in to comment.