Code cleanup
- Remove extraneous use statements - Format require_once
This commit is contained in:
parent
5ee728972e
commit
898fe2db1e
|
@ -1,6 +1,5 @@
|
|||
<?php
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\PConfig;
|
||||
|
|
|
@ -13,9 +13,9 @@ use Friendica\Core\Worker;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Model\User;
|
||||
|
||||
require_once("include/enotify.php");
|
||||
require_once("include/text.php");
|
||||
require_once('include/items.php');
|
||||
require_once 'include/enotify.php';
|
||||
require_once 'include/text.php';
|
||||
require_once 'include/items.php';
|
||||
|
||||
/**
|
||||
* @brief Process send data from the admin panels subpages
|
||||
|
|
|
@ -13,8 +13,8 @@ use Friendica\Core\System;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Object\Contact;
|
||||
|
||||
require_once('include/event.php');
|
||||
require_once('include/redir.php');
|
||||
require_once 'include/event.php';
|
||||
require_once 'include/redir.php';
|
||||
|
||||
function cal_init(App $a) {
|
||||
if($a->argc > 1)
|
||||
|
|
|
@ -5,8 +5,8 @@ use Friendica\Core\Config;
|
|||
use Friendica\Database\DBM;
|
||||
use Friendica\Object\Contact;
|
||||
|
||||
require_once("include/contact_selectors.php");
|
||||
require_once("mod/contacts.php");
|
||||
require_once 'include/contact_selectors.php';
|
||||
require_once 'mod/contacts.php';
|
||||
|
||||
function crepair_init(App $a) {
|
||||
if (! local_user()) {
|
||||
|
|
|
@ -381,7 +381,7 @@ class GlobalContact
|
|||
if (DBM::is_result($r)) {
|
||||
return $r[0]['total'];
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -9,9 +9,6 @@
|
|||
|
||||
namespace Friendica\Protocol;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
|
|
|
@ -15,8 +15,8 @@ class Expire {
|
|||
public static function execute($param = '', $hook_name = '') {
|
||||
global $a;
|
||||
|
||||
require_once('include/datetime.php');
|
||||
require_once('include/items.php');
|
||||
require_once 'include/datetime.php';
|
||||
require_once 'include/items.php';
|
||||
|
||||
load_hooks();
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
*/
|
||||
namespace Friendica\Worker;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBM;
|
||||
|
|
Loading…
Reference in New Issue
Block a user