From: Hypolite Petovan Date: Sun, 19 Nov 2017 22:06:18 +0000 (-0500) Subject: Code cleanup X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=898fe2db1e41ab2401f43e38146e3409d11852b3;p=friendica.git Code cleanup - Remove extraneous use statements - Format require_once --- diff --git a/include/contact_widgets.php b/include/contact_widgets.php index 036504a4f5..5108eaf723 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -1,6 +1,5 @@ argc > 1) diff --git a/mod/crepair.php b/mod/crepair.php index 69efad24b0..754078316f 100644 --- a/mod/crepair.php +++ b/mod/crepair.php @@ -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()) { diff --git a/src/Model/GlobalContact.php b/src/Model/GlobalContact.php index e73bfb9075..67fe27e8e5 100644 --- a/src/Model/GlobalContact.php +++ b/src/Model/GlobalContact.php @@ -381,7 +381,7 @@ class GlobalContact if (DBM::is_result($r)) { return $r[0]['total']; } - + return 0; } diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index 6bd1750101..59b3ad4325 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -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; diff --git a/src/Worker/Expire.php b/src/Worker/Expire.php index 1485f3570f..61326fa88e 100644 --- a/src/Worker/Expire.php +++ b/src/Worker/Expire.php @@ -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(); diff --git a/src/Worker/Notifier.php b/src/Worker/Notifier.php index 142bf866d0..f3096e41a1 100644 --- a/src/Worker/Notifier.php +++ b/src/Worker/Notifier.php @@ -4,7 +4,6 @@ */ namespace Friendica\Worker; -use Friendica\App; use Friendica\Core\Config; use Friendica\Core\Worker; use Friendica\Database\DBM;