Skip to content

Commit ab6aab3

Browse files
committed
Small fixes
1 parent 6ea43c4 commit ab6aab3

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

src/Behat/Gherkin/Exception/CacheException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010

1111
namespace Behat\Gherkin\Exception;
1212

13+
use RuntimeException;
14+
1315
/**
1416
* Cache exception.
1517
*
1618
* @author Konstantin Kudryashov <ever.zet@gmail.com>
1719
*/
18-
class CacheException extends \RuntimeException implements Exception
20+
class CacheException extends RuntimeException implements Exception
1921
{
2022
}

src/Behat/Gherkin/Exception/LexerException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
namespace Behat\Gherkin\Exception;
1212

13-
class LexerException extends \RuntimeException implements Exception
13+
use RuntimeException;
14+
15+
class LexerException extends RuntimeException implements Exception
1416
{
1517
}

src/Behat/Gherkin/Exception/NodeException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
namespace Behat\Gherkin\Exception;
1212

13-
class NodeException extends \RuntimeException implements Exception
13+
use RuntimeException;
14+
15+
class NodeException extends RuntimeException implements Exception
1416
{
1517
}

src/Behat/Gherkin/Exception/ParserException.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
namespace Behat\Gherkin\Exception;
1212

13-
class ParserException extends \RuntimeException implements Exception
13+
use RuntimeException;
14+
15+
class ParserException extends RuntimeException implements Exception
1416
{
1517
}

src/Behat/Gherkin/Lexer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ protected function scanInput($regex, $type)
272272
/**
273273
* Scans for token with specified keywords.
274274
*
275-
* @param string $keywords Keywords (splitted with |)
275+
* @param string $keywords Keywords (separated by "|")
276276
* @param string $type Expected token type
277277
*
278278
* @return array|null

0 commit comments

Comments
 (0)