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
Pull Request — master (#12)
by
unknown
02:46
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 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     }
161 161
 
162 162
     /**
163
-     * @param $countryCode
163
+     * @param string $countryCode
164 164
      *
165 165
      * @throws InvalidArgumentException
166 166
      */
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
     }
173 173
 
174 174
     /**
175
-     * @param $checkDigits
175
+     * @param string $checkDigits
176 176
      *
177 177
      * @throws InvalidArgumentException
178 178
      */
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
     }
204 204
 
205 205
     /**
206
-     * @param $countryCode
206
+     * @param string $countryCode
207 207
      *
208 208
      * @throws InvalidArgumentException
209 209
      */
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
     }
221 221
 
222 222
     /**
223
-     * @param $countryCode
224
-     * @param $checkDigits
223
+     * @param string $countryCode
224
+     * @param string $checkDigits
225 225
      * @param Bban\BbanInterface $bban
226 226
      *
227 227
      * @return string
Please login to merge, or discard this 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, Bban\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.
src/Bban/AndorraBban.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $bban = preg_replace('/[^0-9a-zA-Z]+/', '', $bban);
57 57
 
58
-        if (! preg_match('/^[\d]{20}$/', $bban)) {
58
+        if (!preg_match('/^[\d]{20}$/', $bban)) {
59 59
             throw new InvalidArgumentException('Bban should be 20 numbers');
60 60
         }
61 61
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function __toString()
105 105
     {
106
-        return $this->bankCode . $this->branchCode . $this->accountNumber;
106
+        return $this->bankCode.$this->branchCode.$this->accountNumber;
107 107
     }
108 108
 
109 109
     /**
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
      */
114 114
     private static function validateBankCodeFormat($bankCode)
115 115
     {
116
-        if (! preg_match('/^[\d]{4}$/', $bankCode)) {
116
+        if (!preg_match('/^[\d]{4}$/', $bankCode)) {
117 117
             throw new InvalidArgumentException('Bank code should be 4 numbers');
118 118
         }
119 119
     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      */
126 126
     private static function validateBranchCodeFormat($branchCode)
127 127
     {
128
-        if (! preg_match('/^[\d]{4}$/', $branchCode)) {
128
+        if (!preg_match('/^[\d]{4}$/', $branchCode)) {
129 129
             throw new InvalidArgumentException('Branch code should be 4 numbers');
130 130
         }
131 131
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      */
138 138
     private static function validateAccountNumberFormat($accountNumber)
139 139
     {
140
-        if (! preg_match('/^[\d]{12}$/', $accountNumber)) {
140
+        if (!preg_match('/^[\d]{12}$/', $accountNumber)) {
141 141
             throw new InvalidArgumentException('Account number should be 10 numbers');
142 142
         }
143 143
     }
Please login to merge, or discard this patch.