Skip to content

Commit 2813604

Browse files
aarondfrancisStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent 96d1c2e commit 2813604

5 files changed

+11
-11
lines changed

src/BaseExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class BaseExtension
2121
protected $customBlockRenderer;
2222

2323
/**
24-
* @param DocumentParsedEvent $event
24+
* @param DocumentParsedEvent $event
2525
*/
2626
public function onDocumentParsed(DocumentParsedEvent $event)
2727
{
@@ -50,7 +50,7 @@ public function onDocumentParsed(DocumentParsedEvent $event)
5050
}
5151

5252
/**
53-
* @param callable $callback
53+
* @param callable $callback
5454
* @return $this
5555
*/
5656
public function useCustomBlockRenderer($callback)
@@ -85,7 +85,7 @@ abstract protected function getLiteralContent($node);
8585
* Bind into a Commonmark V1 or V2 environment.
8686
*
8787
* @param $environment
88-
* @param string $renderMethod
88+
* @param string $renderMethod
8989
*/
9090
protected function bind($environment, $renderMethod)
9191
{

src/TorchlightExtension.php

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
/**
66
* Class TorchlightExtension
7+
*
78
* @deprecated use \Torchlight\Commonmark\V1\TorchlightExtension instead.
89
* @see \Torchlight\Commonmark\V1\TorchlightExtension
910
*/

src/V1/TorchlightExtension.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TorchlightExtension extends BaseExtension implements ExtensionInterface, B
1717
* This method just proxies to our base class, but the
1818
* signature has to match Commonmark V1.
1919
*
20-
* @param ConfigurableEnvironmentInterface $environment
20+
* @param ConfigurableEnvironmentInterface $environment
2121
*/
2222
public function register(ConfigurableEnvironmentInterface $environment)
2323
{
@@ -28,9 +28,9 @@ public function register(ConfigurableEnvironmentInterface $environment)
2828
* This method just proxies to our base class, but the
2929
* signature has to match Commonmark V1.
3030
*
31-
* @param AbstractBlock $block
32-
* @param ElementRendererInterface $htmlRenderer
33-
* @param false $inTightList
31+
* @param AbstractBlock $block
32+
* @param ElementRendererInterface $htmlRenderer
33+
* @param false $inTightList
3434
* @return mixed
3535
*/
3636
public function render(AbstractBlock $block, ElementRendererInterface $htmlRenderer, $inTightList = false)

src/V2/TorchlightExtension.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TorchlightExtension extends BaseExtension implements ExtensionInterface, N
1717
* This method just proxies to our base class, but the
1818
* signature has to match Commonmark V2.
1919
*
20-
* @param EnvironmentBuilderInterface $environment
20+
* @param EnvironmentBuilderInterface $environment
2121
*/
2222
public function register(EnvironmentBuilderInterface $environment): void
2323
{
@@ -28,8 +28,8 @@ public function register(EnvironmentBuilderInterface $environment): void
2828
* This method just proxies to our base class, but the
2929
* signature has to match Commonmark V2.
3030
*
31-
* @param Node $node
32-
* @param ChildNodeRendererInterface $childRenderer
31+
* @param Node $node
32+
* @param ChildNodeRendererInterface $childRenderer
3333
* @return mixed|string|\Stringable|null
3434
*/
3535
public function render(Node $node, ChildNodeRendererInterface $childRenderer)

tests/BaseRendererTest.php

-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ public function indented_code_doesnt_fail()
139139
});
140140
}
141141

142-
143142
/** @test */
144143
public function can_load_file()
145144
{

0 commit comments

Comments
 (0)