Skip to content

Commit

Permalink
Revert "Move Money formatter into a folder"
Browse files Browse the repository at this point in the history
This reverts commit 8f415d1.
  • Loading branch information
pelmered committed Dec 4, 2024
1 parent 1549291 commit c11d9b7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Forms/Components/MoneyInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Pelmered\FilamentMoneyField\Concerns\HasMoneyAttributes;
use Pelmered\FilamentMoneyField\Forms\Rules\MaxValueRule;
use Pelmered\FilamentMoneyField\Forms\Rules\MinValueRule;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use Pelmered\FilamentMoneyField\MoneyFormatter;
use Closure;

class MoneyInput extends TextInput
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Rules/MaxValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Money\Exception\ParserException;
use Pelmered\FilamentMoneyField\Concerns\FormatsAttributes;
use Pelmered\FilamentMoneyField\Forms\Components\MoneyInput;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use Pelmered\FilamentMoneyField\MoneyFormatter;

readonly class MaxValueRule implements ValidationRule
{
Expand Down
2 changes: 1 addition & 1 deletion src/Forms/Rules/MinValueRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Money\Exception\ParserException;
use Pelmered\FilamentMoneyField\Concerns\FormatsAttributes;
use Pelmered\FilamentMoneyField\Forms\Components\MoneyInput;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use Pelmered\FilamentMoneyField\MoneyFormatter;

readonly class MinValueRule implements ValidationRule
{
Expand Down
2 changes: 1 addition & 1 deletion src/Infolists/Components/MoneyEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Filament\Infolists\Components\TextEntry;
use Pelmered\FilamentMoneyField\Concerns\HasMoneyAttributes;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use Pelmered\FilamentMoneyField\MoneyFormatter;

class MoneyEntry extends TextEntry
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Pelmered\FilamentMoneyField\MoneyFormatter;
namespace Pelmered\FilamentMoneyField;

use Illuminate\Support\Number;
use Money\Currencies\ISOCurrencies;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Pelmered\FilamentMoneyField\MoneyFormatter;
namespace Pelmered\FilamentMoneyField;

class MoneyFormattingRules
{
Expand Down
2 changes: 1 addition & 1 deletion src/Tables/Columns/MoneyColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Filament\Tables\Columns\TextColumn;
use Pelmered\FilamentMoneyField\Concerns\HasMoneyAttributes;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use Pelmered\FilamentMoneyField\MoneyFormatter;

class MoneyColumn extends TextColumn
{
Expand Down
4 changes: 1 addition & 3 deletions tests/MoneyFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace Pelmered\FilamentMoneyField\Tests;

use Money\Currency;
use Pelmered\FilamentMoneyField\Tests\TestCase;
use Pelmered\FilamentMoneyField\MoneyFormatter\MoneyFormatter;
use PHPUnit\Framework\Attributes\DataProvider;
use Pelmered\FilamentMoneyField\MoneyFormatter;

uses(TestCase::class);

Expand Down

0 comments on commit c11d9b7

Please sign in to comment.