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 ( a61686...de9c1a )
by Xaf
26s
created
src/Bban/SpainBban.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      */
69 69
     public static function fromString($bban)
70 70
     {
71
-        if (! preg_match('/^[\d]{20}$/', $bban)) {
71
+        if (!preg_match('/^[\d]{20}$/', $bban)) {
72 72
             throw new InvalidArgumentException('Bban should be 20 numbers');
73 73
         }
74 74
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      */
118 118
     public function __toString()
119 119
     {
120
-        return $this->bankCode . $this->branchCode . $this->checkDigits . $this->accountNumber;
120
+        return $this->bankCode.$this->branchCode.$this->checkDigits.$this->accountNumber;
121 121
     }
122 122
 
123 123
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     private static function validateBankCodeFormat($bankCode)
129 129
     {
130
-        if (! preg_match('/^[\d]{4}$/', $bankCode)) {
130
+        if (!preg_match('/^[\d]{4}$/', $bankCode)) {
131 131
             throw new InvalidArgumentException('Bank code should be 4 numbers');
132 132
         }
133 133
     }
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     private static function validateBranchCodeFormat($branchCode)
141 141
     {
142
-        if (! preg_match('/^[\d]{4}$/', $branchCode)) {
142
+        if (!preg_match('/^[\d]{4}$/', $branchCode)) {
143 143
             throw new InvalidArgumentException('Branch code should be 4 numbers');
144 144
         }
145 145
     }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     private static function validateCheckDigitsFormat($checkDigits)
153 153
     {
154
-        if (! preg_match('/^[\d]{2}$/', $checkDigits)) {
154
+        if (!preg_match('/^[\d]{2}$/', $checkDigits)) {
155 155
             throw new InvalidArgumentException('Check digits should be 4 numbers');
156 156
         }
157 157
     }
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private static function validateAccountNumberFormat($accountNumber)
165 165
     {
166
-        if (! preg_match('/^[\d]{10}$/', $accountNumber)) {
166
+        if (!preg_match('/^[\d]{10}$/', $accountNumber)) {
167 167
             throw new InvalidArgumentException('Account number should be 10 numbers');
168 168
         }
169 169
     }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     ) {
185 185
         $dc = '';
186 186
         $validations = [6, 3, 7, 9, 10, 5, 8, 4, 2, 1];
187
-        foreach ([$bankCode . $branchCode, $accountNumber] as $string) {
187
+        foreach ([$bankCode.$branchCode, $accountNumber] as $string) {
188 188
             $suma = 0;
189 189
             for ($i = 0, $len = strlen($string); $i < $len; $i++) {
190 190
                 $suma += $validations[$i] * $string[$len - $i - 1];
Please login to merge, or discard this patch.
src/Iban.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     }
159 159
 
160 160
     /**
161
-     * @param $countryCode
161
+     * @param string $countryCode
162 162
      *
163 163
      * @throws InvalidArgumentException
164 164
      */
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
     }
171 171
 
172 172
     /**
173
-     * @param $checkDigits
173
+     * @param string $checkDigits
174 174
      *
175 175
      * @throws InvalidArgumentException
176 176
      */
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     }
202 202
 
203 203
     /**
204
-     * @param $countryCode
204
+     * @param string $countryCode
205 205
      *
206 206
      * @throws InvalidArgumentException
207 207
      */
@@ -218,8 +218,8 @@  discard block
 block discarded – undo
218 218
     }
219 219
 
220 220
     /**
221
-     * @param $countryCode
222
-     * @param $checkDigits
221
+     * @param string $countryCode
222
+     * @param string $checkDigits
223 223
      * @param BbanInterface $bban
224 224
      *
225 225
      * @return string
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public static function fromString($iban)
61 61
     {
62
-        if (! preg_match('/^[0-9A-Z]{16,34}$/', $iban)) {
62
+        if (!preg_match('/^[0-9A-Z]{16,34}$/', $iban)) {
63 63
             throw new InvalidArgumentException('Iban should be between 16 and 34 characters');
64 64
         }
65 65
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $bbanString = $this->bban;
156 156
 
157
-        return $this->countryCode . $this->checkDigits . $bbanString;
157
+        return $this->countryCode.$this->checkDigits.$bbanString;
158 158
     }
159 159
 
160 160
     /**
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     private static function validateCountryCodeFormat($countryCode)
166 166
     {
167
-        if (! preg_match('/^[A-Z]{2}$/', $countryCode)) {
167
+        if (!preg_match('/^[A-Z]{2}$/', $countryCode)) {
168 168
             throw new InvalidArgumentException('The country code should be 2 letters');
169 169
         }
170 170
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      */
177 177
     private static function validateCheckDigitsFormat($checkDigits)
178 178
     {
179
-        if (! preg_match('/^[\d]{2}$/', $checkDigits)) {
179
+        if (!preg_match('/^[\d]{2}$/', $checkDigits)) {
180 180
             throw new InvalidArgumentException('The IBAN checksum must be 2 numeric characters');
181 181
         }
182 182
     }
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
      */
227 227
     private static function validateChecksum($countryCode, $checkDigits, BbanInterface $bban)
228 228
     {
229
-        $rearranged = (string) $bban . $countryCode . $checkDigits;
229
+        $rearranged = (string) $bban.$countryCode.$checkDigits;
230 230
         $digitsList = str_split($rearranged);
231 231
 
232 232
         $digitsList = array_map(['self', 'digitToInt'], $digitsList);
Please login to merge, or discard this patch.