Skip to content

Commit

Permalink
added phpcs fixer and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilsarwe committed Apr 13, 2021
1 parent 147e0af commit b72fcbd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
12 changes: 12 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

use PhpCsFixer\Finder;

$finder = Finder::create()
->notPath('vendor')
->in(getcwd(). '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);

return Codeat3\styles($finder);
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<a href="https://github.com/codeat3/blade-unicons/actions?query=workflow%3ATests">
<img src="https://github.com/codeat3/blade-unicons/workflows/Tests/badge.svg" alt="Tests">
</a>
<a href="https://github.styleci.io/repos/258753939">
<img src="https://github.styleci.io/repos/258753939/shield?style=flat" alt="Code Style">
</a>
<a href="https://packagist.org/packages/codeat3/blade-unicons">
<img src="https://img.shields.io/packagist/v/codeat3/blade-unicons" alt="Latest Stable Version">
</a>
Expand Down
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codeat3/blade-unicons",
"description": "A package to easily make use of Unicons in your Laravel Blade views.",
"description": "A package to easily make use of \"Unicons\" in your Laravel Blade views.",
"keywords": ["Blade", "unicons", "Laravel"],
"homepage": "https://github.com/codeat3/blade-unicons",
"license": "MIT",
Expand All @@ -20,6 +20,7 @@
"illuminate/support": "^8.0"
},
"require-dev": {
"codeat3/phpcs-styles": "dev-main",
"orchestra/testbench": "^6.0",
"phpunit/phpunit": "^9.0",
"symfony/finder": "^5.2"
Expand All @@ -45,5 +46,9 @@
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"scripts": {
"test": "vendor/bin/phpunit",
"format": "vendor/bin/php-cs-fixer fix"
}
}

0 comments on commit b72fcbd

Please sign in to comment.