diff --git a/.editorconfig b/.editorconfig index 56f3b6b..6537ca4 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,6 @@ trim_trailing_whitespace = true [*.md] trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 diff --git a/src/helpers.php b/src/helpers.php index dea85cc..7aafa2f 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -4,7 +4,7 @@ if (! function_exists('verta')) { /** * @param null $datetime * @param null $timezone - * @return \Hekmatinasse\Verta\Verta + * @return \Hekmatinasser\Verta\Verta */ function verta($datetime = null, $timezone = null) { diff --git a/tests/ComparisionTest.php b/tests/ComparisionTest.php index 735b30b..87aa650 100644 --- a/tests/ComparisionTest.php +++ b/tests/ComparisionTest.php @@ -5,7 +5,7 @@ namespace Hekmatinasser\Verta\Tests; use Hekmatinasser\Verta\Verta; use PHPUnit\Framework\TestCase; -class ComparisionTest extends TestCase +class ComparisonTest extends TestCase { public function testValidDate() { @@ -53,8 +53,6 @@ class ComparisionTest extends TestCase public function testDiffMonths() { - $datetime = Verta::parse('1398-10-10 21:30:50'); - $datetime = Verta::parse('1398-10-10 21:30:50'); $result = $datetime->diffMonths($datetime);