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 ( a4ad96...a25367 )
by François
02:17
created
src/fkooman/VPN/Server/OpenVpn/ServerSocketInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,10 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * Open the socket.
23 23
      *
24
-     * @param int $timeOut the amount of time to wait before 
25
-     *                     giving up on trying to connect
26 24
      *
27 25
      * @throws Exception\ServerSocketException if the socket cannot be opened 
28 26
      *                                         within timeout
27
+     * @return void
29 28
      */
30 29
     public function open();
31 30
 
@@ -45,6 +44,7 @@  discard block
 block discarded – undo
45 44
      * Close the socket connection.
46 45
      *
47 46
      * @throws Exception\ServerSocketException if socket is not open
47
+     * @return void
48 48
      */
49 49
     public function close();
50 50
 }
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Log/LogModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $service->get(
35 35
             '/log/:showDate',
36
-            function (Request $request, TokenInfo $tokenInfo, $showDate) {
36
+            function(Request $request, TokenInfo $tokenInfo, $showDate) {
37 37
                 self::requireScope($tokenInfo, 'log_get');
38 38
 
39 39
                 InputValidation::date($showDate);
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/OpenVpn/OpenVpnModule.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $service->get(
46 46
             '/openvpn/status',
47
-            function (Request $request, TokenInfo $tokenInfo) {
47
+            function(Request $request, TokenInfo $tokenInfo) {
48 48
                 self::requireScope($tokenInfo, 'openvpn_info');
49 49
 
50 50
                 $response = new JsonResponse();
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $service->get(
58 58
             '/openvpn/load-stats',
59
-            function (Request $request, TokenInfo $tokenInfo) {
59
+            function(Request $request, TokenInfo $tokenInfo) {
60 60
                 self::requireScope($tokenInfo, 'openvpn_info');
61 61
 
62 62
                 $response = new JsonResponse();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         $service->get(
70 70
             '/openvpn/version',
71
-            function (Request $request, TokenInfo $tokenInfo) {
71
+            function(Request $request, TokenInfo $tokenInfo) {
72 72
                 self::requireScope($tokenInfo, 'openvpn_info');
73 73
 
74 74
                 $response = new JsonResponse();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $service->post(
82 82
             '/openvpn/kill',
83
-            function (Request $request, TokenInfo $tokenInfo) {
83
+            function(Request $request, TokenInfo $tokenInfo) {
84 84
                 self::requireScope($tokenInfo, 'openvpn_kill');
85 85
 
86 86
                 $commonName = $request->getPostParameter('common_name');
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Ca/CaModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $service->post(
45 45
             '/ca/crl/fetch',
46
-            function (Request $request, TokenInfo $tokenInfo) {
46
+            function(Request $request, TokenInfo $tokenInfo) {
47 47
                 self::requireScope($tokenInfo, 'ca_crl_fetch');
48 48
 
49 49
                 $this->logger->info('fetching CRL');
Please login to merge, or discard this patch.
web/api.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
             $config->v('api')
124 124
         ),
125 125
         ['realm' => 'VPN Server API']
126
-     );
126
+        );
127 127
 
128 128
     $authenticationPlugin = new AuthenticationPlugin();
129 129
     $authenticationPlugin->register($apiAuth, 'api');
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Info/InfoModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $service->post(
45 45
             '/ca/crl/fetch',
46
-            function (Request $request, TokenInfo $tokenInfo) {
46
+            function(Request $request, TokenInfo $tokenInfo) {
47 47
                 self::requireScope($tokenInfo, 'ca_crl_fetch');
48 48
 
49 49
                 $this->logger->info('fetching CRL');
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Config/FileConfigStorage.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Get the configuration for a particular common name.
64 64
      *
65
+     * @param string $commonName
65 66
      * @return CommonNameConfig
66 67
      */
67 68
     public function getCommonNameConfig($commonName)
@@ -99,6 +100,9 @@  discard block
 block discarded – undo
99 100
         );
100 101
     }
101 102
 
103
+    /**
104
+     * @param string $fileName
105
+     */
102 106
     private function readFile($fileName)
103 107
     {
104 108
         if (false === $fileContent = @file_get_contents($fileName)) {
@@ -108,6 +112,9 @@  discard block
 block discarded – undo
108 112
         return Json::decode($fileContent);
109 113
     }
110 114
 
115
+    /**
116
+     * @param string $fileName
117
+     */
111 118
     private function writeFile($fileName, array $fileContent)
112 119
     {
113 120
         self::checkMakeDirectory(dirname($fileName));
@@ -116,6 +123,9 @@  discard block
 block discarded – undo
116 123
         }
117 124
     }
118 125
 
126
+    /**
127
+     * @param string $dirName
128
+     */
119 129
     private static function checkMakeDirectory($dirName)
120 130
     {
121 131
         if (!is_dir($dirName)) {
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Config/UserConfig.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -67,6 +67,9 @@
 block discarded – undo
67 67
         }
68 68
     }
69 69
 
70
+    /**
71
+     * @param string $otpSecret
72
+     */
70 73
     public function setOtpSecret($otpSecret)
71 74
     {
72 75
         InputValidation::otpSecret($otpSecret);
Please login to merge, or discard this patch.
src/fkooman/VPN/Server/Config/ConfigModule.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
         // get all configurations
47 47
         $service->get(
48 48
             '/config/common_names/',
49
-            function (Request $request, TokenInfo $tokenInfo) {
49
+            function(Request $request, TokenInfo $tokenInfo) {
50 50
                 self::requireScope($tokenInfo, ['admin', 'portal']);
51 51
 
52 52
                 $userId = $request->getUrl()->getQueryParameter('user_id');
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         // get configuration for a particular common_name
71 71
         $service->get(
72 72
             '/config/common_names/:commonName',
73
-            function (Request $request, TokenInfo $tokenInfo, $commonName) {
73
+            function(Request $request, TokenInfo $tokenInfo, $commonName) {
74 74
                 self::requireScope($tokenInfo, ['admin', 'portal']);
75 75
 
76 76
                 InputValidation::commonName($commonName);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         // set configuration for a particular common_name
88 88
         $service->put(
89 89
             '/config/common_names/:commonName',
90
-            function (Request $request, TokenInfo $tokenInfo, $commonName) {
90
+            function(Request $request, TokenInfo $tokenInfo, $commonName) {
91 91
                 self::requireScope($tokenInfo, ['admin']);
92 92
 
93 93
                 InputValidation::commonName($commonName);
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         // get configuration for a particular user_id
111 111
         $service->get(
112 112
             '/config/users/:userId',
113
-            function (Request $request, TokenInfo $tokenInfo, $userId) {
113
+            function(Request $request, TokenInfo $tokenInfo, $userId) {
114 114
                 self::requireScope($tokenInfo, ['admin', 'portal']);
115 115
 
116 116
                 InputValidation::userId($userId);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         // set configuration for a particular user_id
132 132
         $service->put(
133 133
             '/config/users/:userId',
134
-            function (Request $request, TokenInfo $tokenInfo, $userId) {
134
+            function(Request $request, TokenInfo $tokenInfo, $userId) {
135 135
                 self::requireScope($tokenInfo, ['admin', 'portal']);
136 136
 
137 137
                 InputValidation::userId($userId);
Please login to merge, or discard this patch.