diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index 1cf62da355..68ee53a8b0 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -53,6 +53,6 @@ require dirname(__FILE__, 2) . '/vendor/autoload.php'; $dice = (new Dice())->addRules(require(dirname(__FILE__, 2) . '/static/dependencies.config.php')); $container = \Friendica\Core\Container::fromDice($dice); -$app = \Friendica\App::fromContainer($container); +$app = \Friendica\App::fromContainer($container); $app->processEjabberd(); diff --git a/index.php b/index.php index 954f9b7423..6654dcb515 100644 --- a/index.php +++ b/index.php @@ -20,6 +20,6 @@ $request = \GuzzleHttp\Psr7\ServerRequest::fromGlobals(); $dice = (new Dice())->addRules(require(__DIR__ . '/static/dependencies.config.php')); $container = \Friendica\Core\Container::fromDice($dice); -$app = \Friendica\App::fromContainer($container); +$app = \Friendica\App::fromContainer($container); $app->processRequest($request, $start_time); diff --git a/src/Console/AbstractConsole.php b/src/Console/AbstractConsole.php index bce4a46268..2195cab5e5 100644 --- a/src/Console/AbstractConsole.php +++ b/src/Console/AbstractConsole.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -declare(strict_types = 1); +declare(strict_types=1); namespace Friendica\Console; diff --git a/src/Console/Daemon.php b/src/Console/Daemon.php index e2d9eeabef..ce55754803 100644 --- a/src/Console/Daemon.php +++ b/src/Console/Daemon.php @@ -93,7 +93,7 @@ HELP; 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)); } diff --git a/src/Core/Container.php b/src/Core/Container.php index c77a2a127e..bccdf33858 100644 --- a/src/Core/Container.php +++ b/src/Core/Container.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -declare(strict_types = 1); +declare(strict_types=1); namespace Friendica\Core; @@ -35,7 +35,8 @@ class Container * * @return self */ - public static function fromDice(Dice $container): self { + public static function fromDice(Dice $container): self + { return new static($container); } @@ -80,7 +81,7 @@ class Container * * @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); } diff --git a/tests/Unit/AppTest.php b/tests/Unit/AppTest.php index 1854c993e4..38c53423dc 100644 --- a/tests/Unit/AppTest.php +++ b/tests/Unit/AppTest.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -declare(strict_types = 1); +declare(strict_types=1); namespace Friendica\Test\Unit; diff --git a/tests/Unit/Core/ContainerTest.php b/tests/Unit/Core/ContainerTest.php index 6111a72bb0..bb5ccda398 100644 --- a/tests/Unit/Core/ContainerTest.php +++ b/tests/Unit/Core/ContainerTest.php @@ -5,7 +5,7 @@ // // SPDX-License-Identifier: AGPL-3.0-or-later -declare(strict_types = 1); +declare(strict_types=1); namespace Core;