Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Aug 27, 2024
1 parent caf31da commit f8eab71
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 9 deletions.
15 changes: 13 additions & 2 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

$header = <<<EOF
This file is part of Sulu.
Expand All @@ -10,8 +19,10 @@
EOF;

$finder = PhpCsFixer\Finder::create()
->exclude(['Tests/Application/var/cache'])
->in(__DIR__);
->in(__DIR__)
->ignoreDotFiles(false)
->exclude(['tests/Application/var'])
;

$config = new PhpCsFixer\Config();
$config->setRiskyAllowed(true)
Expand Down
9 changes: 9 additions & 0 deletions Resources/phpcr-migrations/ContainerAwareInterface.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of Sulu.
*
* (c) Sulu GmbH
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Sulu\Bundle\ArticleBundle;

use PHPCR\PhpcrMigrationsBundle\ContainerAwareInterface as PhpcrContainerAwareInterface;
Expand Down
1 change: 0 additions & 1 deletion Resources/phpcr-migrations/Version201811091000.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use PHPCR\NodeInterface;
use PHPCR\SessionInterface;
use Sulu\Component\Localization\Localization;

use Symfony\Component\DependencyInjection\ContainerInterface;

/**
Expand Down
1 change: 0 additions & 1 deletion Resources/phpcr-migrations/Version202005151141.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function setContainer(?ContainerInterface $container = null): void
$this->container = $container;
}


public function up(SessionInterface $session)
{
$liveSession = $this->container->get('sulu_document_manager.live_session');
Expand Down
1 change: 0 additions & 1 deletion Resources/phpcr-migrations/Version202005191117.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function setContainer(?ContainerInterface $container = null): void
$this->container = $container;
}


public function up(SessionInterface $session)
{
$liveSession = $this->container->get('sulu_document_manager.live_session');
Expand Down
1 change: 0 additions & 1 deletion Resources/phpcr-migrations/Version202005250920.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function setContainer(?ContainerInterface $container = null): void
$this->container = $container;
}


public function up(SessionInterface $session)
{
$liveSession = $this->container->get('sulu_document_manager.live_session');
Expand Down
2 changes: 0 additions & 2 deletions Resources/phpcr-migrations/Version202210140922.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use PHPCR\SessionInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;


/**
* Auto-generated Migration: Please modify to your needs!
*/
Expand All @@ -35,7 +34,6 @@ public function setContainer(?ContainerInterface $container = null): void
$this->container = $container;
}


public function up(SessionInterface $session)
{
$liveSession = $this->container->get('sulu_document_manager.live_session');
Expand Down
1 change: 0 additions & 1 deletion Resources/phpcr-migrations/Version202210241106.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ public function setContainer(?ContainerInterface $container = null): void
$this->container = $container;
}


public function up(SessionInterface $session)
{
$liveSession = $this->container->get('sulu_document_manager.live_session');
Expand Down

0 comments on commit f8eab71

Please sign in to comment.