Completed
Push — master ( 50fff4...e9ec60 )
by Florian
14s
created
Helper/Toolkit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      *
125 125
      * @param  string   $sText
126 126
      * @param  string   $aSubstitutionArray
127
-     * @param  int|bool $iMaxLength
127
+     * @param  integer $iMaxLength
128 128
      * @return string
129 129
      */
130 130
     public function handleSubstituteReplacement($sText, $aSubstitutionArray, $iMaxLength = false)
Please login to merge, or discard this patch.
Test/Unit/Controller/Adminhtml/Config/Export/IndexTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,7 @@
 block discarded – undo
29 29
 use Payone\Core\Controller\Adminhtml\Config\Export\Index as ClassToTest;
30 30
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31 31
 use Magento\Backend\App\Action\Context;
32
-use Magento\Framework\View\Result\PageFactory;
33
-use Magento\Framework\View\Result\Page;
34 32
 use Magento\Framework\View\Page\Config;
35
-use Magento\Framework\View\Page\Title;
36 33
 use Magento\Framework\AuthorizationInterface;
37 34
 use Payone\Core\Model\Config\Export;
38 35
 use Magento\Framework\Controller\Result\RawFactory;
Please login to merge, or discard this patch.
Test/Unit/Controller/Onepage/DebitTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,8 @@
 block discarded – undo
29 29
 use Magento\Quote\Model\Quote;
30 30
 use Payone\Core\Controller\Onepage\Debit as ClassToTest;
31 31
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
32
-use Magento\Sales\Model\Order as OrderCore;
33 32
 use Magento\Checkout\Model\Session;
34 33
 use Magento\Framework\App\Action\Context;
35
-use Magento\Customer\Model\Session as CustomerSession;
36 34
 use Payone\Core\Model\Api\Request\Managemandate;
37 35
 use Magento\Framework\View\Result\PageFactory;
38 36
 use Magento\Checkout\Model\Type\Onepage;
Please login to merge, or discard this patch.
Test/Unit/Controller/Onepage/RedirectTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,8 @@
 block discarded – undo
28 28
 
29 29
 use Payone\Core\Controller\Onepage\Redirect as ClassToTest;
30 30
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31
-use Magento\Sales\Model\Order as OrderCore;
32 31
 use Magento\Checkout\Model\Session;
33 32
 use Magento\Framework\App\Action\Context;
34
-use Magento\Customer\Model\Session as CustomerSession;
35 33
 use Magento\Store\App\Response\Redirect as RedirectResponse;
36 34
 use Magento\Framework\App\Console\Response;
37 35
 use Magento\Framework\UrlInterface;
Please login to merge, or discard this patch.
Test/Unit/Controller/Onepage/ReturnedTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,8 @@
 block discarded – undo
28 28
 
29 29
 use Payone\Core\Controller\Onepage\Returned as ClassToTest;
30 30
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31
-use Magento\Sales\Model\Order as OrderCore;
32 31
 use Magento\Checkout\Model\Session;
33 32
 use Magento\Framework\App\Action\Context;
34
-use Magento\Customer\Model\Session as CustomerSession;
35 33
 use Magento\Store\App\Response\Redirect as RedirectResponse;
36 34
 use Magento\Framework\App\Console\Response;
37 35
 use Magento\Framework\App\ResponseInterface;
Please login to merge, or discard this patch.
Test/Unit/Controller/Paypal/ExpressTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 
29 29
 use Payone\Core\Controller\Paypal\Express as ClassToTest;
30 30
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31
-use Magento\Sales\Model\Order as OrderCore;
32 31
 use Magento\Framework\Controller\Result\Redirect;
33 32
 use Magento\Checkout\Model\Session;
34 33
 use Magento\Framework\Controller\ResultFactory;
Please login to merge, or discard this patch.
Test/Unit/Controller/Paypal/ReturnedTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 
29 29
 use Payone\Core\Controller\Paypal\Returned as ClassToTest;
30 30
 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
31
-use Magento\Sales\Model\Order as OrderCore;
32 31
 use Magento\Framework\Controller\Result\Redirect;
33 32
 use Magento\Checkout\Model\Session;
34 33
 use Payone\Core\Model\Paypal\ReturnHandler;
Please login to merge, or discard this patch.
Test/Unit/Observer/CheckoutSubmitBeforeTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     }
238 238
 
239 239
     /**
240
-     * @return \PHPUnit_Framework_MockObject_MockObject
240
+     * @return Observer
241 241
      */
242 242
     private function getExecuteObserver()
243 243
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@
 block discarded – undo
38 38
 use Magento\Payment\Model\InfoInterface;
39 39
 use Magento\Framework\Exception\LocalizedException;
40 40
 use Magento\Framework\Event\Observer;
41
-use Magento\Store\Model\ScopeInterface;
42 41
 use Payone\Core\Test\Unit\BaseTestCase;
43 42
 use Payone\Core\Model\Test\PayoneObjectManager;
44 43
 
Please login to merge, or discard this patch.
Controller/Adminhtml/Config/Export/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
                 $sXml = $this->configExport->generateConfigExportXml();
88 88
                 if ($sXml !== false) {
89 89
                     $oResultRaw->setHeader("Content-Type", "text/xml; charset=\"utf8\"", true);
90
-                    $oResultRaw->setHeader("Content-Disposition", "attachment; filename=\"payone_config_export" . date('Y-m-d H-i-s') . "_" . md5($sXml) . ".xml\"", true);
90
+                    $oResultRaw->setHeader("Content-Disposition", "attachment; filename=\"payone_config_export".date('Y-m-d H-i-s')."_".md5($sXml).".xml\"", true);
91 91
                     $oResultRaw->setContents($sXml);
92 92
                 }
93 93
             } catch (\Exception $e) {
Please login to merge, or discard this patch.