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.
Completed
Push — master ( 0c6535...5b824e )
by Xaf
30s
created
src/Bban/SpainBban.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     {
71 71
         $bban = preg_replace('/[^0-9a-zA-Z]+/', '', $bban);
72 72
 
73
-        if (! preg_match('/^[\d]{20}$/', $bban)) {
73
+        if (!preg_match('/^[\d]{20}$/', $bban)) {
74 74
             throw new InvalidArgumentException('Bban should be 20 numbers');
75 75
         }
76 76
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function __toString()
121 121
     {
122
-        return $this->bankCode . $this->branchCode . $this->checkDigits . $this->accountNumber;
122
+        return $this->bankCode.$this->branchCode.$this->checkDigits.$this->accountNumber;
123 123
     }
124 124
 
125 125
     /**
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      */
130 130
     private static function validateBankCodeFormat($bankCode)
131 131
     {
132
-        if (! preg_match('/^[\d]{4}$/', $bankCode)) {
132
+        if (!preg_match('/^[\d]{4}$/', $bankCode)) {
133 133
             throw new InvalidArgumentException('Bank code should be 4 numbers');
134 134
         }
135 135
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     private static function validateBranchCodeFormat($branchCode)
143 143
     {
144
-        if (! preg_match('/^[\d]{4}$/', $branchCode)) {
144
+        if (!preg_match('/^[\d]{4}$/', $branchCode)) {
145 145
             throw new InvalidArgumentException('Branch code should be 4 numbers');
146 146
         }
147 147
     }
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     private static function validateCheckDigitsFormat($checkDigits)
155 155
     {
156
-        if (! preg_match('/^[\d]{2}$/', $checkDigits)) {
156
+        if (!preg_match('/^[\d]{2}$/', $checkDigits)) {
157 157
             throw new InvalidArgumentException('Check digits should be 4 numbers');
158 158
         }
159 159
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     private static function validateAccountNumberFormat($accountNumber)
167 167
     {
168
-        if (! preg_match('/^[\d]{10}$/', $accountNumber)) {
168
+        if (!preg_match('/^[\d]{10}$/', $accountNumber)) {
169 169
             throw new InvalidArgumentException('Account number should be 10 numbers');
170 170
         }
171 171
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     ) {
187 187
         $dc = '';
188 188
         $validations = [6, 3, 7, 9, 10, 5, 8, 4, 2, 1];
189
-        foreach ([$bankCode . $branchCode, $accountNumber] as $string) {
189
+        foreach ([$bankCode.$branchCode, $accountNumber] as $string) {
190 190
             $suma = 0;
191 191
             for ($i = 0, $len = strlen($string); $i < $len; $i++) {
192 192
                 $suma += $validations[$i] * $string[$len - $i - 1];
Please login to merge, or discard this patch.
src/Iban.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $iban = preg_replace('/[^0-9a-zA-Z]+/', '', $iban);
63 63
 
64
-        if (! preg_match('/^[0-9a-zA-Z]{16,34}$/', $iban)) {
64
+        if (!preg_match('/^[0-9a-zA-Z]{16,34}$/', $iban)) {
65 65
             throw new InvalidArgumentException('Iban should be between 16 and 34 characters');
66 66
         }
67 67
 
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $bbanString = $this->bban;
158 158
 
159
-        return $this->countryCode . $this->checkDigits . $bbanString;
159
+        return $this->countryCode.$this->checkDigits.$bbanString;
160 160
     }
161 161
 
162 162
     /**
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     private static function validateCountryCodeFormat($countryCode)
168 168
     {
169
-        if (! preg_match('/^[A-Z]{2}$/', $countryCode)) {
169
+        if (!preg_match('/^[A-Z]{2}$/', $countryCode)) {
170 170
             throw new InvalidArgumentException('The country code should be 2 letters');
171 171
         }
172 172
     }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     private static function validateCheckDigitsFormat($checkDigits)
180 180
     {
181
-        if (! preg_match('/^[\d]{2}$/', $checkDigits)) {
181
+        if (!preg_match('/^[\d]{2}$/', $checkDigits)) {
182 182
             throw new InvalidArgumentException('The IBAN checksum must be 2 numeric characters');
183 183
         }
184 184
     }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
      */
229 229
     private static function validateChecksum($countryCode, $checkDigits, BbanInterface $bban)
230 230
     {
231
-        $rearranged = (string) $bban . $countryCode . $checkDigits;
231
+        $rearranged = (string) $bban.$countryCode.$checkDigits;
232 232
         $digitsList = str_split($rearranged);
233 233
 
234 234
         $digitsList = array_map(['self', 'digitToInt'], $digitsList);
Please login to merge, or discard this patch.