]> git.mxchange.org Git - friendica.git/commitdiff
Code cleanup
authorHypolite Petovan <mrpetovan@gmail.com>
Sun, 19 Nov 2017 22:06:18 +0000 (17:06 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Sun, 19 Nov 2017 22:06:18 +0000 (17:06 -0500)
- Remove extraneous use statements
- Format require_once

include/contact_widgets.php
mod/admin.php
mod/cal.php
mod/crepair.php
src/Model/GlobalContact.php
src/Protocol/PortableContact.php
src/Worker/Expire.php
src/Worker/Notifier.php

index 036504a4f543bf565643a4060d414384ff677cfd..5108eaf72390b9fec662031590ec0fba3e78e6da 100644 (file)
@@ -1,6 +1,5 @@
 <?php
 
-use Friendica\App;
 use Friendica\Core\System;
 use Friendica\Core\Config;
 use Friendica\Core\PConfig;
index 7a7ca141032f74a3c07b33b6e9a4e23ee24e56e6..28f890bb58b14811ce31979623b9187a99d58b64 100644 (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
index 96a1c8f2937ddde6777463fe978581eec2b50efc..170e7ea4c2f44dc55a8383f037b41280bdd1a4be 100644 (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)
index 69efad24b0e1b7095af3941cc72cdc7002acfb69..754078316fba9c0d9c5d99477a14e62348f2cdb5 100644 (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()) {
index e73bfb9075384e3d00cb8fe35ac935993bc00cdf..67fe27e8e5e1c29ec4de10819e97be52f57ee317 100644 (file)
@@ -381,7 +381,7 @@ class GlobalContact
                if (DBM::is_result($r)) {
                        return $r[0]['total'];
                }
-               
+
                return 0;
        }
 
index 6bd1750101c65b2e39f672c1473f442393ffc11c..59b3ad4325d7b10c6e8f94c81d5a9de53b7de88e 100644 (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;
index 1485f3570fc4daa22cd54d22e74669adb1f3578a..61326fa88e552d66e673022ecb1fca70247b2e00 100644 (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();
 
index 142bf866d0e24dfd1f529d9ce1435a60121b98cc..f3096e41a1ec0e8764667c1fdd26b347682fa773 100644 (file)
@@ -4,7 +4,6 @@
  */
 namespace Friendica\Worker;
 
-use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\Core\Worker;
 use Friendica\Database\DBM;