Completed
Push — master ( 6830ea...f581ef )
by Patrick
01:49 queued 01:05
created
Settings.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         {
31 31
             require $GLOBALS['FLIPSIDE_SETTINGS_LOC'].'/class.FlipsideSettings.php';
32 32
             return;
33
-	}
33
+    }
34 34
         if(file_exists('/var/www/secure_settings/class.FlipsideSettings.php'))
35 35
         {
36 36
             require '/var/www/secure_settings/class.FlipsideSettings.php';
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     public function getDataSetData($dataSetName)
73 73
     {
74 74
         if(!isset(\FlipsideSettings::$dataset) || !isset(\FlipsideSettings::$dataset[$dataSetName]))
75
-	{
75
+    {
76 76
             return false;
77 77
         }
78 78
         return \FlipsideSettings::$dataset[$dataSetName];
Please login to merge, or discard this patch.
Data/SQLDataSet.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
         $stmt = $this->pdo->query($sql);
255 255
         if($stmt === false)
256 256
         {
257
-            if (php_sapi_name() !== "cli") {
257
+            if(php_sapi_name() !== "cli") {
258 258
               error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
259 259
             }
260 260
             return false;
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         $sql = "INSERT INTO `$tablename` ($cols) VALUES ($set);";
305 305
         if($this->pdo->exec($sql) === false)
306 306
         {
307
-            if (php_sapi_name() !== "cli") {
307
+            if(php_sapi_name() !== "cli") {
308 308
                 error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
309 309
             }
310 310
             return false;
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,8 @@  discard block
 block discarded – undo
254 254
         $stmt = $this->pdo->query($sql);
255 255
         if($stmt === false)
256 256
         {
257
-            if (php_sapi_name() !== "cli") {
257
+            if (php_sapi_name() !== "cli")
258
+            {
258 259
               error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
259 260
             }
260 261
             return false;
@@ -304,7 +305,8 @@  discard block
 block discarded – undo
304 305
         $sql = "INSERT INTO `$tablename` ($cols) VALUES ($set);";
305 306
         if($this->pdo->exec($sql) === false)
306 307
         {
307
-            if (php_sapi_name() !== "cli") {
308
+            if (php_sapi_name() !== "cli")
309
+            {
308 310
                 error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true));
309 311
             }
310 312
             return false;
Please login to merge, or discard this patch.
Auth/SQLGroup.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -137,16 +137,16 @@
 block discarded – undo
137 137
     {
138 138
         if($isGroup)
139 139
         {
140
-        	array_push($this->tmpMembers, array('gid' => $name));
140
+            array_push($this->tmpMembers, array('gid' => $name));
141 141
         }
142 142
         else
143 143
         {
144
-        	array_push($this->tmpMembers, array('uid' => $name));
144
+            array_push($this->tmpMembers, array('uid' => $name));
145 145
         }
146 146
         if($flush)
147 147
         {
148 148
                 $gid = $this->getGroupName();
149
-        	$memberDT = $this->auth->getDataTable('groupUserMap');
149
+            $memberDT = $this->auth->getDataTable('groupUserMap');
150 150
                 //Get all cu rrent direct members
151 151
                 $existing = $memberDT->read(new \Flipside\Data\Filter('groupCN eq "'.$gid.'"'));
152 152
                 $exCount = count($existing);
Please login to merge, or discard this patch.
Auth/SQLUser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         $data = $userDT->read($filter);
81 81
         if(strlen($data[0]['userPassword']) === 0)
82 82
         {
83
-             $data[0]['userPassword'] = openssl_random_pseudo_bytes(10);
83
+                $data[0]['userPassword'] = openssl_random_pseudo_bytes(10);
84 84
         }
85 85
         $hash = hash('sha512', $data[0]['uid'].';'.$data[0]['userPassword'].';'.$data[0]['mail']);
86 86
         $update = array('resetHash' => $hash);
Please login to merge, or discard this patch.
Auth/SQLAuthenticator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -131,7 +131,7 @@
 block discarded – undo
131 131
     private function hashLDAPPassword($password, $salt)
132 132
     {
133 133
         $shaHashed = sha1($password.$salt);
134
-        $packed = pack("H*",$shaHashed);
134
+        $packed = pack("H*", $shaHashed);
135 135
         $encoded = base64_encode($packed.$salt);
136 136
         return "{SSHA}".$encoded;
137 137
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -219,7 +219,8 @@
 block discarded – undo
219 219
     public function getGroupByName($name)
220 220
     {
221 221
         $group = $this->getEntityByFilter('group', "cn eq '$name'", '\Flipside\Auth\SQLGroup');
222
-        if($group === null) {
222
+        if($group === null)
223
+        {
223 224
             return $this->getEntityByFilter('group', "gid eq '$name'", '\Flipside\Auth\SQLGroup');
224 225
         }
225 226
         return $group;
Please login to merge, or discard this patch.
Autoload.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,22 +8,22 @@  discard block
 block discarded – undo
8 8
 * @copyright Copyright (c) 2015, Austin Artistic Reconstruction
9 9
 * @license http://www.apache.org/licenses/ Apache 2.0 License
10 10
 */
11
-if(file_exists(__DIR__ . '/vendor/autoload.php'))
11
+if(file_exists(__DIR__.'/vendor/autoload.php'))
12 12
 {
13
-    require(__DIR__ . '/vendor/autoload.php');
13
+    require(__DIR__.'/vendor/autoload.php');
14 14
 }
15
-set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
16
-spl_autoload_register(function ($class) {
15
+set_include_path(get_include_path().PATH_SEPARATOR.__DIR__);
16
+spl_autoload_register(function($class) {
17 17
 
18 18
     // project-specific namespace prefix
19 19
     $prefix = 'Flipside\\';
20 20
 
21 21
     // base directory for the namespace prefix
22
-    $base_dir = __DIR__ . '/';
22
+    $base_dir = __DIR__.'/';
23 23
 
24 24
     // does the class use the namespace prefix?
25 25
     $len = strlen($prefix);
26
-    if (strncmp($prefix, $class, $len) !== 0) {
26
+    if(strncmp($prefix, $class, $len) !== 0) {
27 27
         // no, move to the next registered autoloader
28 28
         return;
29 29
     }
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
     // replace the namespace prefix with the base directory, replace namespace
35 35
     // separators with directory separators in the relative class name, append
36 36
     // with .php
37
-    $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
37
+    $file = $base_dir.str_replace('\\', '/', $relative_class).'.php';
38 38
 
39 39
     // if the file exists, require it
40
-    if (file_exists($file)) {
40
+    if(file_exists($file)) {
41 41
         require $file;
42 42
     }
43 43
 });
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,8 @@  discard block
 block discarded – undo
13 13
     require(__DIR__ . '/vendor/autoload.php');
14 14
 }
15 15
 set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__);
16
-spl_autoload_register(function ($class) {
16
+spl_autoload_register(function ($class)
17
+{
17 18
 
18 19
     // project-specific namespace prefix
19 20
     $prefix = 'Flipside\\';
@@ -23,7 +24,8 @@  discard block
 block discarded – undo
23 24
 
24 25
     // does the class use the namespace prefix?
25 26
     $len = strlen($prefix);
26
-    if (strncmp($prefix, $class, $len) !== 0) {
27
+    if (strncmp($prefix, $class, $len) !== 0)
28
+    {
27 29
         // no, move to the next registered autoloader
28 30
         return;
29 31
     }
@@ -37,7 +39,8 @@  discard block
 block discarded – undo
37 39
     $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
38 40
 
39 41
     // if the file exists, require it
40
-    if (file_exists($file)) {
42
+    if (file_exists($file))
43
+    {
41 44
         require $file;
42 45
     }
43 46
 });
Please login to merge, or discard this patch.