]> git.mxchange.org Git - friendica.git/commitdiff
Standard stuff
authorMichael <heluecht@pirati.ca>
Tue, 14 Mar 2017 15:17:21 +0000 (15:17 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 14 Mar 2017 15:17:21 +0000 (15:17 +0000)
include/cron.php
include/cronhooks.php
include/dbupdate.php
include/delivery.php
include/directory.php
include/discover_poco.php
include/gprobe.php
include/notifier.php
include/onepoll.php
include/pubsubpublish.php
include/update_gcontact.php

index d2471c2bf7fb8f6effa076192f8ea82123088d3e..0ae336e33fec9872a1af39298285f93b994998bf 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 use \Friendica\Core\Config;
 
-require_once("include/photos.php");
-require_once("include/user.php");
+require_once('include/photos.php');
+require_once('include/user.php');
 
 function cron_run(&$argv, &$argc){
        global $a;
index af5ab9f922cf4046554595e62d530345d730ca28..8fa62e1b91d78ce716fb6de5fc67a1b5ba2f9f70 100644 (file)
@@ -16,7 +16,7 @@ function cronhooks_run(&$argv, &$argc){
                return;
        }
 
-       $last = get_config('system','last_cronhook');
+       $last = get_config('system', 'last_cronhook');
 
        $poll_interval = intval(get_config('system','cronhook_interval'));
        if(! $poll_interval)
index 21528c5730bf4affd04bbfc79c496f0507994373..725eca737045865d85ff2ec2ecf55ecbad250b68 100644 (file)
@@ -7,7 +7,7 @@ function dbupdate_run(&$argv, &$argc) {
 
        // We are deleting the latest dbupdate entry.
        // This is done to avoid endless loops because the update was interupted.
-       Config::delete('database','dbupdate_'.DB_UPDATE_VERSION);
+       Config::delete('database', 'dbupdate_'.DB_UPDATE_VERSION);
 
        update_db($a);
 }
index 5950c48bbc9e5af16a68b7c4fbdb15a7609d5faa..c48e606f488264672e3759a9c54c419b434b4ada 100644 (file)
@@ -4,15 +4,15 @@ use \Friendica\Core\Config;
 
 require_once('include/queue_fn.php');
 require_once('include/html2plain.php');
-require_once("include/Scrape.php");
+require_once('include/Scrape.php');
 require_once('include/diaspora.php');
-require_once("include/ostatus.php");
-require_once("include/dfrn.php");
+require_once('include/ostatus.php');
+require_once('include/dfrn.php');
 
 function delivery_run(&$argv, &$argc){
        global $a;
 
-       require_once("include/datetime.php");
+       require_once('include/datetime.php');
        require_once('include/items.php');
        require_once('include/bbcode.php');
        require_once('include/email.php');
index 057c156ad7abb99b46867deef5d1dfcdd3e7f990..088adbe789fd1fcfea3132cda0285fb8ccc88ab9 100644 (file)
@@ -6,7 +6,7 @@ function directory_run(&$argv, &$argc){
                return;
        }
 
-       $dir = get_config('system','directory');
+       $dir = get_config('system', 'directory');
 
        if (!strlen($dir)) {
                return;
index bfde3c46dc4177927d170a24dfd2ffe03cfc9416..0384483a40dd54e6fc89f6d4e37f39240ef150a7 100644 (file)
@@ -2,7 +2,7 @@
 
 use \Friendica\Core\Config;
 
-require_once("include/socgraph.php");
+require_once('include/socgraph.php');
 require_once('include/datetime.php');
 
 function discover_poco_run(&$argv, &$argc){
index 2f1758f377844a6fb96b2ddc1589f2cce658100c..719cfce48635ac4adb109964d9eed19a3f7a498b 100644 (file)
@@ -7,9 +7,9 @@ require_once('include/socgraph.php');
 require_once('include/datetime.php');
 
 function gprobe_run(&$argv, &$argc){
-       if($argc != 2)
+       if ($argc != 2) {
                return;
-
+       }
        $url = hex2bin($argv[1]);
 
        $r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1",
index c05d00e63fdb062860c2358ff07ff87b8cd41c16..ada871e9277329dcd7183035409057fa5eab2d4d 100644 (file)
@@ -4,9 +4,9 @@ use \Friendica\Core\Config;
 
 require_once('include/queue_fn.php');
 require_once('include/html2plain.php');
-require_once("include/Scrape.php");
+require_once('include/Scrape.php');
 require_once('include/diaspora.php');
-require_once("include/ostatus.php");
+require_once('include/ostatus.php');
 require_once('include/salmon.php');
 
 /*
@@ -45,7 +45,7 @@ require_once('include/salmon.php');
 function notifier_run(&$argv, &$argc){
        global $a;
 
-       require_once("include/datetime.php");
+       require_once('include/datetime.php');
        require_once('include/items.php');
        require_once('include/bbcode.php');
        require_once('include/email.php');
index 30a21129d4f6bd5b7c5188fd87aa5216efff9f17..43c4495b6c4294cdfdc1d6a210859d59a130936b 100644 (file)
@@ -2,7 +2,7 @@
 
 use \Friendica\Core\Config;
 
-require_once("include/follow.php");
+require_once('include/follow.php');
 
 function RemoveReply($subject) {
        while (in_array(strtolower(substr($subject, 0, 3)), array("re:", "aw:")))
index f88ca98a49a6f7b848f24f496bd5e1abd9ce61a8..3641bbcf74fc3d16f98ed67b13a687119e31739a 100644 (file)
@@ -2,7 +2,7 @@
 use \Friendica\Core\Config;
 
 require_once('include/items.php');
-require_once("include/ostatus.php");
+require_once('include/ostatus.php');
 
 function pubsubpublish_run(&$argv, &$argc){
 
index f59f487653c09e103a80bedf89445e5f413722ff..08d4149a716343e6f0ef137cc8cde5b0e0d2476f 100644 (file)
@@ -6,14 +6,15 @@ function update_gcontact_run(&$argv, &$argc){
        global $a;
 
        require_once('include/Scrape.php');
-       require_once("include/socgraph.php");
+       require_once('include/socgraph.php');
 
        logger('update_gcontact: start');
 
-       if(($argc > 1) && (intval($argv[1])))
+       if (($argc > 1) && (intval($argv[1]))) {
                $contact_id = intval($argv[1]);
+       }
 
-       if(!$contact_id) {
+       if (!$contact_id) {
                logger('update_gcontact: no contact');
                return;
        }