PluginProbe
PayPlug for WooCommerce (Official) / 3.1.0
PayPlug for WooCommerce (Official) v3.1.0
3.1.0 3.0.0 2.18.0 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 1.0.22 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.10.0 1.10.1 1.2.1 1.2.10 1.2.11 1.2.2 1.2.3 1.2.4 1.2.5 All 102 releases
← All changes | vendor/payplug/payplug-php/lib/Payplug/Resource/Refund.php +4 -4 1.0.21 → 3.1.0 View file →
@@ -30,9 +30,9 @@
30 30 *
31 31 * @return null|Refund the refund object
32 32 * @throws Payplug\Exception\ConfigurationNotSetException
33 33 */
34 - public static function create($payment, array $data = null, Payplug\Payplug $payplug = null)
34 + public static function create($payment, $data = null, $payplug = null)
35 35 {
36 36 if ($payplug === null) {
37 37 $payplug = Payplug\Payplug::getDefaultConfiguration();
38 38 }
@@ -59,9 +59,9 @@
59 59 * @return null|Payplug\Resource\APIResource|Refund the refund object
60 60 *
61 61 * @throws Payplug\Exception\ConfigurationNotSetException
62 62 */
63 - public static function retrieve($payment, $refundId, Payplug\Payplug $payplug = null)
63 + public static function retrieve($payment, $refundId, $payplug = null)
64 64 {
65 65 if ($payplug === null) {
66 66 $payplug = Payplug\Payplug::getDefaultConfiguration();
67 67 }
@@ -89,9 +89,9 @@
89 89 *
90 90 * @throws Payplug\Exception\ConfigurationNotSetException
91 91 * @throws Payplug\Exception\UnexpectedAPIResponseException
92 92 */
93 - public static function listRefunds($payment, Payplug\Payplug $payplug = null)
93 + public static function listRefunds($payment, $payplug = null)
94 94 {
95 95 if ($payplug === null) {
96 96 $payplug = Payplug\Payplug::getDefaultConfiguration();
97 97 }
@@ -128,9 +128,9 @@
128 128 * @return Payplug\Resource\APIResource The consistent API resource.
129 129 *
130 130 * @throws Payplug\Exception\UndefinedAttributeException when the local resource is invalid.
131 131 */
132 - function getConsistentResource(Payplug\Payplug $payplug = null)
132 + function getConsistentResource($payplug = null)
133 133 {
134 134 if (!array_key_exists('id', $this->_attributes)) {
135 135 throw new Payplug\Exception\UndefinedAttributeException('The id of the refund is not set.');
136 136 }