Completed
Push — master ( 6c4da9...442164 )
by Florian
14s queued 11s
created
Test/Unit/Service/V1/AddresscheckTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -27,13 +27,11 @@
 block discarded – undo
27 27
 namespace Payone\Core\Test\Unit\Service\V1\Data;
28 28
 
29 29
 use Payone\Core\Service\V1\Addresscheck as ClassToTest;
30
-use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31 30
 use Payone\Core\Model\Risk\Addresscheck;
32 31
 use Magento\Quote\Api\Data\AddressInterface;
33 32
 use Payone\Core\Service\V1\Data\AddresscheckResponse;
34 33
 use Payone\Core\Service\V1\Data\AddresscheckResponseFactory;
35 34
 use Payone\Core\Test\Unit\BaseTestCase;
36
-use Payone\Core\Test\Unit\PayoneObjectManager;
37 35
 
38 36
 class AddresscheckTest extends BaseTestCase
39 37
 {
Please login to merge, or discard this patch.
Observer/Transactionstatus/Appointed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         }
124 124
 
125 125
         // preauthorization-orders and advance payment should not create an invoice
126
-        if ($oOrder->getPayoneAuthmode() != 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT){
126
+        if ($oOrder->getPayoneAuthmode() != 'authorization' || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT) {
127 127
             return;
128 128
         }
129 129
 
Please login to merge, or discard this patch.
Helper/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
     /**
119 119
      * Checks if the given value is json encoded
120 120
      *
121
-     * @param  $sValue
121
+     * @param  string $sValue
122 122
      * @return bool
123 123
      */
124 124
     protected function isJson($sValue)
Please login to merge, or discard this patch.
Model/Plugins/MethodList.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@
 block discarded – undo
180 180
     /**
181 181
      * Remove banned paymenttypes
182 182
      *
183
-     * @param  array $aPaymentMethods
183
+     * @param  MethodInterface[] $aPaymentMethods
184 184
      * @param  Quote $oQuote
185 185
      * @return array
186 186
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     protected function removeBannedPaymentMethods($aPaymentMethods, Quote $oQuote)
188 188
     {
189 189
         $aBannedMethos = $this->getBannedPaymentMethods($oQuote);
190
-        for($i = 0; $i < count($aPaymentMethods); $i++) {
190
+        for ($i = 0; $i < count($aPaymentMethods); $i++) {
191 191
             $sCode = $aPaymentMethods[$i]->getCode();
192 192
             if (array_key_exists($sCode, $aBannedMethos) !== false) {
193 193
                 $iBannedUntil = strtotime($aBannedMethos[$sCode]);
Please login to merge, or discard this patch.