From e0bc1281e7f44798c8db99021f256c52a538aab1 Mon Sep 17 00:00:00 2001 From: Pascal Borreli Date: Sat, 20 Jun 2015 03:02:24 +0000 Subject: [PATCH] Fixed typos --- src/Faker/Provider/Image.php | 2 +- test/Faker/Provider/BarcodeTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Faker/Provider/Image.php b/src/Faker/Provider/Image.php index 40aeac5389..0def1371bc 100644 --- a/src/Faker/Provider/Image.php +++ b/src/Faker/Provider/Image.php @@ -24,7 +24,7 @@ public static function imageUrl($width = 640, $height = 480, $category = null, $ $url = "http://lorempixel.com/{$width}/{$height}/"; if ($category) { if (!in_array($category, static::$categories)) { - throw new \InvalidArgumentException(sprintf('Unkown image category "%s"', $category)); + throw new \InvalidArgumentException(sprintf('Unknown image category "%s"', $category)); } $url .= "{$category}/"; if ($word) { diff --git a/test/Faker/Provider/BarcodeTest.php b/test/Faker/Provider/BarcodeTest.php index a7ee6d98b5..1373b2b5bd 100644 --- a/test/Faker/Provider/BarcodeTest.php +++ b/test/Faker/Provider/BarcodeTest.php @@ -21,18 +21,18 @@ public function testEan8() { $code = $this->faker->ean8(); $this->assertRegExp('/^\d{8}$/i', $code); - $codeWitoutChecksum = substr($code, 0, -1); + $codeWithoutChecksum = substr($code, 0, -1); $checksum = substr($code, -1); - $this->assertEquals(TestableBarcode::eanChecksum($codeWitoutChecksum), $checksum); + $this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum); } public function testEan13() { $code = $this->faker->ean13(); $this->assertRegExp('/^\d{13}$/i', $code); - $codeWitoutChecksum = substr($code, 0, -1); + $codeWithoutChecksum = substr($code, 0, -1); $checksum = substr($code, -1); - $this->assertEquals(TestableBarcode::eanChecksum($codeWitoutChecksum), $checksum); + $this->assertEquals(TestableBarcode::eanChecksum($codeWithoutChecksum), $checksum); } }