Completed
Push — master ( 76b9c1...cbc0e4 )
by Patrick
02:55
created
Data/class.SQLDataTable.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,13 +38,11 @@  discard block
 block discarded – undo
38 38
                 if(isset($this->data[$array[$i][$key]][0]))
39 39
                 {
40 40
                     array_push($this->data[$array[$i][$key]], $array[$i]);
41
-                }
42
-                else
41
+                } else
43 42
                 {
44 43
                     $this->data[$array[$i][$key]] = array($array[$i]);
45 44
                 }
46
-            }
47
-            else
45
+            } else
48 46
             {
49 47
                 $this->data[$array[$i][$key]] = $array[$i];
50 48
             }
@@ -66,8 +64,7 @@  discard block
 block discarded – undo
66 64
         if($ret === false || !isset($ret[0]) || !isset($ret[0]['COUNT(*)']))
67 65
         {
68 66
              return false;
69
-        }
70
-        else
67
+        } else
71 68
         {
72 69
              return $ret[0]['COUNT(*)'];
73 70
         }
Please login to merge, or discard this patch.
Data/class.FilterClause.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
     function __construct($string=false)
11 11
     {
12
-        if($string !== false) $this->process_filter_string($string);
12
+        if($string !== false) {
13
+            $this->process_filter_string($string);
14
+        }
13 15
     }
14 16
 
15 17
     static function str_startswith($haystack, $needle)
@@ -126,8 +128,7 @@  discard block
 block discarded – undo
126 128
                 if($case)
127 129
                 {
128 130
                     return array($field=>array('$regex'=>new \MongoRegex('/'.$this->var2.'/i')));
129
-                }
130
-                else
131
+                } else
131 132
                 {
132 133
                     return array($field=>$this->var2);
133 134
                 }
Please login to merge, or discard this patch.
class.FlipPage.php 1 patch
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@  discard block
 block discarded – undo
19 19
 if(isset($GLOBALS['FLIPSIDE_SETTINGS_LOC']))
20 20
 {
21 21
     require_once($GLOBALS['FLIPSIDE_SETTINGS_LOC'].'/class.FlipsideSettings.php');
22
-}
23
-else
22
+} else
24 23
 {
25 24
     require_once('/var/www/secure_settings/class.FlipsideSettings.php');
26 25
 }
@@ -404,8 +403,7 @@  discard block
 block discarded – undo
404 403
             {
405 404
                 $this->addLink('Login', $this->loginUrl);
406 405
             }
407
-        }
408
-        else
406
+        } else
409 407
         {
410 408
             $this->add_links();
411 409
             $this->addLink('Logout', $this->logoutUrl);
@@ -423,7 +421,9 @@  discard block
 block discarded – undo
423 421
      */
424 422
     private function setupVars()
425 423
     {
426
-        if($this->minified !== null && $this->cdn !== null) return;
424
+        if($this->minified !== null && $this->cdn !== null) {
425
+            return;
426
+        }
427 427
         $this->minified = 'min';
428 428
         $this->cdn      = 'cdn';
429 429
         if(isset(FlipsideSettings::$global))
@@ -834,8 +834,7 @@  discard block
 block discarded – undo
834 834
         {
835 835
             $submenu['_'] = $url;
836 836
             $this->links[$name] = $submenu;
837
-        }
838
-        else
837
+        } else
839 838
         {
840 839
             $this->links[$name] = $url;
841 840
         }
Please login to merge, or discard this patch.
class.FlipSession.php 1 patch
Braces   +9 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@  discard block
 block discarded – undo
32 32
         if(FlipSession::doesVarExist($name))
33 33
         {
34 34
             return $_SESSION[$name];
35
-        }
36
-        else
35
+        } else
37 36
         {
38 37
             return $default;
39 38
         }
@@ -59,13 +58,11 @@  discard block
 block discarded – undo
59 58
         if(isset($_SESSION['flipside_user']))
60 59
         {
61 60
             return true;
62
-        }
63
-        else if(isset($_SESSION['AuthMethod']) && isset($_SESSION['AuthData']))
61
+        } else if(isset($_SESSION['AuthMethod']) && isset($_SESSION['AuthData']))
64 62
         {
65 63
             $auth = AuthProvider::getInstance();
66 64
             return $auth->isLoggedIn($_SESSION['AuthData'], $_SESSION['AuthMethod']);
67
-        }
68
-        else
65
+        } else
69 66
         {
70 67
             return false;
71 68
         }
@@ -81,8 +78,7 @@  discard block
 block discarded – undo
81 78
         if(isset($_SESSION['flipside_user']))
82 79
         {
83 80
             return $_SESSION['flipside_user'];
84
-        }
85
-        else if(isset($_SESSION['AuthMethod']) && isset($_SESSION['AuthData']))
81
+        } else if(isset($_SESSION['AuthMethod']) && isset($_SESSION['AuthData']))
86 82
         {
87 83
             $auth = AuthProvider::getInstance();
88 84
             $user = $auth->getUser($_SESSION['AuthData'], $_SESSION['AuthMethod']);
@@ -91,8 +87,7 @@  discard block
 block discarded – undo
91 87
                 $_SESSION['flipside_user'] = $user;
92 88
             }
93 89
             return $user;
94
-        }
95
-        else
90
+        } else
96 91
         {
97 92
             return null;
98 93
         }
@@ -156,7 +151,9 @@  discard block
 block discarded – undo
156 151
             $pos = strpos($sessionData, "|", $offset);
157 152
             $len = $pos - $offset;
158 153
             $name = substr($sessionData, $offset, $len);
159
-            if($name === false) break;
154
+            if($name === false) {
155
+                break;
156
+            }
160 157
             $offset += $len+1;
161 158
             $data = @unserialize(substr($sessionData, $offset));
162 159
             $res[$name] = $data;
@@ -181,8 +178,7 @@  discard block
 block discarded – undo
181 178
             if($sessionData === false)
182 179
             {
183 180
                 array_push($res, array('sid' => $sessionId));
184
-            }
185
-            else
181
+            } else
186 182
             {
187 183
                 $tmp = FlipSession::unserializePhpSession($sessionData);
188 184
                 $tmp['sid' ] = $sessionId;
Please login to merge, or discard this patch.
class.WebPage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
         if($browserName === 'IE' && $this->getBrowserMajorVer() <= 7)
62 62
         {
63 63
             header( 'Location: /badbrowser.php' ) ;
64
-        }
65
-        else if($browserName === 'Chrome' && $this->getBrowserMajorVer() >= 36)
64
+        } else if($browserName === 'Chrome' && $this->getBrowserMajorVer() >= 36)
66 65
         {
67 66
             $this->importSupport = true;
68 67
         }
Please login to merge, or discard this patch.
Email/class.AmazonSES.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@
 block discarded – undo
34 34
             $args['RawMessage'] = array();
35 35
             $args['RawMessage']['Data'] = base64_encode($email->getRawMessage());
36 36
             return $this->ses->sendRawEmail($args);
37
-        }
38
-        else
37
+        } else
39 38
         {
40 39
             $args = array();
41 40
             $args['Source'] = $email->getFromAddress();
Please login to merge, or discard this patch.
LDAP/class.LDAPObject.php 1 patch
Braces   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,8 +16,12 @@  discard block
 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
+                continue;
21
+            }
22
+            if(is_numeric($key)) {
23
+                continue;
24
+            }
21 25
             if($key === 'jpegphoto')
22 26
             {
23 27
                 $ret[$key] = base64_encode($value[0]);
@@ -26,8 +30,7 @@  discard block
 block discarded – undo
26 30
             if(is_array($value) && $value['count'] === 1)
27 31
             {
28 32
                 $ret[$key] = $value[0];
29
-            }
30
-            else
33
+            } else
31 34
             {
32 35
                 $ret[$key] = $value;
33 36
             }
Please login to merge, or discard this patch.
LDAP/class.LDAPServer.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -132,8 +132,7 @@  discard block
 block discarded – undo
132 132
         try
133 133
         {
134 134
             $res = ldap_bind($this->ds, $cn, $password);
135
-        }
136
-        catch(\Exception $ex)
135
+        } catch(\Exception $ex)
137 136
         {
138 137
             $this->ds = ldap_connect($this->connect);
139 138
             $res = @ldap_bind($this->ds, $cn, $password);
@@ -177,8 +176,7 @@  discard block
 block discarded – undo
177 176
                         $entity[$keys[$i]][$j] = $array[$j];
178 177
                     }
179 178
                 }
180
-            }
181
-            else if($delete !== false && $entity[$keys[$i]] === null)
179
+            } else if($delete !== false && $entity[$keys[$i]] === null)
182 180
             {
183 181
                 $delete[$keys[$i]] = array();
184 182
                 unset($entity[$keys[$i]]);
@@ -225,20 +223,17 @@  discard block
 block discarded – undo
225 223
             if($single === true)
226 224
             {
227 225
                 $sr = @ldap_read($this->ds, $baseDN, $filterStr);
228
-            }
229
-            else
226
+            } else
230 227
             {
231 228
                 if($attributes !== false)
232 229
                 {
233 230
                     $sr = @ldap_list($this->ds, $baseDN, $filterStr, $attributes);
234
-                }
235
-                else
231
+                } else
236 232
                 {
237 233
                     $sr = @ldap_list($this->ds, $baseDN, $filterStr);
238 234
                 }
239 235
             }
240
-        }
241
-        catch(\Exception $e)
236
+        } catch(\Exception $e)
242 237
         {
243 238
             throw new \Exception($e->getMessage().' '.$filterStr, $e->getCode(), $e);
244 239
         }
@@ -269,8 +264,7 @@  discard block
 block discarded – undo
269 264
         try
270 265
         {
271 266
             $sr = ldap_list($this->ds, $baseDN, $filterStr, array('dn'));
272
-        }
273
-        catch(\Exception $e)
267
+        } catch(\Exception $e)
274 268
         {
275 269
             throw new \Exception($e->getMessage().' '.$filterStr, $e->getCode(), $e);
276 270
         }
Please login to merge, or discard this patch.
class.DataSetFactory.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
 if(isset($GLOBALS['FLIPSIDE_SETTINGS_LOC']))
18 18
 {
19 19
     require_once($GLOBALS['FLIPSIDE_SETTINGS_LOC'].'/class.FlipsideSettings.php');
20
-}
21
-else
20
+} else
22 21
 {
23 22
     require_once('/var/www/secure_settings/class.FlipsideSettings.php');
24 23
 }
Please login to merge, or discard this patch.