Skip to content

Commit

Permalink
Merge pull request #1 from vkhramtsov/bugfix-remove-parent-call-when-…
Browse files Browse the repository at this point in the history
…class-does-not-have-parent

Bugfix remove parent call when class does not have parent
  • Loading branch information
drbyte authored Jul 8, 2020
2 parents cba5827 + d26e010 commit bc39249
Show file tree
Hide file tree
Showing 176 changed files with 249 additions and 1,082 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ env:
- TEST_SUITE=samples

php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4

before_install:
# execute all of the commands which need to be executed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "proprietary",
"homepage": "http://developer.authorize.net",
"require": {
"php": ">=5.6",
"php": ">=7.2",
"ext-curl": "*",
"ext-json": "*"
},
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/ANetApiRequestType.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/ANetApiResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/ARBSubscriptionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/ArbTransactionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/ArrayOfSettingType.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
8 changes: 2 additions & 6 deletions lib/net/authorize/api/contract/v1/AuDeleteType.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/AuDetailsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/AuResponseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
8 changes: 2 additions & 6 deletions lib/net/authorize/api/contract/v1/AuUpdateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

// Json Set Code
Expand Down
9 changes: 2 additions & 7 deletions lib/net/authorize/api/contract/v1/AuthenticateTestRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/BankAccountMaskedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/BankAccountType.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/BatchDetailsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/BatchStatisticType.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/CardArtType.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
7 changes: 1 addition & 6 deletions lib/net/authorize/api/contract/v1/CcAuthenticationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}
return $values;
}

// Json Set Code
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,8 @@ function ($val){
}
}
}
if (get_parent_class() == ""){
return $values;
}
else{
return array_merge(parent::jsonSerialize(), $values);
}

return array_merge(parent::jsonSerialize(), $values);
}

}

Loading

0 comments on commit bc39249

Please sign in to comment.