forked from WalterWoshid/php-dissect
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply the PHPUnitSetList::PHPUNIT_CODE_QUALITY set of rules
- Loading branch information
1 parent
6e30ac6
commit c676882
Showing
33 changed files
with
122 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ | |
* SimpleLexer and StatefulLexer extend this class. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\AbstractLexerTest | ||
*/ | ||
abstract class AbstractLexer implements Lexer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
* regular expression. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\Recognizer\RegexRecognizerTest | ||
*/ | ||
class RegexRecognizer implements Recognizer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
* strpos match. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\Recognizer\SimpleRecognizerTest | ||
*/ | ||
class SimpleRecognizer implements Recognizer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
* @author Jonathan Wage <[email protected]> | ||
* @author Roman Borschel <[email protected]> | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\RegexLexerTest | ||
*/ | ||
abstract class RegexLexer implements Lexer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
* without keeping track of state. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\SimpleLexerTest | ||
*/ | ||
class SimpleLexer extends AbstractLexer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
* but internally keeps notion of current lexer state. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\StatefulLexerTest | ||
*/ | ||
class StatefulLexer extends AbstractLexer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
* A simple array based implementation of a token stream. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Lexer\TokenStream\ArrayTokenStreamTest | ||
*/ | ||
class ArrayTokenStream implements TokenStream | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
* Represents a context-free grammar. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\GrammarTest | ||
*/ | ||
class Grammar | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
* the result. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Analysis\AnalyzerTest | ||
*/ | ||
class Analyzer | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
* grammar productions. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Analysis\AutomatonTest | ||
*/ | ||
class Automaton | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
* can be reduced. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Analysis\ItemTest | ||
*/ | ||
class Item | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
* of states by their kernel items. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Analysis\KernelSet\KernelSetTest | ||
*/ | ||
class KernelSet | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
* A state in a handle-finding FSA. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Analysis\StateTest | ||
*/ | ||
class State | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
* format used by Graphviz. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Dumper\AutomatonDumperTest | ||
*/ | ||
class AutomatonDumper | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
* parser. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Dumper\DebugTableDumperTest | ||
*/ | ||
class DebugTableDumper implements TableDumper | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
* without any comments. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\Dumper\ProductionTableDumperTest | ||
*/ | ||
class ProductionTableDumper implements TableDumper | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
* A LR parser. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\LALR1\ParserTest | ||
*/ | ||
class Parser implements P\Parser | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
* Represents a rule in a context-free grammar. | ||
* | ||
* @author Jakub Lédl <[email protected]> | ||
* @see \Dissect\Parser\RuleTest | ||
*/ | ||
class Rule | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.