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
Pull Request — master (#4)
by Ayesh
13:01
created
examples/parser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 $id_number = '862348594v';
11 11
 
12 12
 $parser = new Parser($id_number);
13
-$parser->getBirthday();// Returns a \DateTime object with the date parsed.
13
+$parser->getBirthday(); // Returns a \DateTime object with the date parsed.
14 14
 echo $parser->getBirthday()->format('Y-m-d'); // prints "1986-08-22"
15 15
 echo $parser->getGender(); // Prints "M". M for male, F for female.
16 16
 echo $parser->getSerialNumber(); // Prints "8594"
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 $id_number = '19935158154';
22 22
 
23 23
 $parser = new Parser($id_number);
24
-$parser->getBirthday();// Returns a \DateTime object with the date parsed.
24
+$parser->getBirthday(); // Returns a \DateTime object with the date parsed.
25 25
 echo $parser->getBirthday()->format('Y-m-d'); // prints "1993-01-15"
26 26
 echo $parser->getGender(); // Prints "F". M for male, F for female.
27 27
 echo $parser->getSerialNumber(); // Prints "8154"
Please login to merge, or discard this patch.
examples/validation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 try {
13 13
   $parser = new Parser($id_number);
14
-}
15
-catch (InvalidArgumentException $exception) {
14
+} catch (InvalidArgumentException $exception) {
16 15
   echo $exception->getMessage(); // "Birthday indicator is invalid."
17 16
 }
Please login to merge, or discard this patch.
src/Parser.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace SLWDC\NICParser;
5 5
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -85,13 +85,13 @@  discard block
 block discarded – undo
85 85
     if ($birth_days_since > 500) {
86 86
       $birth_days_since -= 500;
87 87
       $this->data_components['gender'] = 'F';
88
-    }
89
-    else {
88
+    } else {
90 89
       $this->data_components['gender'] = 'M';
91 90
     }
92 91
 
93
-    if (date('L', mktime(0, 0, 0, 1, 1, $year)) === "1")
94
-      --$birth_days_since;
92
+    if (date('L', mktime(0, 0, 0, 1, 1, $year)) === "1") {
93
+          --$birth_days_since;
94
+    }
95 95
     } else {
96 96
       $birth_days_since -= 2;
97 97
     }
@@ -107,8 +107,7 @@  discard block
 block discarded – undo
107 107
     $strlen = strlen((string) $id_number);
108 108
     if ($strlen === 12) {
109 109
       $this->data_components['format'] = static::ID_FORMAT_2016;
110
-    }
111
-    else {
110
+    } else {
112 111
       $this->data_components['format'] = static::ID_FORMAT_PRE_2016;
113 112
     }
114 113
   }
Please login to merge, or discard this patch.
src/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace SLWDC\NICParser;
5 5
 
Please login to merge, or discard this patch.