core/Group/Kernal.php
<?php namespace Group; use Group\App\App; class Kernal{ public function init($path, $loader) { $this->fix_gpc_magic(); $app = new App(); $app->init($path, $loader); $app->handleHttp(); } fix_gpc_magic accesses the super-global variable $_POST.
fix_gpc_magic accesses the super-global variable $_FILES.
fix_gpc_magic accesses the super-global variable $_COOKIE.
fix_gpc_magic accesses the super-global variable $_GET.
fix_gpc_magic accesses the super-global variable $_REQUEST.
Method name "Kernal::fix_gpc_magic" is not in camel caps format
The method fix_gpc_magic is not named in camelCase. public function fix_gpc_magic() { static $fixed = false; if (!$fixed && ini_get('magic_quotes_gpc')) { array_walk($_GET, '_fix_gpc_magic'); array_walk($_POST, '_fix_gpc_magic'); array_walk($_COOKIE, '_fix_gpc_magic'); array_walk($_REQUEST, '_fix_gpc_magic'); array_walk($_FILES, '_fix_gpc_magic_files');Blank line found at end of control structure } $fixed = true; } Avoid unused private methods such as '_fix_gpc_magic'.
Method name "Kernal::_fix_gpc_magic" is not in camel caps format
Method name "_fix_gpc_magic" should not be prefixed with an underscore to indicate visibility
The method _fix_gpc_magic is not named in camelCase. private static function _fix_gpc_magic(&$item) { if (is_array($item)) { array_walk($item, '_fix_gpc_magic');Expected 1 space after closing brace; newline found }The method _fix_gpc_magic uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. else { $item = stripslashes($item); } } Avoid unused private methods such as '_fix_gpc_magic_files'.
Method name "Kernal::_fix_gpc_magic_files" is not in camel caps format
Method name "_fix_gpc_magic_files" should not be prefixed with an underscore to indicate visibility
The method _fix_gpc_magic_files is not named in camelCase. private static function _fix_gpc_magic_files(&$item, $key) { if ($key != 'tmp_name') { if (is_array($item)) {Line indented incorrectly; expected at least 16 spaces, found 14 array_walk($item, '_fix_gpc_magic_files');Expected 1 space after closing brace; newline found }The method _fix_gpc_magic_files uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. else {Line indented incorrectly; expected at least 16 spaces, found 14 $item = stripslashes($item); }Blank line found at end of control structure } }}