Skip to content

Commit

Permalink
Merge pull request #52 from dachcom-digital/coding-standard/refactor-…
Browse files Browse the repository at this point in the history
…master

[CS] Refactor
  • Loading branch information
solverat authored Jan 9, 2025
2 parents e9f938e + 0d3e918 commit 50429e5
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 8 deletions.
11 changes: 11 additions & 0 deletions src/Collector/CssCollector.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Collector;

class CssCollector implements \IteratorAggregate
Expand Down
15 changes: 13 additions & 2 deletions src/DependencyInjection/EmailizrExtension.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;

class EmailizrExtension extends Extension
{
Expand Down
11 changes: 11 additions & 0 deletions src/EmailizrBundle.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle;

use Pimcore\Extension\Bundle\AbstractPimcoreBundle;
Expand Down
13 changes: 12 additions & 1 deletion src/Parser/InkyParser.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Parser;

use Pinky;
use Pimcore\Http\Request\Resolver\EditmodeResolver;
use Pinky;

class InkyParser
{
Expand Down
11 changes: 11 additions & 0 deletions src/Parser/InlineStyleParser.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Parser;

use Pelago\Emogrifier\CssInliner;
Expand Down
14 changes: 12 additions & 2 deletions src/Service/ContentService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Service;

use EmailizrBundle\Parser\InkyParser;
Expand All @@ -13,8 +24,7 @@ public function __construct(
protected FileLocator $fileLocator,
protected InkyParser $inkyParser,
protected InlineStyleParser $inlineStyleParser
)
{
) {
}

/**
Expand Down
16 changes: 13 additions & 3 deletions src/Twig/Extension/InlineStyleExtension.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Twig\Extension;

use EmailizrBundle\Parser\InlineStyleParser;
use EmailizrBundle\Collector\CssCollector;
use EmailizrBundle\Parser\InlineStyleParser;
use EmailizrBundle\Twig\Parser\InlineStyleTokenParser;
use Symfony\Component\HttpKernel\Config\FileLocator;
use Twig\Extension\AbstractExtension;
Expand All @@ -17,8 +28,7 @@ class InlineStyleExtension extends AbstractExtension implements GlobalsInterface
public function __construct(
protected InlineStyleParser $inlineStyleParser,
protected FileLocator $fileLocator
)
{
) {
}

public function getName(): string
Expand Down
11 changes: 11 additions & 0 deletions src/Twig/Node/InlineStyleNode.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Twig\Node;

use Twig\Attribute\YieldReady;
Expand Down
11 changes: 11 additions & 0 deletions src/Twig/Parser/InlineStyleTokenParser.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?php

/*
* This source file is available under two different licenses:
* - GNU General Public License version 3 (GPLv3)
* - DACHCOM Commercial License (DCL)
* Full copyright and license information is available in
* LICENSE.md which is distributed with this source code.
*
* @copyright Copyright (c) DACHCOM.DIGITAL AG (https://www.dachcom-digital.com)
* @license GPLv3 and DCL
*/

namespace EmailizrBundle\Twig\Parser;

use EmailizrBundle\Twig\Node\InlineStyleNode;
Expand Down

0 comments on commit 50429e5

Please sign in to comment.