Merge pull request #4095 from MrPetovan/task/fix-phpstan-errors

Fix phpstan errors
This commit is contained in:
Michael Vogel 2017-12-18 07:28:23 +01:00 committed by GitHub
commit fa11959919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 273 additions and 210 deletions

View file

@ -14,6 +14,9 @@ use Detection\MobileDetect;
use Exception;
require_once 'boot.php';
require_once 'include/dba.php';
/**
*
* class: App
@ -310,10 +313,8 @@ class App {
*
* @return string
*/
public static function get_basepath() {
if (isset($this)) {
$basepath = $this->basepath;
}
public function get_basepath() {
$basepath = $this->basepath;
if (! $basepath) {
$basepath = Config::get('system', 'basepath');
@ -617,7 +618,7 @@ class App {
* If $name is not defined, return engine defined by theme,
* or default
*
* @param strin $name Template engine name
* @param string $name Template engine name
* @return object Template Engine instance
*/
function template_engine($name = '') {