1
1
Fork 0

Code cleanup

- Remove extraneous use statements
- Format require_once
This commit is contained in:
Hypolite Petovan 2017-11-19 17:06:18 -05:00
parent 5ee728972e
commit 898fe2db1e
8 changed files with 10 additions and 15 deletions

View file

@ -1,6 +1,5 @@
<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Core\Config;
use Friendica\Core\PConfig;

View file

@ -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

View file

@ -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)

View file

@ -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()) {

View file

@ -381,7 +381,7 @@ class GlobalContact
if (DBM::is_result($r)) {
return $r[0]['total'];
}
return 0;
}

View file

@ -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;

View file

@ -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();

View file

@ -4,7 +4,6 @@
*/
namespace Friendica\Worker;
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Core\Worker;
use Friendica\Database\DBM;