Skip to content

Commit 8f38d3c

Browse files
committed
🎨 travis, phpunit, phpcsfixer
Signed-off-by: Bruno Meilick <[email protected]>
1 parent 2364953 commit 8f38d3c

16 files changed

+1448
-460
lines changed
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
<?php
22

3+
34
$finder = PhpCsFixer\Finder::create()
4-
->exclude('vendor')
5+
->exclude('content')
56
->exclude('kirby')
7+
->exclude('node_modules')
8+
//->exclude('site/plugins')
9+
->exclude('src')
10+
->exclude('vendor')
611
->in(__DIR__)
712
;
813

9-
return PhpCsFixer\Config::create()
14+
return (new PhpCsFixer\Config())
1015
->setRules([
1116
'@PSR2' => true,
1217
])
1318
->setFinder($finder)
14-
;
19+
;

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: php
2-
php: 7.2
2+
php: 7.3
33
matrix:
44
fast_finish: true
55
install: composer install --no-interaction

classes/Fingerprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function attrs(array $attrs, array $lookup)
161161
*/
162162
public function helper(string $extension, string $url, array $attrs = []): ?string
163163
{
164-
if(! is_callable($extension)) {
164+
if (! is_callable($extension)) {
165165
return null;
166166
}
167167

classes/FingerprintFile.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ public function integrity(bool $openssl = true): ?string
145145
if (is_array($output) && count($output) >= 1) {
146146
return 'sha384-' . $output[0];
147147
}
148-
} catch (\Exception $ex) {}
148+
} catch (\Exception $ex) {
149+
}
149150

150151
return null; // @codeCoverageIgnore
151152
}

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-fingerprint",
33
"type": "kirby-plugin",
4-
"version": "3.0.12",
4+
"version": "3.0.13",
55
"description": "File Method and css/js helper to add cachebusting hash and optional Subresource Integrity to file",
66
"license": "MIT",
77
"authors": [
@@ -33,20 +33,20 @@
3333
"sort-packages": true
3434
},
3535
"require": {
36-
"php": ">=7.2.0",
37-
"getkirby/composer-installer": "^1.1"
36+
"php": ">=7.3.0",
37+
"getkirby/composer-installer": "^1.2"
3838
},
3939
"require-dev": {
40-
"phpunit/phpunit": "^8.3",
41-
"getkirby/cms": "^3.2",
42-
"php-coveralls/php-coveralls": "^2.1"
40+
"getkirby/cms": "^3.5",
41+
"php-coveralls/php-coveralls": "^2.1",
42+
"phpunit/phpunit": "^9.5"
4343
},
4444
"scripts": {
4545
"analyze": "phpstan analyse classes",
46-
"insights": "./vendor/bin/phpinsights -v",
4746
"fix": "php-cs-fixer fix",
4847
"test": [
4948
"mkdir -p tests/logs",
49+
"@putenv XDEBUG_MODE=coverage",
5050
"phpunit --configuration ./phpunit.xml"
5151
],
5252
"dist": [

0 commit comments

Comments
 (0)