Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Nov 22, 2023
1 parent 89fb29b commit b70da11
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MoneyBundle/Form/DataTransformer/ViewTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function transform($value)

public function reverseTransform($value): Money
{
if (!is_numeric($value)) {
if (! is_numeric($value)) {
$value = 0;
}

Expand Down
13 changes: 11 additions & 2 deletions src/MoneyBundle/Tests/Form/DataTransformer/ViewTransformerTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
<?php

/*
* This file is part of SolidInvoice project.
*
* (c) Pierre du Plessis <open-source@solidworx.co>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace SolidInvoice\MoneyBundle\Tests\Form\DataTransformer;

use Money\Currency;
use Money\Money;
use SolidInvoice\MoneyBundle\Form\DataTransformer\ViewTransformer;
use PHPUnit\Framework\TestCase;
use SolidInvoice\MoneyBundle\Form\DataTransformer\ViewTransformer;

/**
* @covers \SolidInvoice\MoneyBundle\Form\DataTransformer\ViewTransformer
Expand All @@ -18,7 +27,7 @@ final class ViewTransformerTest extends TestCase

protected function setUp(): void
{
$this->currency = new Currency("USD");
$this->currency = new Currency('USD');
$this->viewTransformer = new ViewTransformer($this->currency);
}

Expand Down

0 comments on commit b70da11

Please sign in to comment.