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

Commit 3f8602e

Browse files
committed
wip
1 parent 57bc43d commit 3f8602e

File tree

8 files changed

+34
-12
lines changed

8 files changed

+34
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor
22
composer.lock
3+
.php_cs.cache

.php_cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
$finder = Symfony\Component\Finder\Finder::create()
4+
->notPath('vendor')
5+
->in(__DIR__)
6+
->name('*.php')
7+
->notName('*.blade.php')
8+
->ignoreDotFiles(true)
9+
->ignoreVCS(true);
10+
11+
return PhpCsFixer\Config::create()
12+
->setRules([
13+
'@PSR2' => true,
14+
'array_syntax' => ['syntax' => 'short'],
15+
'blank_line_after_namespace' => true,
16+
'blank_line_after_opening_tag' => true,
17+
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
18+
'no_unused_imports' => true,
19+
'not_operator_with_successor_space' => true,
20+
])
21+
->setFinder($finder);

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 7.1
54
- 7.2
65
- 7.3
6+
- 7.4
77

88
env:
99
matrix:

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.1",
15-
"illuminate/database": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0",
16-
"illuminate/support": "~5.5.0|~5.6.0|~5.7.0|~5.8.0|^6.0"
14+
"php": "^7.2.5",
15+
"illuminate/database": "^6.0|^7.0",
16+
"illuminate/support": "^6.0|^7.0"
1717
},
1818
"require-dev": {
1919
"mockery/mockery": "^1.2",
20-
"orchestra/testbench": "~3.5.0|~3.6.0|~3.7.0|~3.8.0|^4.0",
21-
"phpunit/phpunit": "^6.1|^7.0"
20+
"orchestra/testbench": "^4.0|^5.0",
21+
"phpunit/phpunit": "^7.0|^8.0|^9.0"
2222
},
2323
"autoload": {
2424
"psr-4": {

src/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace Signifly\Configurable;
44

5-
use Countable;
65
use ArrayAccess;
6+
use Countable;
7+
use Illuminate\Database\Eloquent\Model;
78
use Illuminate\Support\Arr;
89
use Illuminate\Support\Collection;
9-
use Illuminate\Database\Eloquent\Model;
1010

1111
class Config implements ArrayAccess, Countable
1212
{

src/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Signifly\Configurable;
44

5-
use Illuminate\Support\Arr;
65
use Illuminate\Database\Eloquent\Model;
6+
use Illuminate\Support\Arr;
77

88
trait Configurable
99
{

tests/ConfigurableTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
namespace Signifly\Configurable\Test;
44

5-
use Signifly\Configurable\Config;
5+
use Illuminate\Foundation\Testing\RefreshDatabase;
66
use Illuminate\Support\Collection;
7+
use Signifly\Configurable\Config;
78
use Signifly\Configurable\Test\Models\User;
8-
use Illuminate\Foundation\Testing\RefreshDatabase;
99

1010
class ConfigurableTest extends TestCase
1111
{

tests/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Signifly\Configurable\Test\Models;
44

5-
use Signifly\Configurable\Config;
65
use Illuminate\Database\Eloquent\Model;
6+
use Signifly\Configurable\Config;
77
use Signifly\Configurable\Configurable;
88

99
class User extends Model

0 commit comments

Comments
 (0)