From 4a3495faf241b62abdef375564a14ed6b72bf485 Mon Sep 17 00:00:00 2001 From: nasser Date: Wed, 16 Feb 2022 19:40:39 +0330 Subject: [PATCH] fix typo --- .editorconfig | 3 +++ src/helpers.php | 2 +- tests/ComparisionTest.php | 4 +--- 3 files changed, 5 insertions(+), 4 deletions(-) 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);