diff --git a/src/Application.php b/src/Application.php index f726ec38..24710b84 100644 --- a/src/Application.php +++ b/src/Application.php @@ -57,9 +57,7 @@ class Application $this->router = new Router($this, $this->request, $this->config); - if (method_exists($this, 'init')) { - $this->init(); - } + $this->init(); } /** diff --git a/src/Helper/Lang.php b/src/Helper/Lang.php index 57964d85..48c56148 100644 --- a/src/Helper/Lang.php +++ b/src/Helper/Lang.php @@ -54,16 +54,6 @@ class Lang return $string; } - /** - * Output a specific string from the language file. - * - * @param array ...$params - */ - public static function out(...$params) - { - print call_user_func_array(['PHPCensor\Helper\Lang', 'get'], $params); - } - /** * Get the currently active language. * diff --git a/src/View/Build/errors.phtml b/src/View/Build/errors.phtml index 09b068a2..c7b87be6 100644 --- a/src/View/Build/errors.phtml +++ b/src/View/Build/errors.phtml @@ -1,9 +1,16 @@ getFileLinkTemplate(); -/** @var \PHPCensor\Model\BuildError[] $errors */ foreach ($errors as $error): $link = str_replace('{BASEFILE}', basename($error->getFile()), $linkTemplate); @@ -11,7 +18,6 @@ foreach ($errors as $error): $link = str_replace('{LINE}', $error->getLineStart(), $link); $link = str_replace('{LINE_END}', $error->getLineEnd(), $link); ?> -
getBranch()); ?>
++ = Lang::get('branch_x', $build->getBranch()); ?> +
diff --git a/src/View/Build/view.phtml b/src/View/Build/view.phtml index 888323e7..ed235b42 100644 --- a/src/View/Build/view.phtml +++ b/src/View/Build/view.phtml @@ -15,14 +15,14 @@ use PHPCensor\Model\BuildError;