Completed
Push — master ( eb16f0...b029a9 )
by Patrick
03:00
created
class.FlipREST.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
         if(!isset($this->headers['Authorization']))
76 76
         {
77 77
             $this->app->user = $this->getUserFromSession();
78
-        } 
79
-        else 
78
+        }
79
+        else
80 80
         {
81 81
             $header = $this->headers['Authorization'];
82 82
             $this->app->user = $this->getUserFromHeader($header);
Please login to merge, or discard this patch.
Data/class.Filter.php 1 patch
Braces   +12 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,11 +35,17 @@  discard block
 block discarded – undo
35 35
             return array(new FilterClause($string));
36 36
         }
37 37
         $children = array();
38
-        if($parens) array_push($children, '(');
38
+        if($parens)
39
+        {
40
+            array_push($children, '(');
41
+        }
39 42
         $children = array_merge($children, self::process_string($clauses[1]));
40 43
         array_push($children, trim($clauses[2]));
41 44
         $children = array_merge($children, self::process_string($clauses[3]));
42
-        if($parens) array_push($children, ')');
45
+        if($parens)
46
+        {
47
+            array_push($children, ')');
48
+        }
43 49
         return $children;
44 50
     }
45 51
 
@@ -178,7 +184,10 @@  discard block
 block discarded – undo
178 184
         $count = count($this->children);
179 185
         for($i = 0; $i < $count; $i++)
180 186
         {
181
-            if(!is_object($this->children[$i])) continue;
187
+            if(!is_object($this->children[$i]))
188
+            {
189
+                continue;
190
+            }
182 191
             if(strstr($this->children[$i]->var1, $substr) !== false ||
183 192
                strstr($this->children[$i]->var2, $substr) !== false)
184 193
             {
Please login to merge, or discard this patch.
Auth/class.User.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,11 +280,17 @@
 block discarded – undo
280 280
     public function canLoginWith($provider)
281 281
     {
282 282
         $hosts = $this->getLoginProviders();
283
-        if($hosts === false) return false;
283
+        if($hosts === false)
284
+        {
285
+            return false;
286
+        }
284 287
         $count = count($hosts);
285 288
         for($i = 0; $i < $count; $i++)
286 289
         {
287
-            if(strcasecmp($hosts[$i], $provider) === 0) return true;
290
+            if(strcasecmp($hosts[$i], $provider) === 0)
291
+            {
292
+                return true;
293
+            }
288 294
         }
289 295
         return false;
290 296
     }
Please login to merge, or discard this patch.
Auth/class.LDAPGroup.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,10 @@
 block discarded – undo
179 179
         $count = count($groups);
180 180
         for($i = 0; $i < $count; $i++)
181 181
         {
182
-            if($groups[$i] === false || $groups[$i] === null) continue;
182
+            if($groups[$i] === false || $groups[$i] === null)
183
+            {
184
+                continue;
185
+            }
183 186
             array_push($data, new LDAPGroup($groups[$i]));
184 187
         }
185 188
         $users = $this->server->read($this->server->user_base, $userFilter, false, $select);
Please login to merge, or discard this patch.
Auth/class.LDAPAuthenticator.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,10 +41,16 @@
 block discarded – undo
41 41
             switch($orderby[$keys[0]])
42 42
             {
43 43
                 case 1:
44
-                    if($d > 0) swap($array, $i, $j);
44
+                    if($d > 0)
45
+                    {
46
+                        swap($array, $i, $j);
47
+                    }
45 48
                     break;
46 49
                 case 0:
47
-                    if($d < 0) swap($array, $i, $j);
50
+                    if($d < 0)
51
+                    {
52
+                        swap($array, $i, $j);
53
+                    }
48 54
                     break;
49 55
             }
50 56
         }
Please login to merge, or discard this patch.
Auth/class.NullAuthenticator.php 1 patch
Braces   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Auth;
3 3
 
4
-class NullAuthenticator extends Authenticator
5
-{
6
-    public function login($username, $password)
7
-    {
4
+class NullAuthenticator extends Authenticator
5
+{
6
+    public function login($username, $password)
7
+    {
8 8
         return array('res'=>true, 'extended'=>null);
9 9
     }
10 10
 
11
-    public function isLoggedIn($data)
12
-    {
13
-        if(isset($data['res']))
14
-        {
11
+    public function isLoggedIn($data)
12
+    {
13
+        if(isset($data['res']))
14
+        {
15 15
             return $data['res'];
16 16
         }
17 17
         return false;
18 18
     }
19 19
 
20
-    public function getUser($data)
21
-    {
20
+    public function getUser($data)
21
+    {
22 22
         return null;
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
Auth/class.LDAPUser.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,10 @@
 block discarded – undo
44 44
             {
45 45
                 $dn = explode(',', $array[$i]);
46 46
                 $res = $this->isInGroupNamed(substr($dn[0], 3));
47
-                if($res) return $res;
47
+                if($res)
48
+                {
49
+                    return $res;
50
+                }
48 51
             }
49 52
         }
50 53
         return $res;
Please login to merge, or discard this patch.
LDAP/class.LDAPObject.php 1 patch
Braces   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,14 @@
 block discarded – undo
16 16
          $ret = array();
17 17
          foreach ($this as $key => $value)
18 18
          {
19
-            if($key === 'server' || $key === 'count') continue;
20
-            if(is_numeric($key)) continue;
19
+            if($key === 'server' || $key === 'count')
20
+            {
21
+                continue;
22
+            }
23
+            if(is_numeric($key))
24
+            {
25
+                continue;
26
+            }
21 27
             if($key === 'jpegphoto')
22 28
             {
23 29
                 $ret[$key] = base64_encode($value[0]);
Please login to merge, or discard this patch.
class.FlipSession.php 1 patch
Braces   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 require_once('Autoload.php');
3
-if(!isset($_SESSION) && php_sapi_name() !== 'cli') { session_start(); }
3
+if(!isset($_SESSION) && php_sapi_name() !== 'cli')
4
+{
5
+session_start(); }
4 6
 if(!isset($_SESSION['ip_address']) && isset($_SERVER['REMOTE_ADDR']))
5 7
 {
6 8
     $_SESSION['ip_address'] = $_SERVER['REMOTE_ADDR'];
@@ -156,7 +158,10 @@  discard block
 block discarded – undo
156 158
             $pos = strpos($sessionData, "|", $offset);
157 159
             $len = $pos - $offset;
158 160
             $name = substr($sessionData, $offset, $len);
159
-            if($name === false) break;
161
+            if($name === false)
162
+            {
163
+                break;
164
+            }
160 165
             $offset += $len+1;
161 166
             $data = @unserialize(substr($sessionData, $offset));
162 167
             $res[$name] = $data;
Please login to merge, or discard this patch.