Skip to content

Commit ef8ba94

Browse files
committed
Housekeeping
1 parent ba778d7 commit ef8ba94

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

.gitattributes

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* text=auto
2+
3+
# Ignore following folder/file.
4+
/.github export-ignore
5+
/tests export-ignore
6+
/.coveralls.yml export-ignore
7+
/.gitattributes export-ignore
8+
/.gitignore export-ignore
9+
/.php_cs export-ignore
10+
/.scrutinizer.yml export-ignore
11+
/.travis.yml export-ignore
12+
/phpunit.xml export-ignore
13+
/sync.sh export-ignore
14+
/CHANGELOG-*.md export-ignore
15+
/CODE_OF_CONDUCT.md export-ignore
16+
/CONTRIBUTING.md export-ignore
17+
/LICENSE export-ignore
18+
/README.md export-ignore

.php_cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__.'/src')
5+
->in(__DIR__.'/tests');
6+
7+
return PhpCsFixer\Config::create()
8+
->setRiskyAllowed(false)
9+
->setRules([
10+
'@Symfony' => true,
11+
'array_syntax' => ['syntax' => 'short'],
12+
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
13+
'no_extra_blank_lines' => false,
14+
'no_empty_comment' => false,
15+
'no_extra_consecutive_blank_lines' => false,
16+
'no_unneeded_control_parentheses' => false,
17+
'not_operator_with_successor_space' => true,
18+
'no_superfluous_phpdoc_tags' => false,
19+
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
20+
'phpdoc_align' => false,
21+
'phpdoc_no_empty_return' => false,
22+
'phpdoc_order' => true,
23+
'pre_increment' => false,
24+
'self_accessor' => false,
25+
'single_trait_insert_per_statement' => false,
26+
'yoda_style' => false,
27+
])
28+
->setFinder($finder);

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (C) 2013 Mior Muhammad Zaki <http://git.io/crynobone>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

phpunit.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
verbose="true"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
processIsolation="false"
11+
stopOnFailure="false">
12+
<testsuites>
13+
<testsuite name="Unit">
14+
<directory suffix="Test.php">tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist>
19+
<directory suffix=".php">src/</directory>
20+
</whitelist>
21+
</filter>
22+
<php>
23+
<env name="DB_CONNECTION" value="csvSeederTest" />
24+
<env name="DB_DATABASE" value=":memory:" />
25+
<env name="CACHE_DRIVER" value="array"/>
26+
<env name="SESSION_DRIVER" value="array"/>
27+
<env name="QUEUE_DRIVER" value="sync"/>
28+
<env name="MAIL_DRIVER" value="array"/>
29+
</php>
30+
</phpunit>

0 commit comments

Comments
 (0)