From 982251b0b90e815f6e2208ccc02e38a32dca0b55 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 6 Nov 2019 01:54:53 +0100 Subject: [PATCH] Typos --- composer.json | 2 +- src/CssLint/Linter.php | 10 +++++----- src/CssLint/Properties.php | 2 +- tests/TestSuite/LinterTest.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index c1fe6b5..7df29e8 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "neilime/php-css-lint", "type": "library", - "description": "Powerfull & memory efficiant CSS linter for PHP", + "description": "Powerful & memory efficient CSS linter for PHP", "keywords": ["CSS", "lint", "linter", "syntax", "validation"], "homepage": "https://neilime.github.io/php-css-lint/", "license": "MIT", diff --git a/src/CssLint/Linter.php b/src/CssLint/Linter.php index f19275d..b9da4dc 100644 --- a/src/CssLint/Linter.php +++ b/src/CssLint/Linter.php @@ -18,7 +18,7 @@ class Linter protected $cssLintProperties; /** - * Errors occured during the lint process + * Errors occurred during the lint process * @var array */ protected $errors = array(); @@ -54,7 +54,7 @@ class Linter protected $previousChar; /** - * Tells if the linter is parsing a nested selecter. Ex: @media, @keyframes... + * Tells if the linter is parsing a nested selector. Ex: @media, @keyframes... * @var boolean */ protected $nestedSelector = false; @@ -116,7 +116,7 @@ public function lintFile($sFilePath) $rFileHandle = fopen($sFilePath, 'r'); if ($rFileHandle === false) { - throw new \RuntimeException('An error occured while opening file "' . $sFilePath . '"'); + throw new \RuntimeException('An error occurred while opening file "' . $sFilePath . '"'); } $this->initLint(); @@ -129,7 +129,7 @@ public function lintFile($sFilePath) } if (!feof($rFileHandle)) { - throw new \RuntimeException('An error occured while reading file "' . $sFilePath . '"'); + throw new \RuntimeException('An error occurred while reading file "' . $sFilePath . '"'); } fclose($rFileHandle); @@ -609,7 +609,7 @@ protected function addError($sError) } /** - * Return the errors occured during the lint process + * Return the errors occurred during the lint process * @return array */ public function getErrors() diff --git a/src/CssLint/Properties.php b/src/CssLint/Properties.php index 4d83941..0d91ca3 100644 --- a/src/CssLint/Properties.php +++ b/src/CssLint/Properties.php @@ -6,7 +6,7 @@ class Properties { /** - * List of exsiting constructor prefix + * List of existing constructor prefix * @var array */ protected $constructors = array( diff --git a/tests/TestSuite/LinterTest.php b/tests/TestSuite/LinterTest.php index f80729f..180c9cc 100644 --- a/tests/TestSuite/LinterTest.php +++ b/tests/TestSuite/LinterTest.php @@ -107,7 +107,7 @@ public function testLintFileWithWrongTypeParam() $this->linter->lintFile(false); } - public function testLintFileWithUnkownFilePathParam() + public function testLintFileWithUnknownFilePathParam() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('Argument "$sFilePath" "wrong" is not an existing file path');