Skip to content

Commit 739fd90

Browse files
committed
Change support email. Updated travis config. Add table of contents
1 parent 5b39e0f commit 739fd90

File tree

4 files changed

+45
-17
lines changed

4 files changed

+45
-17
lines changed

.php_cs

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

33
$finder = Symfony\Component\Finder\Finder::create()
4-
->notPath('bootstrap/cache')
5-
->notPath('storage')
6-
->notPath('vendor')
4+
->notPath('bootstrap/cache')
5+
->notPath('storage')
6+
->notPath('vendor')
77
->in(__DIR__)
88
->name('*.php')
99
->ignoreDotFiles(true)
@@ -23,7 +23,7 @@ $fixers = [
2323
'list_commas',
2424
'multiline_array_trailing_comma',
2525
'namespace_no_leading_whitespace',
26-
'newline_after_open_tag',
26+
'newline_after_open_tag',
2727
'no_blank_lines_after_class_opening',
2828
'no_empty_lines_after_phpdocs',
2929
'object_operator',

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
language: php
22

3+
sudo: false
4+
35
php:
46
- 5.6
57
- 7.0
68
- 7.1
79

10+
env:
11+
global:
12+
- setup=basic
13+
814
before_script:
9-
- travis_retry composer self-update
10-
- travis_retry composer install --no-interaction
15+
- composer config discard-changes true
16+
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction; fi
17+
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
18+
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
1119

12-
script: vendor/bin/phpunit --verbose
20+
script:
21+
- ./vendor/bin/phpunit -c phpunit.xml.dist --verbose

README.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111

1212
Eloquent boolean & timestamp flagged attributes behavior. Enhance eloquent models with commonly used state flags like `Active`, `Published`, `Approved` and others in a minutes!
1313

14+
## Contents
15+
16+
- [Features](#features)
17+
- [Available flags list](#available-flags-list)
18+
- [How it works](#how-it-works)
19+
- [Installation](#installation)
20+
- [Usage](#usage)
21+
- [Change log](#change-log)
22+
- [Contributing](#contributing)
23+
- [Testing](#testing)
24+
- [Security](#security)
25+
- [Credits](#credits)
26+
- [Alternatives](#alternatives)
27+
- [License](#license)
28+
- [About CyberCog](#about-cybercog)
29+
1430
## Features
1531

1632
- Designed to work with Laravel Eloquent models
@@ -672,6 +688,14 @@ Post::where('id', 4)->close();
672688
Post::where('id', 4)->open();
673689
```
674690

691+
## Change log
692+
693+
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
694+
695+
## Contributing
696+
697+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
698+
675699
## Testing
676700

677701
Run the tests with:
@@ -680,10 +704,6 @@ Run the tests with:
680704
vendor/bin/phpunit
681705
```
682706

683-
## Contributing
684-
685-
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
686-
687707
## Security
688708

689709
If you discover any security related issues, please email a.komarev@cybercog.su instead of using the issue tracker.
@@ -693,10 +713,6 @@ If you discover any security related issues, please email a.komarev@cybercog.su
693713
- [Anton Komarev](https://github.com/a-komarev)
694714
- [All Contributors](../../contributors)
695715

696-
## Change log
697-
698-
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
699-
700716
## Alternatives
701717

702718
*Not found.*

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
],
4646
"homepage": "https://github.com/cybercog/laravel-eloquent-flag",
4747
"support": {
48-
"email": "a.komarev@cybercog.su",
48+
"email": "oss@cybercog.su",
4949
"issues": "https://github.com/cybercog/laravel-eloquent-flag/issues",
5050
"wiki": "https://github.com/cybercog/laravel-eloquent-flag/wiki",
5151
"source": "https://github.com/cybercog/laravel-eloquent-flag",
@@ -57,7 +57,7 @@
5757
},
5858
"require-dev": {
5959
"friendsofphp/php-cs-fixer": "^1.11",
60-
"mockery/mockery": "^0.9.5",
60+
"mockery/mockery": "^0.9.8",
6161
"orchestra/database": "~3.4.0",
6262
"orchestra/testbench": "~3.4.0",
6363
"phpunit/phpunit": "^5.7"
@@ -72,6 +72,9 @@
7272
"Cog\\Flag\\Tests\\": "tests/"
7373
}
7474
},
75+
"scripts": {
76+
"test": "vendor/bin/phpunit"
77+
},
7578
"config": {
7679
"sort-packages": true
7780
},

0 commit comments

Comments
 (0)