Skip to content

Commit

Permalink
Make PHP-CS happy :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
nupplaphil committed Jan 5, 2025
1 parent 6053363 commit a794d55
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/auth_ejabberd.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
$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();
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
$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);
2 changes: 1 addition & 1 deletion src/Console/AbstractConsole.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types = 1);
declare(strict_types=1);

namespace Friendica\Console;

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Daemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ protected function getHelp(): string

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));
}

Expand Down
7 changes: 4 additions & 3 deletions src/Core/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types = 1);
declare(strict_types=1);

namespace Friendica\Core;

Expand Down Expand Up @@ -35,7 +35,8 @@ protected function __construct(Dice $container)
*
* @return self
*/
public static function fromDice(Dice $container): self {
public static function fromDice(Dice $container): self
{
return new static($container);

Check failure on line 40 in src/Core/Container.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 8.4)

Unsafe usage of new static().
}

Expand Down Expand Up @@ -80,7 +81,7 @@ public function create(string $name, array $args = [], array $share = []): objec
*
* @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);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types = 1);
declare(strict_types=1);

namespace Friendica\Test\Unit;

Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Core/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later

declare(strict_types = 1);
declare(strict_types=1);

namespace Core;

Expand Down

0 comments on commit a794d55

Please sign in to comment.