Skip to content

Commit 4ea090a

Browse files
committed
improve and move to PSR4
1 parent dbce535 commit 4ea090a

14 files changed

+39
-96
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/phpunit.xml
2-
*~
1+
phpunit.xml
32
composer.lock
4-
/vendor/
3+
/vendor

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ language: php
33
php:
44
- 5.3
55
- 5.4
6-
7-
before_script:
8-
- curl -s http://getcomposer.org/installer | php
9-
- php composer.phar install --dev

Converter/MissingParamException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* This file is part of ToInlineStyleEmailBundle.
45
*
@@ -15,6 +16,7 @@
1516
*
1617
* @author Roberto Trunfio <[email protected]>
1718
*/
18-
class MissingParamException extends \Exception {
19+
class MissingParamException extends \Exception
20+
{
1921

2022
}

Converter/MissingTemplatingEngineException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* This file is part of ToInlineStyleEmailBundle.
45
*
@@ -15,6 +16,7 @@
1516
*
1617
* @author Roberto Trunfio <[email protected]>
1718
*/
18-
class MissingTemplatingEngineException extends \Exception {
19+
class MissingTemplatingEngineException extends \Exception
20+
{
1921

2022
}

Converter/ToInlineStyleEmailConverter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* This file is part of ToInlineStyleEmailBundle.
45
*
@@ -25,8 +26,8 @@
2526
*
2627
* @author Roberto Trunfio <[email protected]>
2728
*/
28-
class ToInlineStyleEmailConverter {
29-
29+
class ToInlineStyleEmailConverter
30+
{
3031
/**
3132
* Container is used to get template engine instead of direct injection.
3233
* Direct injection is not used to avoid circular reference exception when rendering using twig tag

DependencyInjection/Configuration.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

DependencyInjection/RobertoTruToInlineStyleEmailExtension.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,13 @@
77
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
88
use Symfony\Component\DependencyInjection\Loader;
99

10-
/**
11-
* This is the class that loads and manages your bundle configuration
12-
*
13-
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
14-
*/
1510
class RobertoTruToInlineStyleEmailExtension extends Extension
1611
{
1712
/**
1813
* {@inheritDoc}
1914
*/
2015
public function load(array $configs, ContainerBuilder $container)
2116
{
22-
$configuration = new Configuration();
23-
$config = $this->processConfiguration($configuration, $configs);
24-
2517
$loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
2618
$loader->load('services.xml');
2719
}

Resources/doc/index.rst

Whitespace-only changes.

Tests/ToInlineStyleEmailBundleTest.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@
44

55
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
66

7-
class ToInlineStyleEmailBundleTest extends WebTestCase {
8-
public function testIndex() {
7+
class ToInlineStyleEmailBundleTest extends WebTestCase
8+
{
9+
public function testIndex()
10+
{
911

10-
//$client = static::createClient();
11-
12-
//$crawler = $client->request('GET', '/hello/Fabien');
13-
14-
//$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
1512
}
1613
}

Tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
throw new RuntimeException('Install dependencies to run test suite. "php composer.phar install --dev"');
66
}
77

8-
require_once $file;
8+
require_once $file;

0 commit comments

Comments
 (0)