Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #65 from shinsenter/develop
Browse files Browse the repository at this point in the history
Small bug fixes
  • Loading branch information
shinsenter authored May 21, 2021
2 parents 3578edc + 1559d51 commit f95a852
Show file tree
Hide file tree
Showing 15 changed files with 211 additions and 129 deletions.
4 changes: 1 addition & 3 deletions .php_cs → .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@
'no_binary_string' => true,
'no_empty_phpdoc' => true,
'no_null_property_initialization' => true,
'no_short_echo_tag' => true,
'no_superfluous_elseif' => true,
'no_unneeded_curly_braces' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_internal_class' => true,
'php_unit_ordered_covers' => true,
'php_unit_test_class_requires_covers' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
Expand Down Expand Up @@ -113,7 +111,7 @@
->ignoreDotFiles(true)
->ignoreVCS(true);

return \PhpCsFixer\Config::create()
return (new \PhpCsFixer\Config())
->setFinder($finder)
->setRules($rules)
->setLineEnding("\n")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ $options = [
'manually_add_deferjs' => false,

// URL to defer.js javascript file.
// Default: https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.4.0/dist/defer_plus.min.js
// Default: https://cdn.jsdelivr.net/npm/@shinsenter/defer.js@2.4.2/dist/defer_plus.min.js
'deferjs_src' => \AppSeeds\DeferConstant::SRC_DEFERJS_CDN,

// URL to javascript contains fixes.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
},
"scripts": {
"fixer": "php-cs-fixer fix --show-progress=estimating --verbose --ansi",
"fixer": "php-cs-fixer fix --show-progress=dots --verbose --ansi",
"test": "@php tests/v2/test.php --ansi",
"bf": "blackfire run php tests/v2/test.php --ansi",
"assets": [
Expand Down
Loading

0 comments on commit f95a852

Please sign in to comment.