mirror of
https://github.com/friendica/friendica
synced 2025-01-09 21:24:44 +00:00
Make PHP-CS happy :-)
This commit is contained in:
parent
560bf345da
commit
22ce079222
7 changed files with 10 additions and 9 deletions
|
@ -53,6 +53,6 @@ require dirname(__FILE__, 2) . '/vendor/autoload.php';
|
||||||
$dice = (new Dice())->addRules(require(dirname(__FILE__, 2) . '/static/dependencies.config.php'));
|
$dice = (new Dice())->addRules(require(dirname(__FILE__, 2) . '/static/dependencies.config.php'));
|
||||||
|
|
||||||
$container = \Friendica\Core\Container::fromDice($dice);
|
$container = \Friendica\Core\Container::fromDice($dice);
|
||||||
$app = \Friendica\App::fromContainer($container);
|
$app = \Friendica\App::fromContainer($container);
|
||||||
|
|
||||||
$app->processEjabberd();
|
$app->processEjabberd();
|
||||||
|
|
|
@ -20,6 +20,6 @@ $request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals();
|
||||||
$dice = (new Dice())->addRules(require(__DIR__ . '/static/dependencies.config.php'));
|
$dice = (new Dice())->addRules(require(__DIR__ . '/static/dependencies.config.php'));
|
||||||
|
|
||||||
$container = \Friendica\Core\Container::fromDice($dice);
|
$container = \Friendica\Core\Container::fromDice($dice);
|
||||||
$app = \Friendica\App::fromContainer($container);
|
$app = \Friendica\App::fromContainer($container);
|
||||||
|
|
||||||
$app->processRequest($request, $start_time);
|
$app->processRequest($request, $start_time);
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Console;
|
namespace Friendica\Console;
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ HELP;
|
||||||
|
|
||||||
protected function doExecute()
|
protected function doExecute()
|
||||||
{
|
{
|
||||||
if (substr($this->executable,-strlen('bin/console.php')) !== 'bin/console.php') {
|
if (substr($this->executable, -strlen('bin/console.php')) !== 'bin/console.php') {
|
||||||
$this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php daemon' instead", $this->executable));
|
$this->out(sprintf("'%s' is deprecated and will removed. Please use 'bin/console.php daemon' instead", $this->executable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Core;
|
namespace Friendica\Core;
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@ class Container
|
||||||
*
|
*
|
||||||
* @return self
|
* @return self
|
||||||
*/
|
*/
|
||||||
public static function fromDice(Dice $container): self {
|
public static function fromDice(Dice $container): self
|
||||||
|
{
|
||||||
return new static($container);
|
return new static($container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +81,7 @@ class Container
|
||||||
*
|
*
|
||||||
* @see Dice::addRule()
|
* @see Dice::addRule()
|
||||||
*/
|
*/
|
||||||
public function addRule(string $name, array $rule):void
|
public function addRule(string $name, array $rule): void
|
||||||
{
|
{
|
||||||
$this->container = $this->container->addRule($name, $rule);
|
$this->container = $this->container->addRule($name, $rule);
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Friendica\Test\Unit;
|
namespace Friendica\Test\Unit;
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
declare(strict_types = 1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Core;
|
namespace Core;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue