Skip to content

Commit 051b677

Browse files
committed
Added code-checker
1 parent b1bdf1f commit 051b677

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

code-checker.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return function (JP\CodeChecker\CheckerConfig $config) {
6+
JP\CodeChecker\Sets\CzProjectMinimum::configure($config);
7+
};

src/CssMinifier.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Cz\CssMinifier;
46

57

@@ -10,8 +12,8 @@ class CssMinifier
1012

1113

1214
/**
13-
* @link https://github.com/nette/build-tools/blob/master/tasks/minifyJs.php#L51-L56
14-
* @author David Grudl, 2011
15+
* @link https://github.com/nette/build-tools/blob/master/tasks/minifyJs.php#L51-L56
16+
* @author David Grudl, 2011
1517
*/
1618
public function minify(string $s): string
1719
{
@@ -64,4 +66,3 @@ public function minify(string $s): string
6466
return $buffer;
6567
}
6668
}
67-

tests/CssMinifier/basic.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<?php
2+
3+
declare(strict_types=1);
4+
25
use Tester\Assert;
36

47
require __DIR__ . '/../bootstrap.php';
@@ -36,4 +39,3 @@ Assert::same('.classname{border-top:1px;border-bottom:2px}', $minifier->minify("
3639
border-top: 1px; ;
3740
border-bottom: 2px;;;
3841
}"));
39-

0 commit comments

Comments
 (0)