mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:10:11 +00:00
Merge pull request #4095 from MrPetovan/task/fix-phpstan-errors
Fix phpstan errors
This commit is contained in:
commit
fa11959919
44 changed files with 273 additions and 210 deletions
11
src/App.php
11
src/App.php
|
@ -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 = '') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue