Skip to content

Commit 3317e81

Browse files
authored
Merge pull request #4 from polidog/api-update
Api update
2 parents 6a7fa37 + 75787ca commit 3317e81

11 files changed

Lines changed: 837 additions & 2138 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build
22
demo.php
33
vendor
4-
.idea
4+
.idea
5+
.php_cs.cache

.php_cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
$finder = PhpCsFixer\Finder::create()
3+
->in(__DIR__)
4+
->in(__DIR__."/tests")
5+
;
6+
return \PhpCsFixer\Config::create()
7+
->setRiskyAllowed(true)
8+
->setRules([
9+
'@Symfony' => true,
10+
'array_syntax' => ['syntax' => 'short'],
11+
])
12+
->setFinder($finder)
13+
->setLineEnding("\n")
14+
;

.travis.yml

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

33
php:
4-
- 5.5
54
- 5.6
5+
- 7.0
6+
- 7.1
67
before_script:
78
- composer install --prefer-source
89

@@ -18,4 +19,4 @@ script:
1819
after_script:
1920
- php vendor/bin/coveralls -v
2021
- wget https://scrutinizer-ci.com/ocular.phar
21-
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
22+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

ApiMethods.php

Lines changed: 0 additions & 139 deletions
This file was deleted.

composer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@
99
}
1010
],
1111
"require": {
12-
"php": ">=5.5.0",
12+
"php": ">=5.6",
1313
"guzzlehttp/guzzle": "~6.0"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "4.6.7",
1717
"phpunit/phpcov": "*",
18-
"phake/phake": "2.0.*@dev",
18+
"phake/phake": "2.*",
1919
"satooshi/php-coveralls": "dev-master"
2020
},
2121
"autoload": {
2222
"psr-4": {
23-
"Polidog\\Esa\\": ""
23+
"Polidog\\Esa\\": "src"
2424
}
25-
}
25+
},
26+
"scripts": {
27+
"test": "./vendor/bin/phpunit"
28+
}
2629
}

0 commit comments

Comments
 (0)