Skip to content

Commit 9d3cd39

Browse files
committed
templates updated to produce empty diff by php-cs-fixer
1 parent c402e15 commit 9d3cd39

18 files changed

+2312
-9
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore
22

3-
comoser.lock
3+
composer.phar
44
/vendor/
55

66
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
@@ -13,4 +13,3 @@ comoser.lock
1313

1414
# PHPUnit cache
1515
.phpunit.result.cache
16-
/.env

.openapi-generator/FILES

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,27 @@ lib/Model/TransactionList.php
5858
lib/Model/TransactionListTransactionsInner.php
5959
lib/ObjectSerializer.php
6060
phpunit.xml.dist
61+
test/Api/DefaultApiTest.php
62+
test/Model/AccountBalanceTest.php
63+
test/Model/AccountCurrencyExchangeTest.php
64+
test/Model/AccountRelatedAgentsTest.php
65+
test/Model/AccountTest.php
66+
test/Model/GetAccounts400ResponseTest.php
67+
test/Model/GetAccounts403ResponseTest.php
68+
test/Model/GetAccounts404ResponseTest.php
69+
test/Model/GetAccounts405ResponseTest.php
70+
test/Model/GetAccounts412ResponseTest.php
71+
test/Model/GetAccounts429ResponseTest.php
72+
test/Model/GetAccounts500ResponseTest.php
73+
test/Model/GetAccounts503ResponseTest.php
74+
test/Model/GetStatements400ResponseTest.php
75+
test/Model/GetStatements403ResponseTest.php
76+
test/Model/GetStatements404ResponseTest.php
77+
test/Model/GetTransactions400ResponseTest.php
78+
test/Model/GetTransactions401ResponseTest.php
79+
test/Model/GetTransactions404ResponseTest.php
80+
test/Model/StatementListAccountStatementsInnerPeriodTest.php
81+
test/Model/StatementListAccountStatementsInnerTest.php
82+
test/Model/StatementListTest.php
83+
test/Model/TransactionListTest.php
84+
test/Model/TransactionListTransactionsInnerTest.php
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
/**
4+
* @generated
5+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/HEAD/doc/config.rst
6+
*/
7+
$finder = PhpCsFixer\Finder::create()
8+
->in(__DIR__)
9+
->exclude('vendor')
10+
->exclude('test')
11+
->exclude('tests')
12+
;
13+
14+
$config = new PhpCsFixer\Config();
15+
return $config->setRules([
16+
'@PSR12' => true,
17+
'phpdoc_order' => true,
18+
'array_syntax' => [ 'syntax' => 'short' ],
19+
'strict_comparison' => true,
20+
'strict_param' => true,
21+
'no_trailing_whitespace' => false,
22+
'no_trailing_whitespace_in_comment' => false,
23+
'single_space_around_construct' => true,
24+
'single_blank_line_at_eof' => false,
25+
'blank_line_after_namespace' => false,
26+
'no_leading_import_slash' => false,
27+
])
28+
->setFinder($finder)
29+
;
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?php
2+
3+
/**
4+
* ApiException
5+
* PHP version 7.4+
6+
*
7+
* @category Class
8+
* @package {{invokerPackage}}
9+
* @author OpenAPI Generator team
10+
* @link https://openapi-generator.tech
11+
*/
12+
13+
{{>partial_header}}
14+
/**
15+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16+
* https://openapi-generator.tech
17+
* Do not edit the class manually.
18+
*/
19+
20+
namespace {{invokerPackage}};
21+
22+
use \Exception;
23+
24+
/**
25+
* ApiException Class Doc Comment
26+
*
27+
* @category Class
28+
* @package {{invokerPackage}}
29+
* @author OpenAPI Generator team
30+
* @link https://openapi-generator.tech
31+
*/
32+
class ApiException extends Exception
33+
{
34+
/**
35+
* The HTTP body of the server response either as Json or string.
36+
*
37+
* @var \stdClass|string|null
38+
*/
39+
protected $responseBody;
40+
41+
/**
42+
* The HTTP header of the server response.
43+
*
44+
* @var string[][]|null
45+
*/
46+
protected $responseHeaders;
47+
48+
/**
49+
* The deserialized response object
50+
*
51+
* @var \stdClass|string|null
52+
*/
53+
protected $responseObject;
54+
55+
/**
56+
* Constructor
57+
*
58+
* @param string $message Error message
59+
* @param int $code HTTP status code
60+
* @param string[][]|null $responseHeaders HTTP response header
61+
* @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string
62+
*/
63+
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)
64+
{
65+
parent::__construct($message, $code);
66+
$this->responseHeaders = $responseHeaders;
67+
$this->responseBody = $responseBody;
68+
}
69+
70+
/**
71+
* Gets the HTTP response header
72+
*
73+
* @return string[][]|null HTTP response header
74+
*/
75+
public function getResponseHeaders()
76+
{
77+
return $this->responseHeaders;
78+
}
79+
80+
/**
81+
* Gets the HTTP body of the server response either as Json or string
82+
*
83+
* @return \stdClass|string|null HTTP body of the server response either as \stdClass or string
84+
*/
85+
public function getResponseBody()
86+
{
87+
return $this->responseBody;
88+
}
89+
90+
/**
91+
* Sets the deserialized response object (during deserialization)
92+
*
93+
* @param mixed $obj Deserialized response object
94+
*
95+
* @return void
96+
*/
97+
public function setResponseObject($obj)
98+
{
99+
$this->responseObject = $obj;
100+
}
101+
102+
/**
103+
* Gets the deserialized response object (during deserialization)
104+
*
105+
* @return mixed the deserialized response object
106+
*/
107+
public function getResponseObject()
108+
{
109+
return $this->responseObject;
110+
}
111+
}

0 commit comments

Comments
 (0)