Some cleanups:
- "use" should be executed before any other line (except strict mode line) - "import" App class before use it - sure braces with "new" operator as this invokes the constructor
This commit is contained in:
parent
eb8e70d09e
commit
e13182d913
9 changed files with 23 additions and 23 deletions
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
// Debug stuff.
|
||||
// ini_set('display_errors', 1);
|
||||
// ini_set('log_errors','0');
|
||||
|
@ -14,7 +14,7 @@ $start_maintain = time();
|
|||
|
||||
$verbose = $argv[1] === 'verbose';
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
//Config and DB.
|
||||
require_once '.htconfig.php';
|
||||
|
|
|
@ -40,11 +40,11 @@
|
|||
|
||||
*/
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
// Debug stuff.
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('log_errors', '0');
|
||||
|
@ -52,7 +52,7 @@ error_reporting(E_ALL ^ E_NOTICE);
|
|||
|
||||
$start_syncing = time();
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
//Create a simple log function for CLI use.
|
||||
global $verbose;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
@include '.htconfig.php';
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
@include '.htconfig.php';
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
@include('.htconfig.php');
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
//Startup.
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
$a = new App;
|
||||
$a = new App();
|
||||
|
||||
@include(".htconfig.php");
|
||||
require_once 'dba.php';
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
require_once 'boot.php';
|
||||
|
||||
use Friendica\Directory\App;
|
||||
|
||||
$a = new App;
|
||||
require_once 'boot.php';
|
||||
|
||||
$a = new App();
|
||||
|
||||
error_reporting(E_ERROR | E_WARNING | E_PARSE);
|
||||
error_reporting(E_ALL);
|
||||
|
|
|
@ -7,7 +7,6 @@ use dba;
|
|||
use Friendica\Core;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
require_once 'include/text.php';
|
||||
|
||||
/**
|
||||
* @brief tool to access the system config from the CLI
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace Friendica\Directory\Core\Console;
|
|||
use Asika\SimpleConsole\CommandArgsException;
|
||||
use Asika\SimpleConsole\Console;
|
||||
use dba;
|
||||
use Friendica\Directory\App;
|
||||
use Net_Ping;
|
||||
|
||||
require_once 'include/dba.php';
|
||||
|
@ -42,7 +43,7 @@ HELP;
|
|||
{
|
||||
global $db, $a;
|
||||
|
||||
$a = new \Friendica\Directory\App();
|
||||
$a = new App();
|
||||
|
||||
if ($this->getOption('v')) {
|
||||
$this->out('Class: ' . __CLASS__);
|
||||
|
|
Loading…
Add table
Reference in a new issue