Completed
Pull Request — master (#114)
by Florian
03:49
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.
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.
Model/Api/Invoice.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
     {
222 222
         if (fmod(floatval($dItemAmount), 1.0) > 0) { // input does not represent an integer
223 223
             $sErrorMessage = "Unable to use floating point values for item amounts! Parameter was: ";
224
-            throw new \InvalidArgumentException($sErrorMessage . strval($dItemAmount), 1);
224
+            throw new \InvalidArgumentException($sErrorMessage.strval($dItemAmount), 1);
225 225
         } else { // return the integer value
226 226
             return intval($dItemAmount);
227 227
         }
Please login to merge, or discard this patch.
Model/Api/Payolution/PrivacyDeclaration.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
      * Get fallback template
170 170
      *
171 171
      * @param  string $sCompany
172
-     * @return mixed
172
+     * @return string
173 173
      */
174 174
     protected function getFallbackText($sCompany)
175 175
     {
Please login to merge, or discard this patch.
Model/Methods/Payolution/PayolutionBase.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,6 @@
 block discarded – undo
170 170
      * Method to trigger the Payone genericpayment request pre-check
171 171
      *
172 172
      * @param  float       $dAmount
173
-     * @param  string|bool $sBirthday
174 173
      * @return array
175 174
      * @throws LocalizedException
176 175
      */
Please login to merge, or discard this patch.
Service/V1/InstallmentPlan.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $sErrorMessage = false;
137 137
         if (isset($aResponsePreCheck['status']) && $aResponsePreCheck['status'] == 'ERROR') {
138
-            $sErrorMessage = __($aResponsePreCheck['errorcode'] . ' - ' . $aResponsePreCheck['customermessage']);
138
+            $sErrorMessage = __($aResponsePreCheck['errorcode'].' - '.$aResponsePreCheck['customermessage']);
139 139
         } elseif (isset($aResponseCalculation['status']) && $aResponseCalculation['status'] == 'ERROR') {
140
-            $sErrorMessage = __($aResponseCalculation['errorcode'] . ' - ' . $aResponseCalculation['customermessage']);
140
+            $sErrorMessage = __($aResponseCalculation['errorcode'].' - '.$aResponseCalculation['customermessage']);
141 141
         } elseif (!$aResponsePreCheck || (isset($aResponsePreCheck['status']) && $aResponsePreCheck['status'] == 'OK' && !$aResponseCalculation)) {
142 142
             $sErrorMessage = __('An unknown error occurred');
143 143
         }
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     public function getPayDataArray($aResponse)
190 190
     {
191 191
         $aPayData = array();
192
-        foreach($aResponse as $sKey => $sValue) {
192
+        foreach ($aResponse as $sKey => $sValue) {
193 193
             $sCorrectedKey = str_ireplace('add_paydata[', '', $sKey);
194 194
             $sCorrectedKey = rtrim($sCorrectedKey, ']');
195 195
             $sCorrectedKey = strtolower($sCorrectedKey);
@@ -214,18 +214,18 @@  discard block
 block discarded – undo
214 214
         $aPayData = $this->getPayDataArray($aResponse);
215 215
         foreach ($aPayData as $sKey => $sValue) {
216 216
             $aSplit = explode('_', $sKey);
217
-            for($i = count($aSplit); $i > 0; $i--) {
218
-                if($i == count($aSplit)) {
219
-                    $aTmp = array($aSplit[$i-1] => $sValue);
217
+            for ($i = count($aSplit); $i > 0; $i--) {
218
+                if ($i == count($aSplit)) {
219
+                    $aTmp = array($aSplit[$i - 1] => $sValue);
220 220
                 } else {
221
-                    $aTmp = array($aSplit[$i-1] => $aTmp);
221
+                    $aTmp = array($aSplit[$i - 1] => $aTmp);
222 222
                 }
223 223
             }
224 224
 
225 225
             $aInstallmentData = array_replace_recursive($aInstallmentData, $aTmp);
226 226
         }
227 227
 
228
-        if(isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) {
228
+        if (isset($aInstallmentData['paymentdetails']) && count($aInstallmentData['paymentdetails']) > 0) {
229 229
             return $aInstallmentData['paymentdetails'];
230 230
         }
231 231
 
Please login to merge, or discard this patch.
Observer/Transactionstatus/Paid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 
89 89
         // order is not guaranteed to exist if using transaction status forwarding
90 90
         // advance payment should not create an invoice
91
-        if (null === $oOrder || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT){
91
+        if (null === $oOrder || $oOrder->getPayment()->getMethodInstance()->getCode() == PayoneConfig::METHOD_ADVANCE_PAYMENT) {
92 92
             return;
93 93
         }
94 94
 
Please login to merge, or discard this patch.
Model/Test/PayoneObjectManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     /**
34 34
      * Class constructor
35 35
      *
36
-     * @param \PHPUnit_Framework_TestCase $testObject
36
+     * @param \Payone\Core\Test\Unit\BaseTestCase $testObject
37 37
      */
38 38
     public function __construct($testObject)
39 39
     {
Please login to merge, or discard this patch.