GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Setup Failed
Push — master ( 57cfe7...8d0466 )
by Gabriel
17:49 queued 02:40
created
legacy/Payments/Models/Purchase/Traits/IsPurchasableModelTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
      */
98 98
     public function getConfirmStatusTitle()
99 99
     {
100
-        return $this->getManager()->getMessage('confirm.'.$this->getStatus()->getName());
100
+        return $this->getManager()->getMessage('confirm.' . $this->getStatus()->getName());
101 101
     }
102 102
 
103 103
     /**
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Manager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     protected function initItems()
49 49
     {
50 50
         $this->items = [];
51
-        $iterator = new DirectoryIterator(dirname(__FILE__).'/Providers');
51
+        $iterator = new DirectoryIterator(dirname(__FILE__) . '/Providers');
52 52
         foreach ($iterator as $fileinfo) {
53 53
             if ($fileinfo->isDir()) {
54 54
                 $name = $fileinfo->getFilename();
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function newItem($name = false)
68 68
     {
69
-        $className = 'ByTIC\Common\Payments\Gateways\Providers\\'.$name.'\Gateway';
69
+        $className = 'ByTIC\Common\Payments\Gateways\Providers\\' . $name . '\Gateway';
70 70
         /** @var Gateway $object */
71 71
         $object = new $className();
72 72
         $object->setManager($this);
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function getLabel($type, $params = [], $language = false)
146 146
     {
147
-        return translator()->translate('payment-gateways.labels.'.$type, $params, $language);
147
+        return translator()->translate('payment-gateways.labels.' . $type, $params, $language);
148 148
     }
149 149
 
150 150
     /**
@@ -155,6 +155,6 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function getMessage($name, $params = [], $language = false)
157 157
     {
158
-        return translator()->translate('payment-gateways.messages.'.$name, $params, $language);
158
+        return translator()->translate('payment-gateways.messages.' . $name, $params, $language);
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Mobilpay/Message/PurchaseRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $address->county = '';
109 109
         $address->city = $card->getBillingCity();
110 110
         $address->zipCode = '';
111
-        $address->address = $card->getBillingAddress1().' '.$card->getBillingAddress2();
111
+        $address->address = $card->getBillingAddress1() . ' ' . $card->getBillingAddress2();
112 112
         $address->email = $card->getEmail();
113 113
         $address->mobilePhone = $card->getBillingPhone();
114 114
         $address->bank = '';
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $address->county = '';
134 134
         $address->city = $card->getShippingCity();
135 135
         $address->zipCode = '';
136
-        $address->address = $card->getShippingAddress1().' '.$card->getShippingAddress2();
136
+        $address->address = $card->getShippingAddress1() . ' ' . $card->getShippingAddress2();
137 137
         $address->email = $card->getEmail();
138 138
         $address->mobilePhone = $card->getShippingPhone();
139 139
         $address->bank = '';
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Mobilpay/Message/Helper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         if ($string === null || strlen($string) == 0) {
19 19
             $return = '-'; // valorile nule sunt inlocuite cu -
20 20
         } else {
21
-            $return = strlen($string).$string;
21
+            $return = strlen($string) . $string;
22 22
         }
23 23
 
24 24
         return $return;
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $ipad = str_repeat(chr(0x36), $blocksize);
44 44
         $opad = str_repeat(chr(0x5c), $blocksize);
45 45
 
46
-        $hmac = pack('H*', $hashfunc(($key ^ $opad).pack('H*', $hashfunc(($key ^ $ipad).$data))));
46
+        $hmac = pack('H*', $hashfunc(($key ^ $opad) . pack('H*', $hashfunc(($key ^ $ipad) . $data))));
47 47
 
48 48
         return bin2hex($hmac);
49 49
     }
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Mobilpay/Api/Request/Notify.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
         $attr->nodeValue = date('YmdHis');
213 213
         $xmlNotifyElem->appendChild($attr);
214 214
 
215
-        $this->_crc = md5(rand().time());
215
+        $this->_crc = md5(rand() . time());
216 216
         $attr = $xmlDoc->createAttribute('crc');
217 217
         $attr->nodeValue = $this->_crc;
218 218
         $xmlNotifyElem->appendChild($attr);
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Mobilpay/Gateway.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
     {
88 88
         $path = $this->getParameter($type);
89 89
         if (strpos($path, DIRECTORY_SEPARATOR) === false) {
90
-            $path = $this->getFileDirectoryPath().$path;
90
+            $path = $this->getFileDirectoryPath() . $path;
91 91
         }
92 92
 
93 93
         return $this->setParameter($type, $path);
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Epaybg/Form.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
     public function initElements()
14 14
     {
15 15
         $this->addRadioGroup('sandbox', 'sandbox', true);
16
-        $element = $this->getForm()->getElement($this->getGateway()->getName().'[sandbox]');
16
+        $element = $this->getForm()->getElement($this->getGateway()->getName() . '[sandbox]');
17 17
         $element->getRenderer()->setSeparator('');
18 18
         $element->addOption('yes', 'Yes');
19 19
         $element->addOption('no', 'No');
20 20
 
21 21
         $this->addSelect('paymentpage', 'Payment Page', true);
22
-        $element = $this->getForm()->getElement($this->getGateway()->getName().'[paymentpage]');
22
+        $element = $this->getForm()->getElement($this->getGateway()->getName() . '[paymentpage]');
23 23
         $element->addOption('paylogin', 'Pay login');
24 24
         $element->addOption('credit_paydirect', 'Pay direct');
25 25
 
Please login to merge, or discard this patch.
Payments/Gateways/Providers/Payu/Message/ServerCompletePurchaseResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function getContent()
38 38
     {
39
-        return '<EPAYMENT>'.$this->data['dateReturn'].'|'.$this->data['hashReturn'].'</EPAYMENT>';
39
+        return '<EPAYMENT>' . $this->data['dateReturn'] . '|' . $this->data['hashReturn'] . '</EPAYMENT>';
40 40
     }
41 41
 
42 42
     /**  @noinspection PhpMissingParentCallCommonInspection
Please login to merge, or discard this patch.
legacy/Payments/Gateways/Providers/Payu/Api/LiveUpdate.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
         if ($isArray) {
1339 1339
             for ($i = 0; $i < count($fieldValue); $i++) {
1340 1340
                 $fieldValue[$i] = htmlspecialchars($fieldValue[$i]);
1341
-                $retval .= "<input name=\"".$fieldName."[]\" type=\"hidden\" value=\"".$fieldValue[$i]."\" id=\"$fieldName\">\n";
1341
+                $retval .= "<input name=\"" . $fieldName . "[]\" type=\"hidden\" value=\"" . $fieldValue[$i] . "\" id=\"$fieldName\">\n";
1342 1342
                 //$retval .= "<input name=\"".$fieldName."[]\" type=\"text\" value=\"".$fieldValue[$i]."\" id=\"$fieldName\">\n";
1343 1343
             }
1344 1344
         } else {
@@ -1373,7 +1373,7 @@  discard block
 block discarded – undo
1373 1373
         $k_ipad = $key ^ $ipad;
1374 1374
         $k_opad = $key ^ $opad;
1375 1375
 
1376
-        return md5($k_opad.pack("H*", md5($k_ipad.$data)));
1376
+        return md5($k_opad . pack("H*", md5($k_ipad . $data)));
1377 1377
     }
1378 1378
 
1379 1379
     /**
@@ -1450,7 +1450,7 @@  discard block
 block discarded – undo
1450 1450
         $retval = "";
1451 1451
         //$string = htmlspecialchars($string);
1452 1452
         $size = strlen($string);
1453
-        $retval = $size.$string;
1453
+        $retval = $size . $string;
1454 1454
 
1455 1455
         return $retval;
1456 1456
     }
Please login to merge, or discard this patch.