Skip to content

Commit ccf2882

Browse files
committed
Code style improvements
1 parent 19f4f28 commit ccf2882

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/IncludeQCompiler.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Imponeer\Smarty\Extensions\IncludeQ;
45

@@ -53,7 +54,7 @@ public function execute($args, Smarty_Internal_SmartyTemplateCompiler $compiler)
5354
*
5455
* @throws SmartyCompilerException
5556
*/
56-
protected function validateArguments(array $args, Smarty_Internal_SmartyTemplateCompiler $compiler)
57+
protected function validateArguments(array $args, Smarty_Internal_SmartyTemplateCompiler $compiler): void
5758
{
5859
if (!isset($args['file'])) {
5960
$compiler->trigger_template_error(

tests/IncludeQCompilerTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
<?php
2+
declare(strict_types=1);
23

34
use Imponeer\Smarty\Extensions\IncludeQ\IncludeQCompiler;
45
use PHPUnit\Framework\TestCase;
56

67
class IncludeQCompilerTest extends TestCase
78
{
89

9-
/**
10-
* @var Smarty
11-
*/
12-
private $smarty;
10+
private Smarty $smarty;
1311

1412
protected function setUp(): void
1513
{
@@ -26,14 +24,16 @@ protected function setUp(): void
2624
parent::setUp();
2725
}
2826

29-
public function testGetName() {
27+
public function testGetName(): void
28+
{
3029
$this->assertSame(
3130
'includeq',
3231
$this->plugin->getName()
3332
);
3433
}
3534

36-
public function testInvoking() {
35+
public function testInvoking(): void
36+
{
3737
$src = urlencode(
3838
sprintf(
3939
"{includeq file=\"%s\"}",

0 commit comments

Comments
 (0)