Skip to content

Commit

Permalink
Move humanizer code into NS
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Feb 16, 2021
1 parent 04fef9a commit ee0da43
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
>
<projectFiles>
<directory name="src/PackagePrivate" />
<directory name="tests/Unit/Humanize" />
<directory name="tests/Unit/PackagePrivate/Humanizer" />

<ignoreFiles>
<directory name="src/PackagePrivate/Carbon" />
Expand Down
6 changes: 3 additions & 3 deletions src/EdtfFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace EDTF;

use EDTF\PackagePrivate\EnglishHumanizer;
use EDTF\PackagePrivate\FrenchHumanizer;
use EDTF\PackagePrivate\PrivateStructuredHumanizer;
use EDTF\PackagePrivate\Humanizer\EnglishHumanizer;
use EDTF\PackagePrivate\Humanizer\FrenchHumanizer;
use EDTF\PackagePrivate\Humanizer\PrivateStructuredHumanizer;
use EDTF\PackagePrivate\SaneParser;
use EDTF\PackagePrivate\Validator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare( strict_types = 1 );

namespace EDTF\PackagePrivate;
namespace EDTF\PackagePrivate\Humanizer;

use EDTF\EdtfValue;
use EDTF\ExtDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare( strict_types = 1 );

namespace EDTF\PackagePrivate;
namespace EDTF\PackagePrivate\Humanizer;

use EDTF\EdtfValue;
use EDTF\Humanizer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare( strict_types = 1 );

namespace EDTF\PackagePrivate;
namespace EDTF\PackagePrivate\Humanizer;

class HumanizedSetDates {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

declare( strict_types = 1 );

namespace EDTF\PackagePrivate;
namespace EDTF\PackagePrivate\Humanizer;

use EDTF\EdtfValue;
use EDTF\HumanizationResult;
use EDTF\Humanizer;
use EDTF\PackagePrivate\Humanizer\HumanizedSetDates;
use EDTF\Set;
use EDTF\StructuredHumanizer;

Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/StringHumanizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use PHPUnit\Framework\TestCase;

/**
* @covers \EDTF\PackagePrivate\EnglishHumanizer
* @covers \EDTF\PackagePrivate\Humanizer\EnglishHumanizer
* @covers \EDTF\PackagePrivate\Parser\Parser
* @covers \EDTF\Interval
* @covers \EDTF\IntervalSide
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare( strict_types = 1 );

namespace EDTF\Tests\Unit\Humanize\Languages;
namespace EDTF\Tests\Unit\PackagePrivate\Humanizer;

use EDTF\EdtfValue;
use EDTF\ExtDate;
use EDTF\PackagePrivate\EnglishHumanizer;
use EDTF\PackagePrivate\Humanizer\EnglishHumanizer;
use EDTF\Season;
use PHPUnit\Framework\TestCase;

/**
* @covers \EDTF\PackagePrivate\EnglishHumanizer
* @covers \EDTF\PackagePrivate\Humanizer\EnglishHumanizer
*/
class EnglishHumanizerTest extends TestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

declare( strict_types = 1 );

namespace EDTF\Tests\Unit\Humanize\Languages;
namespace EDTF\Tests\Unit\PackagePrivate\Humanizer;

use EDTF\PackagePrivate\FrenchHumanizer;
use EDTF\PackagePrivate\Humanizer\FrenchHumanizer;
use EDTF\Season;
use PHPUnit\Framework\TestCase;

/**
* @covers \EDTF\PackagePrivate\FrenchHumanizer
* @covers \EDTF\PackagePrivate\Humanizer\FrenchHumanizer
*/
class FrenchHumanizerTest extends TestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare( strict_types = 1 );

namespace EDTF\Tests\Unit\PackagePrivate;
namespace EDTF\Tests\Unit\PackagePrivate\Humanizer;

use EDTF\PackagePrivate\HumanizedSetDates;
use EDTF\PackagePrivate\Humanizer\HumanizedSetDates;
use PHPUnit\Framework\TestCase;

/**
* @covers \EDTF\PackagePrivate\HumanizedSetDates
* @covers \EDTF\PackagePrivate\Humanizer\HumanizedSetDates
*/
class HumanizedSetDatesTest extends TestCase {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare( strict_types = 1 );

namespace EDTF\Tests\Unit\PackagePrivate;
namespace EDTF\Tests\Unit\PackagePrivate\Humanizer;

use EDTF\EdtfFactory;
use EDTF\EdtfValue;
Expand All @@ -14,7 +14,7 @@
use PHPUnit\Framework\TestCase;

/**
* @covers \EDTF\PackagePrivate\PrivateStructuredHumanizer
* @covers \EDTF\PackagePrivate\Humanizer\PrivateStructuredHumanizer
* @covers \EDTF\HumanizationResult
*/
class PrivateStructuredHumanizerTest extends TestCase {
Expand Down

0 comments on commit ee0da43

Please sign in to comment.