Skip to content

Commit d62ac24

Browse files
authored
Merge pull request #7 from Girgias/typos
Typos
2 parents 1df0a96 + 982251b commit d62ac24

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "neilime/php-css-lint",
33
"type": "library",
4-
"description": "Powerfull & memory efficiant CSS linter for PHP",
4+
"description": "Powerful & memory efficient CSS linter for PHP",
55
"keywords": ["CSS", "lint", "linter", "syntax", "validation"],
66
"homepage": "https://neilime.github.io/php-css-lint/",
77
"license": "MIT",

src/CssLint/Linter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Linter
1818
protected $cssLintProperties;
1919

2020
/**
21-
* Errors occured during the lint process
21+
* Errors occurred during the lint process
2222
* @var array
2323
*/
2424
protected $errors = array();
@@ -54,7 +54,7 @@ class Linter
5454
protected $previousChar;
5555

5656
/**
57-
* Tells if the linter is parsing a nested selecter. Ex: @media, @keyframes...
57+
* Tells if the linter is parsing a nested selector. Ex: @media, @keyframes...
5858
* @var boolean
5959
*/
6060
protected $nestedSelector = false;
@@ -116,7 +116,7 @@ public function lintFile($sFilePath)
116116

117117
$rFileHandle = fopen($sFilePath, 'r');
118118
if ($rFileHandle === false) {
119-
throw new \RuntimeException('An error occured while opening file "' . $sFilePath . '"');
119+
throw new \RuntimeException('An error occurred while opening file "' . $sFilePath . '"');
120120
}
121121

122122
$this->initLint();
@@ -129,7 +129,7 @@ public function lintFile($sFilePath)
129129
}
130130

131131
if (!feof($rFileHandle)) {
132-
throw new \RuntimeException('An error occured while reading file "' . $sFilePath . '"');
132+
throw new \RuntimeException('An error occurred while reading file "' . $sFilePath . '"');
133133
}
134134
fclose($rFileHandle);
135135

@@ -609,7 +609,7 @@ protected function addError($sError)
609609
}
610610

611611
/**
612-
* Return the errors occured during the lint process
612+
* Return the errors occurred during the lint process
613613
* @return array
614614
*/
615615
public function getErrors()

src/CssLint/Properties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Properties
66
{
77

88
/**
9-
* List of exsiting constructor prefix
9+
* List of existing constructor prefix
1010
* @var array
1111
*/
1212
protected $constructors = array(

tests/TestSuite/LinterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testLintFileWithWrongTypeParam()
107107
$this->linter->lintFile(false);
108108
}
109109

110-
public function testLintFileWithUnkownFilePathParam()
110+
public function testLintFileWithUnknownFilePathParam()
111111
{
112112
$this->expectException(\InvalidArgumentException::class);
113113
$this->expectExceptionMessage('Argument "$sFilePath" "wrong" is not an existing file path');

0 commit comments

Comments
 (0)