Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Aug 15, 2023
1 parent e6f2ab0 commit 2c37ed2
Show file tree
Hide file tree
Showing 98 changed files with 287 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Phug/Formatter/Formatter/AbstractFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ protected function getDebugInfo($element)
/**
* @param string|ElementInterface $element
* @param bool $noDebug
* @param $element
* @param $element
*
* @return string
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/Phug/CasesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ public function caseProvider()

/**
* @group cases
*
* @dataProvider caseProvider
*
* @covers ::compileFile
* @covers ::render
*/
Expand Down
8 changes: 8 additions & 0 deletions tests/Phug/CliTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function finishTest()

/**
* @group cli
*
* @covers ::getCustomMethods
*/
public function testGetCustomMethods()
Expand Down Expand Up @@ -73,6 +74,7 @@ public function testGetCustomMethods()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::getNamedArgumentBySpaceDelimiter
Expand Down Expand Up @@ -104,6 +106,7 @@ public function testRun()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::execute
Expand Down Expand Up @@ -158,6 +161,7 @@ public function testListAvailableMethods()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::execute
Expand All @@ -175,6 +179,7 @@ public function testCallableActions()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::getNamedArgumentBySpaceDelimiter
Expand All @@ -196,6 +201,7 @@ public function testOptions()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::getNamedArgumentBySpaceDelimiter
Expand Down Expand Up @@ -258,6 +264,7 @@ public function testCacheDirectory()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::getNamedArgumentBySpaceDelimiter
Expand Down Expand Up @@ -298,6 +305,7 @@ public function testBootstrap()

/**
* @group cli
*
* @covers ::convertToKebabCase
* @covers ::convertToCamelCase
* @covers ::getNamedArgumentBySpaceDelimiter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function testCompileNode()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function testCompileNode()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function testUnescapedAttributes()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand All @@ -92,6 +93,7 @@ public function testException()

/**
* @covers ::compileValue
*
* @expectedException \Phug\CompilerException
*/
public function testAttributeException()
Expand Down
2 changes: 2 additions & 0 deletions tests/Phug/Compiler/NodeCompiler/BlockNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public function testBlock()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand All @@ -53,6 +54,7 @@ public function testException()

/**
* @covers \Phug\Compiler::compileBlocks
*
* @expectedException \Phug\CompilerException
*/
public function testCompileBlocksException()
Expand Down
1 change: 1 addition & 0 deletions tests/Phug/Compiler/NodeCompiler/CaseNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
1 change: 1 addition & 0 deletions tests/Phug/Compiler/NodeCompiler/CodeNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public function testCompile()
/**
* @covers ::<public>
* @covers ::getCodeElement
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function testCompile()
/**
* @covers ::<public>
* @covers \Phug\CompilerException::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
1 change: 1 addition & 0 deletions tests/Phug/Compiler/NodeCompiler/DoNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class DoNodeCompilerTest extends AbstractCompilerTest
{
/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
1 change: 1 addition & 0 deletions tests/Phug/Compiler/NodeCompiler/EachNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ public function testCompileVariablesScope()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function testExpansionCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
3 changes: 3 additions & 0 deletions tests/Phug/Compiler/NodeCompiler/FilterNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function testLegacyFilters()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testWrongFilterException()
Expand Down Expand Up @@ -164,6 +165,7 @@ public function testFilterCompilerArgument()

/**
* @covers ::compileText
*
* @expectedException \Phug\CompilerException
*/
public function testFilterChildrenException()
Expand Down Expand Up @@ -192,6 +194,7 @@ public function testFilterChildrenException()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
3 changes: 3 additions & 0 deletions tests/Phug/Compiler/NodeCompiler/ImportNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ImportNodeCompilerTest extends AbstractCompilerTest
{
/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down Expand Up @@ -294,6 +295,7 @@ public function testNestedIncludedMixins()

/**
* @covers \Phug\Compiler::compileIntoElement
*
* @expectedException \Phug\CompilerException
*/
public function testCompileIntoElementException()
Expand Down Expand Up @@ -345,6 +347,7 @@ public function testNotFoundTemplate()

/**
* @covers \Phug\Compiler::throwException
*
* @expectedException \Phug\CompilerException
*/
public function testFileNotFoundInFileException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class MixinCallNodeCompilerTest extends AbstractCompilerTest
{
/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::compileAnonymousBlock
Expand Down Expand Up @@ -54,6 +55,7 @@ public function testCompile()

/**
* @group mixins
*
* @covers ::<public>
*/
public function testCompileNestedMixins()
Expand Down Expand Up @@ -82,6 +84,7 @@ public function testCompileNestedMixins()

/**
* @group mixins
*
* @covers ::<public>
*/
public function testCompileVariadicMixin()
Expand All @@ -104,6 +107,7 @@ public function testCompileVariadicMixin()

/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::compileAnonymousBlock
Expand All @@ -124,6 +128,7 @@ public function testDoubleBlock()

/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler::compileDocument
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::compileAnonymousBlock
Expand Down Expand Up @@ -177,6 +182,7 @@ public function testDynamicMixins()

/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler\NodeCompiler\MixinNodeCompiler::<public>
*/
Expand Down Expand Up @@ -274,6 +280,7 @@ public function testMissingMixin()

/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::compileAnonymousBlock
Expand All @@ -299,6 +306,7 @@ public function testMixinAttributes()

/**
* @group mixins
*
* @covers ::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::<public>
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler::compileAnonymousBlock
Expand Down
5 changes: 5 additions & 0 deletions tests/Phug/Compiler/NodeCompiler/MixinNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MixinNodeCompilerTest extends AbstractCompilerTest
{
/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand All @@ -29,6 +30,7 @@ public function testException()

/**
* @group mixins
*
* @covers ::<public>
*/
public function testRecursion()
Expand Down Expand Up @@ -60,6 +62,7 @@ public function testRecursion()

/**
* @group mixins
*
* @covers ::<public>
*/
public function testRecursionWithBlock()
Expand Down Expand Up @@ -94,7 +97,9 @@ public function testRecursionWithBlock()

/**
* @group mixins
*
* @covers \Phug\Compiler\NodeCompiler\BlockNodeCompiler ::compileAnonymousBlock
*
* @expectedException \Phug\CompilerException
*/
public function testAnonymousBlocksOutsideMixin()
Expand Down
1 change: 1 addition & 0 deletions tests/Phug/Compiler/NodeCompiler/TextNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function testText()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
2 changes: 2 additions & 0 deletions tests/Phug/Compiler/NodeCompiler/VariableNodeCompilerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function testCompile()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testExpressionException()
Expand All @@ -39,6 +40,7 @@ public function testExpressionException()

/**
* @covers ::<public>
*
* @expectedException \Phug\CompilerException
*/
public function testException()
Expand Down
Loading

0 comments on commit 2c37ed2

Please sign in to comment.