Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 5 additions & 5 deletions src/CssLint/Linter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand All @@ -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);

Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/CssLint/Properties.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Properties
{

/**
* List of exsiting constructor prefix
* List of existing constructor prefix
* @var array
*/
protected $constructors = array(
Expand Down
2 changes: 1 addition & 1 deletion tests/TestSuite/LinterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down