]> git.mxchange.org Git - friendica.git/commitdiff
Make PHP-CS happy :-)
authorPhilipp <admin@philipp.info>
Sun, 5 Jan 2025 21:49:56 +0000 (22:49 +0100)
committerPhilipp <admin@philipp.info>
Sun, 5 Jan 2025 22:13:45 +0000 (23:13 +0100)
bin/auth_ejabberd.php
index.php
src/Console/AbstractConsole.php
src/Console/Daemon.php
src/Core/Container.php
tests/Unit/AppTest.php
tests/Unit/Core/ContainerTest.php

index 1cf62da35576d294527de8bc0777c1704a83c8ba..68ee53a8b0d0a4052348b8660a50b80968aaf732 100755 (executable)
@@ -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();
index 954f9b742337b1f308464ef6a0f31a3cf048e026..6654dcb515d02909ee3d4a8cf480df0ea503b6ca 100644 (file)
--- 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);
index bce4a462681de8f5384bb405c6787120a1113ffe..2195cab5e514d25c930c18ec7ac375d38f102864 100644 (file)
@@ -5,7 +5,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0-or-later
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Friendica\Console;
 
index e2d9eeabefc3fabc1eb2e2d6e3d8655c92a33945..ce557548034c38b3df66a2a4ccd75d1b5c1c4a0b 100644 (file)
@@ -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));
                }
 
index c77a2a127ec552612bade775fc39ba62c2c850e7..bccdf338581fe98b99ed09a0446209217251b15a 100644 (file)
@@ -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);
        }
index 1854c993e4b15f18ff851db55c869054c624a712..38c53423dccbd18022cdf92cc29845aa2024ed9b 100644 (file)
@@ -5,7 +5,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0-or-later
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Friendica\Test\Unit;
 
index 6111a72bb0fd7b486378a4ef3d046a59eb357141..bb5ccda398734b4ea60baf3676a5d5ec525dffeb 100644 (file)
@@ -5,7 +5,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0-or-later
 
-declare(strict_types = 1);
+declare(strict_types=1);
 
 namespace Core;