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 Failed
Push — master ( 568bf9...e6a5de )
by Gabriel
03:08
created
src/Payments/Gateways/Providers/AbstractGateway/Form.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @param $form
57
+     * @param PaymentMethodFormTrait $form
58 58
      * @return $this
59 59
      */
60 60
     public function setForm($form)
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
 
153 153
     /**
154 154
      * @param $arguments
155
-     * @return mixed
155
+     * @return string
156 156
      */
157 157
     protected function getElementNameFromMagicMethodArguments($arguments)
158 158
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $this->getForm()->addDisplayGroup($this->elements, $this->getGateway()->getLabel());
35 35
             $this->getForm()->getDisplayGroup($this->getGateway()->getLabel())
36 36
                 ->setAttrib('class', 'payment_gateway_fieldset')
37
-                ->setAttrib('id', 'payment_gateway_'.$this->getGateway()->getName());
37
+                ->setAttrib('id', 'payment_gateway_' . $this->getGateway()->getName());
38 38
         }
39 39
     }
40 40
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      */
157 157
     protected function getElementNameFromMagicMethodArguments($arguments)
158 158
     {
159
-        $name = ''.$this->getGateway()->getName().'['.$arguments[0].']';
159
+        $name = '' . $this->getGateway()->getName() . '[' . $arguments[0] . ']';
160 160
         $this->elements[$arguments[0]] = $name;
161 161
 
162 162
         return $name;
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/AbstractGateway/Gateway.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * @param array $parameters
64
-     * @return CompletePurchaseResponse
64
+     * @return \Omnipay\Common\Message\AbstractRequest|null
65 65
      */
66 66
     public function completePurchase(array $parameters = [])
67 67
     {
@@ -69,9 +69,9 @@  discard block
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-     * @param $class
72
+     * @param string $class
73 73
      * @param array $parameters
74
-     * @return AbstractRequest|null
74
+     * @return \Omnipay\Common\Message\AbstractRequest|null
75 75
      */
76 76
     protected function createNamepacedRequest($class, array $parameters)
77 77
     {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     /**
88 88
      * @param array $parameters
89
-     * @return ServerCompletePurchaseResponse
89
+     * @return \Omnipay\Common\Message\AbstractRequest|null
90 90
      */
91 91
     public function serverCompletePurchase(array $parameters = [])
92 92
     {
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @param null $name
109
+     * @param string $name
110 110
      */
111 111
     public function setName($name)
112 112
     {
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
     /**
244 244
      * @param array $parameters
245
-     * @return PurchaseResponse
245
+     * @return \Omnipay\Common\Message\AbstractRequest|null
246 246
      */
247 247
     public function purchase(array $parameters = [])
248 248
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function createNamepacedRequest($class, array $parameters)
77 77
     {
78
-        $class = $this->getNamespacePath().'\Message\\'.$class;
78
+        $class = $this->getNamespacePath() . '\Message\\' . $class;
79 79
 
80 80
         if (class_exists($class)) {
81 81
             return $this->createRequest($class, $parameters); // TODO: Change the autogenerated stub
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     public function newOptionsForm()
223 223
     {
224
-        $class = $this->getNamespacePath().'\Form';
224
+        $class = $this->getNamespacePath() . '\Form';
225 225
         $form = new $class();
226 226
         /** @var Form $form */
227 227
         $form->setGateway($this);
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/AbstractGateway/Message/AbstractRequest.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
     /**
23 23
      * @param  string $value
24
-     * @return mixed
24
+     * @return \Omnipay\Common\Message\AbstractRequest
25 25
      */
26 26
     public function setModelManager($value)
27 27
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     }
150 150
 
151 151
     /**
152
-     * @param $key
152
+     * @param string $key
153 153
      * @param $value
154 154
      * @return $this
155 155
      */
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     }
163 163
 
164 164
     /**
165
-     * @param $key
165
+     * @param string $key
166 166
      * @return mixed
167 167
      */
168 168
     public function getDataItem($key)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
     {
130 130
         $class = str_replace('Request', 'Response', $this->getClassFirstName());
131 131
 
132
-        return '\\'.$this->getNamespacePath().'\\'.$class;
132
+        return '\\' . $this->getNamespacePath() . '\\' . $class;
133 133
     }
134 134
 
135 135
     /**
Please login to merge, or discard this patch.
Gateways/Providers/AbstractGateway/Message/Traits/HasModelRequest.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     /**
17 17
      * Returns ID if it has it
18
-     * @return int
18
+     * @return boolean
19 19
      */
20 20
     public function getModelIdFromRequest()
21 21
     {
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-     * @param $field
136
-     * @param $value
135
+     * @param string $field
136
+     * @param integer $value
137 137
      * @return IsPurchasableModelTrait
138 138
      */
139 139
     protected function findModelByField($field, $value)
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/Epaybg/Epaybg.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -79,6 +79,11 @@
 block discarded – undo
79 79
         return $return;
80 80
     }
81 81
 
82
+    /**
83
+     * @param string $algo
84
+     * @param string $data
85
+     * @param string $passwd
86
+     */
82 87
     public function _hmac($algo, $data, $passwd = null)
83 88
     {
84 89
         $passwd = $passwd ? $passwd : $this->getSecretKey();
Please login to merge, or discard this patch.
Providers/Euplatesc/Message/Traits/CompletePurchaseRequestTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     }
74 74
 
75 75
     /**
76
-     * @param $data
76
+     * @param string $data
77 77
      * @return string
78 78
      */
79 79
     protected function generateHmac($data)
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/Mobilpay/Api/Request/AbstractRequest.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
     }
174 174
 
175 175
     /**
176
-     * @param $data
176
+     * @param string $data
177 177
      * @return Card|Sms|null
178 178
      */
179 179
     public static function factory($data)
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     }
237 237
 
238 238
     /**
239
-     * @param $reqVersion
239
+     * @param integer $reqVersion
240 240
      * @param $reqData
241 241
      */
242 242
     protected function setRequestInfo($reqVersion, $reqData)
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     }
260 260
 
261 261
     /**
262
-     * @return null
262
+     * @return stdClass
263 263
      */
264 264
     public function getRequestInfo()
265 265
     {
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     abstract protected function prepare();
310 310
 
311 311
     /**
312
-     * @return mixed
312
+     * @return null|string
313 313
      */
314 314
     public function getEnvKey()
315 315
     {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
     }
318 318
 
319 319
     /**
320
-     * @return mixed
320
+     * @return null|string
321 321
      */
322 322
     public function getEncData()
323 323
     {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     /**
328
-     * @return mixed
328
+     * @return string
329 329
      */
330 330
     public function getRequestIdentifier()
331 331
     {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     }
370 370
 
371 371
     /**
372
-     * @return array
372
+     * @return string[]
373 373
      */
374 374
     public function __sleep()
375 375
     {
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/Mobilpay/Api/Request/Card.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @return mixed
60
+     * @return Card
61 61
      * @throws Exception
62 62
      */
63 63
     protected function prepare()
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/Mobilpay/Api/Request/Notify.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@
 block discarded – undo
337 337
     }
338 338
 
339 339
     /**
340
-     * @return null
340
+     * @return string
341 341
      */
342 342
     public function getCrc()
343 343
     {
Please login to merge, or discard this 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.