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 ( 8bca22...568bf9 )
by Gabriel
13:02 queued 05:02
created
src/Security/Auth/Auth.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
         return $this;
42 42
     }
43 43
 
44
+    /**
45
+     * @param boolean $value
46
+     */
44 47
     public function authenticated($value = null)
45 48
     {
46 49
         if (!is_null($value)) {
Please login to merge, or discard this patch.
src/Controllers/Traits/Async/Gallery.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
              * @param    ImgPicker $instance
49 49
              * @return string|array
50 50
              */
51
-            'load' => function ($instance) {
51
+            'load' => function($instance) {
52 52
                 //return 'avatar.jpg';
53 53
             },
54 54
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
              * @param    ImgPicker $instance
60 60
              * @return boolean
61 61
              */
62
-            'delete' => function ($filename, $instance) {
62
+            'delete' => function($filename, $instance) {
63 63
                 return true;
64 64
             },
65 65
 
@@ -70,8 +70,8 @@  discard block
 block discarded – undo
70 70
              * @param    ImgPicker $instance
71 71
              * @return void
72 72
              */
73
-            'upload_start' => function ($image, $instance) {
74
-                $image->name = '~toCropFP'.$item->ID.'-'.rand(1000, 4000).'.'.$image->type;
73
+            'upload_start' => function($image, $instance) {
74
+                $image->name = '~toCropFP' . $item->ID . '-' . rand(1000, 4000) . '.' . $image->type;
75 75
             },
76 76
 
77 77
             /**
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
              * @param    ImgPicker $instance
82 82
              * @return void
83 83
              */
84
-            'upload_complete' => function ($image, $instance) {
84
+            'upload_complete' => function($image, $instance) {
85 85
             },
86 86
 
87 87
             /**
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
              * @param    ImgPicker $instance
92 92
              * @return void
93 93
              */
94
-            'crop_start' => function ($image, $instance) {
95
-                $image->name = sha1(microtime()).'.'.$image->type;
94
+            'crop_start' => function($image, $instance) {
95
+                $image->name = sha1(microtime()) . '.' . $image->type;
96 96
             },
97 97
 
98 98
             /**
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
              * @param    ImgPicker $instance
103 103
              * @return void
104 104
              */
105
-            'crop_complete' => function ($image, $instance) {
105
+            'crop_complete' => function($image, $instance) {
106 106
                 foreach (['full', 'default'] as $version) {
107 107
                     $filename = $instance->getVersionFilename($image->name, $version);
108 108
                     $filepath = $instance->getUploadPath($filename, $version);
109
-                    rename($filepath, str_replace('-'.$version.'.', '.', $filepath));
109
+                    rename($filepath, str_replace('-' . $version . '.', '.', $filepath));
110 110
                 }
111 111
             },
112 112
         ];
@@ -129,8 +129,8 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         if (intval($_SERVER['CONTENT_LENGTH']) > 0 && count($_POST) === 0) {
132
-            $maxSize = round(($this->getRequest()->server->getMaxFileSize() / 1048576), 2).'MB';
133
-            $this->response['error'] = 'File to big. Max size ['.$maxSize.']';
132
+            $maxSize = round(($this->getRequest()->server->getMaxFileSize() / 1048576), 2) . 'MB';
133
+            $this->response['error'] = 'File to big. Max size [' . $maxSize . ']';
134 134
 
135 135
             return $this->_output();
136 136
         }
Please login to merge, or discard this patch.
src/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.
src/Payments/Gateways/Providers/Payu/Api/LiveUpdate.php 2 patches
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.
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -798,7 +798,7 @@  discard block
 block discarded – undo
798 798
      *
799 799
      * @access        public
800 800
      * @param        $pricesCurrency string[3]
801
-     * @return        true
801
+     * @return        boolean
802 802
      */
803 803
     public function setCurrency($pricesCurrency = 'RON')
804 804
     {
@@ -839,7 +839,7 @@  discard block
 block discarded – undo
839 839
      *
840 840
      * @access        public
841 841
      * @param        $pricesCurrency string[3]
842
-     * @return        true
842
+     * @return        boolean
843 843
      */
844 844
     public function setPricesCurrency($pricesCurrency = 'RON')
845 845
     {
@@ -1325,7 +1325,7 @@  discard block
 block discarded – undo
1325 1325
      * createHiddenField
1326 1326
      *
1327 1327
      * @access        private
1328
-     * @param        $fieldName    string    name/id of the hidden field in html code
1328
+     * @param        string $fieldName    string    name/id of the hidden field in html code
1329 1329
      * @param        $fieldValue    string    field/fields value/values
1330 1330
      * @param        $isArray    bool    specifies if it should generate an array or not
1331 1331
      * @return        string    output html code
@@ -1356,6 +1356,7 @@  discard block
 block discarded – undo
1356 1356
      *
1357 1357
      * @param        $array string secret key
1358 1358
      * @param        @data string the source string that will be converted into hmac hash
1359
+     * @param string $data
1359 1360
      * @return        string hmac hash
1360 1361
      */
1361 1362
     public function hmac($data)
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/AbstractGateway/Message/Traits/HasView.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     protected function initView()
61 61
     {
62 62
         $view = $this->newView();
63
-        $view->setBasePath(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'Views'.DIRECTORY_SEPARATOR);
63
+        $view->setBasePath(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR);
64 64
         $this->setView($view);
65 65
     }
66 66
 
Please login to merge, or discard this patch.
Providers/AbstractGateway/Message/RedirectResponse/RedirectTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return HttpResponse::create($output);
57 57
         }
58 58
 
59
-        throw new RuntimeException('Invalid redirect method "'.$this->getRedirectMethod().'".');
59
+        throw new RuntimeException('Invalid redirect method "' . $this->getRedirectMethod() . '".');
60 60
     }
61 61
 
62 62
     /**
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
         foreach ($this->getRedirectData() as $key => $value) {
110 110
             if (is_array($value)) {
111 111
                 foreach ($value as $iKey => $iValue) {
112
-                    $key = $key.'['.$iKey.']';
113
-                    $hiddenFields .= $this->generateHiddenInput($key, $iValue)."\n";
112
+                    $key = $key . '[' . $iKey . ']';
113
+                    $hiddenFields .= $this->generateHiddenInput($key, $iValue) . "\n";
114 114
                 }
115 115
             } else {
116
-                $hiddenFields .= $this->generateHiddenInput($key, $value)."\n";
116
+                $hiddenFields .= $this->generateHiddenInput($key, $value) . "\n";
117 117
             }
118 118
         }
119 119
 
Please login to merge, or discard this patch.
src/Payments/Gateways/Providers/Euplatesc/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.
src/Payments/Gateways/Providers/Euplatesc/Message/PurchaseRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             'order_desc' => $this->getOrderName(),
66 66
             'merch_id' => $this->getMid(),
67 67
             'timestamp' => gmdate("YmdHis"),
68
-            'nonce' => md5(microtime().mt_rand()),
68
+            'nonce' => md5(microtime() . mt_rand()),
69 69
         ];
70 70
     }
71 71
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             'country' => $card->getCountry(),
91 91
             'company' => $card->getBillingCompany(),
92 92
             'city' => $card->getCity(),
93
-            'add' => $card->getAddress1().' '.$card->getAddress2(),
93
+            'add' => $card->getAddress1() . ' ' . $card->getAddress2(),
94 94
             'email' => $card->getEmail(),
95 95
             'phone' => $card->getPhone(),
96 96
             'fax' => $card->getFax(),
Please login to merge, or discard this patch.