This commit is contained in:
yansongda 2019-09-08 22:55:47 +08:00
parent ef4bed656d
commit d51cafb038
5 changed files with 38 additions and 3 deletions

2
.gitattributes vendored
View File

@ -6,3 +6,5 @@ phpunit.php export-ignore
phpunit.xml export-ignore
phpunit.xml.dist export-ignore
.php_cs export-ignore
.scrutinizer.yml export-ignore
.styleci.yml

View File

@ -8,11 +8,9 @@ return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@Symfony' => true,
'blank_line_after_opening_tag' => true,
'class_attributes_separation' => true,
'no_unused_imports' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'line_ending' => true,
'single_quote' => true,
'array_syntax' => ['syntax' => 'short'],

6
.scrutinizer.yml Normal file
View File

@ -0,0 +1,6 @@
filter:
excluded_paths:
- tests/*
checks:
php: true

8
.styleci.yml Normal file
View File

@ -0,0 +1,8 @@
preset: symfony
enabled:
- recommended
finder:
exclude:
- "tests"

View File

@ -0,0 +1,21 @@
<?php
namespace Yansongda\Pay\Service;
use Pimple\Container;
use Yansongda\Pay\Contract\ServiceInterface;
class HttpClientService implements ServiceInterface
{
/**
* Registers services on the given container.
*
* This method should only be used to configure services and parameters.
* It should not get services.
*
* @param Container $pimple A container instance
*/
public function register(Container $pimple)
{
}
}