Skip to content

Commit 9613013

Browse files
committed
Remove Red slip support
1 parent 416e492 commit 9613013

18 files changed

+10
-1557
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ php:
55
- 5.5
66
- 5.6
77
- 7.0
8-
- hhvm
98

109
matrix:
1110
fast_finish: true
1211
allow_failures:
1312
- php: 7.0
14-
- php: hhvm
1513

1614
before_script:
1715
- composer install

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6969
### Added
7070
- A common class for payment slip (not their data containers) test cases
7171
- Packagist Download & Latest badges to the README
72-
- Testing with HHVM for Travis CI
7372
- A .gitattributes
7473
- Implemented a fluent interface
7574

composer.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/RedPaymentSlipData_Basic_Usage.php

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

examples/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<p>Learn how to use the SwissPaymentSlip classes wit the following examples:</p>
2222
<ul>
2323
<li><a href="OrangePaymentSlipData_Basic_Usage.php">01-01 Basic Usage of OrangePaymentSlipData</a></li>
24-
<li><a href="RedPaymentSlipData_Basic_Usage.php">01-01 Basic Usage of RedPaymentSlipData</a></li>
2524
<li><a href="OrangePaymentSlipData_Advanced_Usage.php">01-03 Advanced Usage of OrangePaymentSlipData</a></li>
2625
<li><a href="OrangePaymentSlip_Basic_Usage.php">02-01 Basic Usage of OrangePaymentSlip</a></li>
2726
</ul>

phpunit-html-coverage.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<file>./tests/Exception/DisabledDataExceptionTest.php</file>
99
<file>./tests/PaymentSlipDataTest.php</file>
1010
<file>./tests/OrangePaymentSlipDataTest.php</file>
11-
<file>./tests/RedPaymentSlipDataTest.php</file>
1211
<file>./tests/PaymentSlipTest.php</file>
1312
<file>./tests/OrangePaymentSlipTest.php</file>
1413
<file>./tests/RedPaymentSlipTest.php</file>

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<file>./tests/Exception/DisabledDataExceptionTest.php</file>
99
<file>./tests/PaymentSlipDataTest.php</file>
1010
<file>./tests/OrangePaymentSlipDataTest.php</file>
11-
<file>./tests/RedPaymentSlipDataTest.php</file>
1211
<file>./tests/PaymentSlipTest.php</file>
1312
<file>./tests/OrangePaymentSlipTest.php</file>
1413
<file>./tests/RedPaymentSlipTest.php</file>

src/PaymentSlip.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ public function getAllElements()
14751475
*
14761476
* @param mixed $parameter The given parameter to validate.
14771477
* @param string $varName The name of the variable.
1478-
* @return true If the parameter is either an integer or a float.
1478+
* @return true If the parameter is either an integer or a float.
14791479
* @throws InvalidArgumentException If the parameter is neither an integer nor a float.
14801480
*/
14811481
protected function isIntOrFloat($parameter, $varName)
@@ -1488,6 +1488,8 @@ protected function isIntOrFloat($parameter, $varName)
14881488
)
14891489
);
14901490
}
1491+
1492+
return true;
14911493
}
14921494

14931495
/**

src/PaymentSlipData.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ public function getAmount()
661661
* @param string $payerLine2 The second line of the payer, e.g. "Main Street 11".
662662
* @param string $payerLine3 The third line of the payer, e.g. "4052 Basel".
663663
* @param string $payerLine4 The fourth line of the payer, if needed.
664+
* @param string $payerLine5 The fifth line of the payer, if needed.
664665
* @return $this The current instance for a fluent interface.
665666
*/
666667
public function setPayerData($payerLine1, $payerLine2, $payerLine3 = '', $payerLine4 = '', $payerLine5 = '')

0 commit comments

Comments
 (0)