@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * @param XsdValidator $validator |
| 22 | - * @param $xsdFile |
|
| 22 | + * @param string $xsdFile |
|
| 23 | 23 | */ |
| 24 | 24 | public function __construct(XsdValidator $validator, $xsdFile) |
| 25 | 25 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | * @param string $string |
| 115 | 115 | * @param bool $removeThatShit |
| 116 | 116 | * |
| 117 | - * @return mixed |
|
| 117 | + * @return string |
|
| 118 | 118 | */ |
| 119 | 119 | protected function multilineRemoveIndent($string, $removeThatShit = false) |
| 120 | 120 | { |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | - * @param $name |
|
| 45 | + * @param string $name |
|
| 46 | 46 | * |
| 47 | 47 | * @return string |
| 48 | 48 | * |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param null $locale |
|
| 90 | + * @param string $locale |
|
| 91 | 91 | * @param array $defaults |
| 92 | 92 | * |
| 93 | 93 | * @return SystemMailer |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | ->scalarNode('name')->defaultNull()->end() |
| 48 | 48 | ->end() |
| 49 | 49 | ->end() |
| 50 | - ->end() |
|
| 50 | + ->end() |
|
| 51 | 51 | ->end() |
| 52 | 52 | ->end(); |
| 53 | 53 | |
@@ -30,8 +30,7 @@ |
||
| 30 | 30 | try { |
| 31 | 31 | $container->get('system_mailer')->send('HautziSystemMail:test'); |
| 32 | 32 | $this->fail('fetching a mail that does nox exist should throw an exception.'); |
| 33 | - } |
|
| 34 | - catch (\InvalidArgumentException $e) { |
|
| 33 | + } catch (\InvalidArgumentException $e) { |
|
| 35 | 34 | $this->assertContains('@HautziSystemMailBundle/Resources/emails/test.xml.twig', $e->getMessage()); |
| 36 | 35 | } |
| 37 | 36 | } |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | $this->mailer->send(Argument::type(\Swift_Message::class))->shouldBeCalled(); |
| 44 | 44 | |
| 45 | 45 | $closureExceuted = false; |
| 46 | - $this->fixture->send($message, function (\Swift_Message $message) use (&$closureExceuted) { |
|
| 46 | + $this->fixture->send($message, function(\Swift_Message $message) use (&$closureExceuted) { |
|
| 47 | 47 | // from |
| 48 | 48 | $this->assertEquals(['[email protected]' => 'from'], $message->getFrom()); |
| 49 | 49 | // reply-to |
@@ -16,19 +16,19 @@ |
||
| 16 | 16 | $fixture->addTo('[email protected]', 'user1'); |
| 17 | 17 | $this->assertEquals(['[email protected]' => 'user1'], $fixture->getTo()); |
| 18 | 18 | $fixture->addTo('[email protected]', 'user2'); |
| 19 | - $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2',], $fixture->getTo()); |
|
| 19 | + $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2', ], $fixture->getTo()); |
|
| 20 | 20 | |
| 21 | 21 | $this->assertEmpty($fixture->getCc()); |
| 22 | 22 | $fixture->addCc('[email protected]', 'user1'); |
| 23 | 23 | $this->assertEquals(['[email protected]' => 'user1'], $fixture->getCc()); |
| 24 | 24 | $fixture->addCc('[email protected]', 'user2'); |
| 25 | - $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2',], $fixture->getCc()); |
|
| 25 | + $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2', ], $fixture->getCc()); |
|
| 26 | 26 | |
| 27 | 27 | $this->assertEmpty($fixture->getBcc()); |
| 28 | 28 | $fixture->addBcc('[email protected]', 'user1'); |
| 29 | 29 | $this->assertEquals(['[email protected]' => 'user1'], $fixture->getBcc()); |
| 30 | 30 | $fixture->addBcc('[email protected]', 'user2'); |
| 31 | - $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2',], $fixture->getBcc()); |
|
| 31 | + $this->assertEquals(['[email protected]' => 'user1', '[email protected]' => 'user2', ], $fixture->getBcc()); |
|
| 32 | 32 | |
| 33 | 33 | $this->assertEmpty($fixture->getReplyTo()); |
| 34 | 34 | $fixture->setReplyTo('[email protected]'); |
@@ -18,6 +18,6 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function registerContainerConfiguration(LoaderInterface $loader) |
| 20 | 20 | { |
| 21 | - $loader->load(__DIR__.'/config.yml'); |
|
| 21 | + $loader->load(__DIR__ . '/config.yml'); |
|
| 22 | 22 | } |
| 23 | 23 | } |
@@ -1,4 +1,4 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -$loader = require __DIR__.'/../../vendor/autoload.php'; |
|
| 4 | -require __DIR__.'/AppKernel.php'; |
|
| 3 | +$loader = require __DIR__ . '/../../vendor/autoload.php'; |
|
| 4 | +require __DIR__ . '/AppKernel.php'; |
|