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 — 2.8 ( ec5d29...7accb9 )
by Thorsten
15:36
created
phpmyfaq/inc/PMF/Auth/Db.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function add($login, $pass)
70 70
     {
71 71
         if ($this->checkLogin($login) > 0) {
72
-            $this->errors[] = PMF_User::ERROR_USER_ADD . PMF_User::ERROR_USER_LOGIN_NOT_UNIQUE;
72
+            $this->errors[] = PMF_User::ERROR_USER_ADD.PMF_User::ERROR_USER_LOGIN_NOT_UNIQUE;
73 73
             return false;
74 74
         }
75 75
         
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $error = $this->db->error();
88 88
         
89 89
         if (strlen($error) > 0) {
90
-            $this->errors[] = PMF_User::ERROR_USER_ADD . 'error(): ' . $error;
90
+            $this->errors[] = PMF_User::ERROR_USER_ADD.'error(): '.$error;
91 91
             return false;
92 92
         }
93 93
         if (!$add) {
@@ -127,11 +127,11 @@  discard block
 block discarded – undo
127 127
         $error  = $this->db->error();
128 128
         
129 129
         if (strlen($error) > 0) {
130
-            $this->errors[] =  PMF_User::ERROR_USER_CHANGE . 'error(): ' . $error;
130
+            $this->errors[] = PMF_User::ERROR_USER_CHANGE.'error(): '.$error;
131 131
             return false;
132 132
         }
133 133
         if (!$change) {
134
-            $this->errors[] =  PMF_User::ERROR_USER_CHANGE;
134
+            $this->errors[] = PMF_User::ERROR_USER_CHANGE;
135 135
             return false;
136 136
         }
137 137
         return true;
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
         $error  = $this->db->error();
162 162
         
163 163
         if (strlen($error) > 0) {
164
-            $this->errors[] = PMF_User::ERROR_USER_DELETE . 'error(): ' . $error;
164
+            $this->errors[] = PMF_User::ERROR_USER_DELETE.'error(): '.$error;
165 165
             return false;
166 166
         }
167 167
         if (!$delete) {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         $error = $this->db->error();
202 202
         
203 203
         if (strlen($error) > 0) {
204
-            $this->errors[] = PMF_User::ERROR_USER_NOT_FOUND . 'error(): ' . $error;
204
+            $this->errors[] = PMF_User::ERROR_USER_NOT_FOUND.'error(): '.$error;
205 205
             return false;
206 206
         }
207 207
 
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Manages user authentication with databases.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Auth
13
- * @author    Lars Tiedemann <[email protected]>
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2005-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2005-09-30
19
- */
3
+     * Manages user authentication with databases.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Auth
13
+     * @author    Lars Tiedemann <[email protected]>
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2005-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2005-09-30
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param  string $login Loginname
109 109
      * @param  string $pass  Password
110 110
      * @return boolean
111
-    */
111
+     */
112 112
     public function changePassword($login, $pass)
113 113
     {
114 114
         $change = sprintf("
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth/Driver.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Interface for managing user authentication
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Auth
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Alberto Cabello <[email protected]>
15
- * @copyright 2009-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2009-03-01
19
- */
3
+     * Interface for managing user authentication
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Auth
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Alberto Cabello <[email protected]>
15
+     * @copyright 2009-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2009-03-01
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param  string $login Loginname
58 58
      * @param  string $pass  Password
59 59
      * @return boolean
60
-    */
60
+     */
61 61
     public function changePassword($login, $pass);
62 62
     
63 63
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth/Ldap.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Manages user authentication with LDAP server.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- * @package   Auth
13
- * @author    Alberto Cabello <[email protected]>
14
- * @author    Lars Scheithauer <[email protected]>
15
- * @author    Thorsten Rinne <[email protected]>
16
- * @copyright 2009-2015 phpMyFAQ Team
17
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
18
- * @link      http://www.phpmyfaq.de
19
- * @since     2009-03-01
20
- */
3
+     * Manages user authentication with LDAP server.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     * @package   Auth
13
+     * @author    Alberto Cabello <[email protected]>
14
+     * @author    Lars Scheithauer <[email protected]>
15
+     * @author    Thorsten Rinne <[email protected]>
16
+     * @copyright 2009-2015 phpMyFAQ Team
17
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
18
+     * @link      http://www.phpmyfaq.de
19
+     * @since     2009-03-01
20
+     */
21 21
 
22 22
 if (!defined('IS_VALID_PHPMYFAQ')) {
23 23
     exit();
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * @param string $password  Password
135 135
      *
136 136
      * @return boolean
137
-    */
137
+     */
138 138
     public function changePassword($login, $password)
139 139
     {
140 140
         return true;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         $bindLogin = $login;
179 179
         if ($this->_ldapConfig['ldap_use_domain_prefix']) {
180 180
             if (array_key_exists('domain', $optionalData)) {
181
-                $bindLogin = $optionalData['domain'] . '\\' . $login;
181
+                $bindLogin = $optionalData['domain'].'\\'.$login;
182 182
             }
183 183
         } else {
184 184
             $this->ldap = new PMF_Ldap($this->_config);
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $password
207 207
         );
208 208
 
209
-        if (! $this->ldap->bind($bindLogin, $password)) {
209
+        if (!$this->ldap->bind($bindLogin, $password)) {
210 210
             $this->errors[] = $this->ldap->error;
211 211
             return false;
212 212
         } else {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Auth/Sso.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Manages user authentication with Apache's SSO authentication, e.g. mod_sspi
4
- * or mod_auth_kerb
5
- *
6
- * PHP Version 5.3
7
- *
8
- * This Source Code Form is subject to the terms of the Mozilla Public License,
9
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
- * obtain one at http://mozilla.org/MPL/2.0/.
11
- *
12
- * @category  phpMyFAQ 
13
- * @package   Auth
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2011-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2011-06-22
19
- */
3
+     * Manages user authentication with Apache's SSO authentication, e.g. mod_sspi
4
+     * or mod_auth_kerb
5
+     *
6
+     * PHP Version 5.3
7
+     *
8
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
9
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
+     * obtain one at http://mozilla.org/MPL/2.0/.
11
+     *
12
+     * @category  phpMyFAQ 
13
+     * @package   Auth
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2011-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2011-06-22
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param string $pass  Password
79 79
      *
80 80
      * @return boolean
81
-    */
81
+     */
82 82
     public function changePassword($login, $pass)
83 83
     {
84 84
         return true;
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Enc.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Provides methods for password encryption
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Enc
13
- * @author    Lars Tiedemann <[email protected]>
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2005-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2005-09-18
19
- */
3
+     * Provides methods for password encryption
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Enc
13
+     * @author    Lars Tiedemann <[email protected]>
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2005-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2005-09-18
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
         $enc     = new PMF_Enc($config);
112 112
         $encType = ucfirst(strtolower($encType));
113 113
 
114
-        if (! isset($encType)) {
114
+        if (!isset($encType)) {
115 115
             $enc->errors[] = self::PMF_ERROR_USER_NO_ENCTYPE;
116 116
             return $enc;
117 117
         }
118 118
 
119
-        $encClass = 'PMF_Enc_' . $encType;
119
+        $encClass = 'PMF_Enc_'.$encType;
120 120
 
121 121
         if (!class_exists($encClass)) {
122 122
             $enc->errors[] = self::PMF_ERROR_USER_NO_ENCTYPE;
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     public function error()
136 136
     {
137 137
         if (!is_array($this->errors)) {
138
-            $this->errors = array((string) $this->errors);
138
+            $this->errors = array((string)$this->errors);
139 139
         }
140 140
         $message = '';
141 141
         foreach ($this->errors as $error) {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      */
154 154
     public function setSalt($login)
155 155
     {
156
-        $this->salt = $this->_config->get('security.salt') . $login;
156
+        $this->salt = $this->_config->get('security.salt').$login;
157 157
 
158 158
         return $this;
159 159
     }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Init.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Some basic functions and PMF_Init class.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/. 
10
- *
11
- * Portions created by Christian Stocker are Copyright (c) 2001-2008 Liip AG.
12
- * All Rights Reserved.
13
- *
14
- * @category  phpMyFAQ
15
- * @package   PMF_Init
16
- * @author    Johann-Peter Hartmann <[email protected]>
17
- * @author    Thorsten Rinne <[email protected]>
18
- * @author    Stefan Esser <[email protected]>
19
- * @author    Matteo Scaramuccia <[email protected]>
20
- * @author    Christian Stocker <[email protected]>
21
- * @copyright 2005-2015 phpMyFAQ Team
22
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
23
- * @link      http://www.phpmyfaq.de
24
- * @since     2005-09-24
25
- */
3
+     * Some basic functions and PMF_Init class.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/. 
10
+     *
11
+     * Portions created by Christian Stocker are Copyright (c) 2001-2008 Liip AG.
12
+     * All Rights Reserved.
13
+     *
14
+     * @category  phpMyFAQ
15
+     * @package   PMF_Init
16
+     * @author    Johann-Peter Hartmann <[email protected]>
17
+     * @author    Thorsten Rinne <[email protected]>
18
+     * @author    Stefan Esser <[email protected]>
19
+     * @author    Matteo Scaramuccia <[email protected]>
20
+     * @author    Christian Stocker <[email protected]>
21
+     * @copyright 2005-2015 phpMyFAQ Team
22
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
23
+     * @link      http://www.phpmyfaq.de
24
+     * @since     2005-09-24
25
+     */
26 26
 
27 27
 if (!defined('IS_VALID_PHPMYFAQ')) {
28 28
     exit();
@@ -138,14 +138,14 @@  discard block
 block discarded – undo
138 138
         return $filename;
139 139
     }
140 140
 
141
-   /**
142
-    * Clean the filename of any uploaded file by the user and force an error
143
-    * when calling is_uploaded_file($_FILES[key]['tmp_name']) if the cleanup goes wrong
144
-    *
145
-    * @return void
146
-    */
147
-   private static function _cleanFilenames()
148
-   {
141
+    /**
142
+     * Clean the filename of any uploaded file by the user and force an error
143
+     * when calling is_uploaded_file($_FILES[key]['tmp_name']) if the cleanup goes wrong
144
+     *
145
+     * @return void
146
+     */
147
+    private static function _cleanFilenames()
148
+    {
149 149
         reset($_FILES);
150 150
         while (list($key, $value) = each($_FILES)) {
151 151
             if (is_array($_FILES[$key]['name'])) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
                     $_FILES[$key]['type']     = '';
168 168
                     $_FILES[$key]['tmp_name'] = '';
169 169
                     $_FILES[$key]['size']     = 0;
170
-                    $_FILES[$key]['error']   = UPLOAD_ERR_NO_FILE;
170
+                    $_FILES[$key]['error'] = UPLOAD_ERR_NO_FILE;
171 171
                 }
172 172
             }
173 173
         }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Language/Plurals.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The plurals class provides support for plural forms in PMF translations.
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   Language
13
- * @author    Aurimas Fišeras <[email protected]>
14
- * @copyright 2009-2015 Aurimas Fišeras and phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-07-30
18
- */
3
+     * The plurals class provides support for plural forms in PMF translations.
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   Language
13
+     * @author    Aurimas Fišeras <[email protected]>
14
+     * @copyright 2009-2015 Aurimas Fišeras and phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-07-30
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
     private $useDefaultPluralForm;
64 64
 
65 65
     /**
66
-    * Constructor
67
-    *
68
-    * @param  array $translation PMF translation array for current language
69
-    * @return void
70
-    */
66
+     * Constructor
67
+     *
68
+     * @param  array $translation PMF translation array for current language
69
+     * @return void
70
+     */
71 71
     public function __construct($translation)
72 72
     {
73 73
         $this->PMF_TRANSL = $translation;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,9 +100,9 @@
 block discarded – undo
100 100
         }
101 101
 
102 102
         $plural = $this->plural($this->lang, $n);
103
-        if ($plural > $this->nPlurals-1) {
103
+        if ($plural > $this->nPlurals - 1) {
104 104
             // incorrectly defined plural function or wrong $nPlurals
105
-            return $this->nPlurals-1;
105
+            return $this->nPlurals - 1;
106 106
         } else {
107 107
             return $plural;
108 108
         }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Network.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@  discard block
 block discarded – undo
117 117
             // $network seems to be a real network address
118 118
             $x = ip2long($ip_arr[1]);
119 119
             // Evaluate the netmask: <Network Mask> or <CIDR>
120
-            $mask = ( long2ip($x) == $ip_arr[1] ? $x : 0xffffffff << (32 - $ip_arr[1]));
121
-            $matched = ( ($ip_long & $mask) == ($network_long & $mask) );
120
+            $mask = (long2ip($x) == $ip_arr[1] ? $x : 0xffffffff << (32 - $ip_arr[1]));
121
+            $matched = (($ip_long & $mask) == ($network_long & $mask));
122 122
         }
123 123
 
124 124
         return $matched;
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
         $bytes_addr = unpack("n*", inet_pton($addr));
154 154
         $bytes_test = unpack("n*", inet_pton($ip));
155 155
 
156
-        for ($i = 1; $i <= ceil($preflen / 16); $i++) {
157
-            $left = $preflen - 16 * ($i-1);
156
+        for ($i = 1; $i <= ceil($preflen/16); $i++) {
157
+            $left = $preflen - 16*($i - 1);
158 158
             if ($left > 16) {
159 159
                 $left = 16;
160 160
             }
Please login to merge, or discard this patch.
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The network class for IPv4 and IPv6 handling
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   PMF_Network
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @author    Kenneth Shaw <[email protected]>
16
- * @author    David Soria Parra <[email protected]>
17
- * @copyright 2011-2015 phpMyFAQ Team
18
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
19
- * @link      http://www.phpmyfaq.de
20
- * @since     2011-02-04
21
- */
3
+     * The network class for IPv4 and IPv6 handling
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   PMF_Network
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Matteo Scaramuccia <[email protected]>
15
+     * @author    Kenneth Shaw <[email protected]>
16
+     * @author    David Soria Parra <[email protected]>
17
+     * @copyright 2011-2015 phpMyFAQ Team
18
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
19
+     * @link      http://www.phpmyfaq.de
20
+     * @since     2011-02-04
21
+     */
22 22
 
23 23
 if (!defined('IS_VALID_PHPMYFAQ')) {
24 24
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Cache/Service.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The PMF_Cache_Service class provides abstract cache functionality
4
- *
5
- * PHP Version 5.3
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @package   PMF_Cache_Service
13
- * @author    Anatoliy Belsky <[email protected]>
14
- * @copyright 2002-2015 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2011-09-23
18
- */
3
+     * The PMF_Cache_Service class provides abstract cache functionality
4
+     *
5
+     * PHP Version 5.3
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @package   PMF_Cache_Service
13
+     * @author    Anatoliy Belsky <[email protected]>
14
+     * @copyright 2002-2015 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2011-09-23
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
@@ -34,28 +34,28 @@  discard block
 block discarded – undo
34 34
  */
35 35
 abstract class PMF_Cache_Service
36 36
 {
37
-	/**
38
-	 * Children must implement the constructor with the appropriate config.
39
-	 *
40
-	 * @param array $config Cache configuration
41
-	 *
42
-	 * @return void
43
-	 */
44
-	abstract function __construct(array $config);
37
+    /**
38
+     * Children must implement the constructor with the appropriate config.
39
+     *
40
+     * @param array $config Cache configuration
41
+     *
42
+     * @return void
43
+     */
44
+    abstract function __construct(array $config);
45 45
 
46
-	/**
47
-	 * Children must implement this to be able to clear the single article cache as well as all the related items.
48
-	 *
49
-	 * @param intereg $id Article id
50
-	 *
51
-	 * @return void
52
-	 */
53
-	abstract function clearArticle($id);
46
+    /**
47
+     * Children must implement this to be able to clear the single article cache as well as all the related items.
48
+     *
49
+     * @param intereg $id Article id
50
+     *
51
+     * @return void
52
+     */
53
+    abstract function clearArticle($id);
54 54
 
55
-	/**
56
-	 * Children must implement this to be able to clear all the cache contents at once.
57
-	 *
58
-	 * @return void
59
-	 */
60
-	abstract function clearAll();
55
+    /**
56
+     * Children must implement this to be able to clear all the cache contents at once.
57
+     *
58
+     * @return void
59
+     */
60
+    abstract function clearAll();
61 61
 }
Please login to merge, or discard this patch.