Skip to content

Commit

Permalink
clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
yoeunes committed Mar 3, 2019
1 parent 273577d commit dee41bc
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 333 deletions.
20 changes: 11 additions & 9 deletions .gitattributes
@@ -1,11 +1,13 @@
# Path-based git attributes
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
* text=auto
* text eol=lf

/tests export-ignore
.github/ export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.php_cs export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
phpunit.xml export-ignore
# Ignore all test and documentation with "export-ignore".
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/.scrutinizer.yml export-ignore
/tests export-ignore
/.editorconfig export-ignore
13 changes: 7 additions & 6 deletions .gitignore
@@ -1,7 +1,8 @@
vendor/
.idea
/coverage
composer.phar
build
composer.lock
coverage.clover
phpunit.phar
docs
vendor
.php_cs.cache
coverage
.phpunit.result.cache
.idea
175 changes: 0 additions & 175 deletions .php_cs

This file was deleted.

60 changes: 2 additions & 58 deletions .scrutinizer.yml
@@ -1,7 +1,5 @@
before_commands:
- composer self-update
- composer install
- composer update --prefer-source
filter:
excluded_paths: [tests/*]

checks:
php:
Expand All @@ -18,57 +16,3 @@ checks:
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage: true
external_code_coverage:
timeout: 600
runs: 2
php_code_coverage: true
php_code_sniffer:
enabled: true
config:
standard: PSR2
filter:
paths: ["src/*", "tests/*"]
php_cpd:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_sim: true
php_cs_fixer:
enabled: true
config:
level: all
filter:
paths: ["src/*", "tests/*"]
php_loc:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_mess_detector:
enabled: true
filter:
paths: ["src/*"]
php_pdepend:
enabled: true
excluded_dirs: ["tests", "vendor"]
php_analyzer: true
php_analyzer:
filter:
paths: ["src/*", "tests/*"]

build:
environment:
php: '7.1.13'
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=coverage.clover'
coverage:
file: 'coverage.clover'
format: 'clover'

filter:
excluded_paths:
- tests/*
- vendor/*
- .github/*
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Expand Up @@ -3,7 +3,6 @@
<p align="center">:eyes: This package helps you to add <a href="https://github.com/CodeSeven/toastr">toastr.js</a> notifications to your Laravel 5 and Lumen projects.</p>

<p align="center">
<a href="https://travis-ci.org/yoeunes/toastr"><img src="https://travis-ci.org/yoeunes/toastr.svg?branch=master" alt="Build Status"></a>
<a href="https://packagist.org/packages/yoeunes/toastr"><img src="https://poser.pugx.org/yoeunes/toastr/v/stable" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/yoeunes/toastr"><img src="https://poser.pugx.org/yoeunes/toastr/v/unstable" alt="Latest Unstable Version"></a>
<a href="https://scrutinizer-ci.com/g/yoeunes/toastr/build-status/master"><img src="https://scrutinizer-ci.com/g/yoeunes/toastr/badges/build.png?b=master" alt="Build Status"></a>
Expand Down
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

14 changes: 3 additions & 11 deletions composer.json
Expand Up @@ -9,8 +9,9 @@
"notification",
"laravel",
"laravel 5",
"laravel 5.6",
"laravel 5.8",
"laravel notification",
"laravel notify",
"laravel toastr",
"flush",
"flush notifications",
Expand All @@ -26,7 +27,7 @@
{
"name" : "Younes Khoubza",
"email" : "younes.khoubza@gmail.com",
"homepage": "https://dalilbook.com",
"homepage": "https://github.com/yoeunes",
"role" : "Developer"
}
],
Expand All @@ -35,10 +36,6 @@
"illuminate/session": "~5.5.0|~5.6.0|~5.7.0|~5.8.0",
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0"
},
"require-dev" : {
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0",
"phpunit/phpunit": "^6.2|^7.0"
},
"autoload" : {
"psr-4": {
"Yoeunes\\Toastr\\": "src"
Expand All @@ -47,11 +44,6 @@
"src/helpers.php"
]
},
"autoload-dev" : {
"psr-4": {
"Yoeunes\\Toastr\\Tests\\": "tests"
}
},
"minimum-stability": "stable",
"prefer-stable" : true,
"extra" : {
Expand Down
25 changes: 25 additions & 0 deletions phpcs.xml
@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<ruleset name="yoeunes/toastr coding standard">
<description>yoeunes/toastr coding standard</description>

<!-- Pass some flags to PHPCS:
p flag: Show progress of the run.
s flag: Show sniff codes in all reports.
-->
<arg name="colors"/>
<arg value="psn"/>

<!-- Check up to 60 files simultaneously. -->
<arg name="parallel" value="60" />

<!-- Only check the PHP files are checked. -->
<arg name="extensions" value="php"/>

<!-- Check all files in the src directory and the directories below it. -->
<file>.</file>

<exclude-pattern>vendor/*</exclude-pattern>

<!-- inherit rules from: -->
<rule ref="PSR2" />
</ruleset>

0 comments on commit dee41bc

Please sign in to comment.