Completed
Pull Request — master (#6)
by Patrick
03:35
created
Auth/class.SQLGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
         return false;
29 29
     }
30 30
 
31
-    public function getMemberUids($recursive=true)
31
+    public function getMemberUids($recursive = true)
32 32
     {
33 33
         return $this->members(false, $recursive, true);
34 34
     }
35 35
 
36
-    public function members($details=false, $recursive=true, $includeGroups=true)
36
+    public function members($details = false, $recursive = true, $includeGroups = true)
37 37
     {
38 38
         //TODO
39 39
         return array();
Please login to merge, or discard this patch.
Auth/class.Group.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@  discard block
 block discarded – undo
23 23
         return false;
24 24
     }
25 25
 
26
-    public function getMemberUids($recursive=true)
26
+    public function getMemberUids($recursive = true)
27 27
     {
28 28
         return array();
29 29
     }
30 30
 
31
-    public function members($details=false, $recursive=true, $includeGroups=true)
31
+    public function members($details = false, $recursive = true, $includeGroups = true)
32 32
     {
33 33
         return array();
34 34
     }
@@ -46,20 +46,20 @@  discard block
 block discarded – undo
46 46
     public function jsonSerialize()
47 47
     {
48 48
         $group = array();
49
-        try{
49
+        try {
50 50
         $group['cn'] = $this->getGroupName();
51 51
         $group['description'] = $this->getDescription();
52 52
         $group['member'] = $this->getMemberUids();
53
-        } catch(\Exception $e) {echo $e->getMessage(); die();}
53
+        } catch(\Exception $e) {echo $e->getMessage(); die(); }
54 54
         return $group;
55 55
     }
56 56
 
57
-    public function getNonMembers($select=false)
57
+    public function getNonMembers($select = false)
58 58
     {
59 59
         return array();
60 60
     }
61 61
 
62
-    public function addMember($name, $isGroup=false, $flush=true)
62
+    public function addMember($name, $isGroup = false, $flush = true)
63 63
     {
64 64
         return false;
65 65
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         return true;
102 102
     }
103 103
 
104
-    static function from_name($name, $data=false)
104
+    static function from_name($name, $data = false)
105 105
     {
106 106
         return false;
107 107
     }
Please login to merge, or discard this patch.
Braces   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,11 +46,15 @@  discard block
 block discarded – undo
46 46
     public function jsonSerialize()
47 47
     {
48 48
         $group = array();
49
-        try{
49
+        try
50
+        {
50 51
         $group['cn'] = $this->getGroupName();
51 52
         $group['description'] = $this->getDescription();
52 53
         $group['member'] = $this->getMemberUids();
53
-        } catch(\Exception $e) {echo $e->getMessage(); die();}
54
+        }
55
+        catch(\Exception $e)
56
+        {
57
+echo $e->getMessage(); die();}
54 58
         return $group;
55 59
     }
56 60
 
@@ -86,7 +90,10 @@  discard block
 block discarded – undo
86 90
                 {
87 91
                     $isLast = true;
88 92
                 }
89
-                if(!isset($group->member[$i]->type)) continue;
93
+                if(!isset($group->member[$i]->type))
94
+                {
95
+                    continue;
96
+                }
90 97
                 if($group->member[$i]->type === 'Group')
91 98
                 {
92 99
                     $this->addMember($group->member[$i]->cn, true, $isLast);
Please login to merge, or discard this patch.
Autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
     $classname = ltrim($classname, '\\');
23 23
     $filename  = '';
24 24
     $namespace = '';
25
-    if ($lastNsPos = strrpos($classname, '\\'))
25
+    if($lastNsPos = strrpos($classname, '\\'))
26 26
     {
27 27
         $namespace = substr($classname, 0, $lastNsPos);
28 28
         $classname = substr($classname, $lastNsPos + 1);
29
-        $filename  = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
29
+        $filename  = str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR;
30 30
     }
31 31
     $filename = __DIR__.DIRECTORY_SEPARATOR.$filename.'class.'.$classname.'.php';
32 32
     if(is_readable($filename))
Please login to merge, or discard this patch.
Serialize/class.ExcelSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 namespace Serialize;
3 3
 
4
-require_once dirname(__FILE__) . '/../libs/PHPExcel/Classes/PHPExcel.php';
4
+require_once dirname(__FILE__).'/../libs/PHPExcel/Classes/PHPExcel.php';
5 5
 
6 6
 class ExcelSerializer extends SpreadSheetSerializer
7 7
 {
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
             for($j = 0; $j < $colCount; $j++)
33 33
             {
34 34
                 $colName = $keys[$j];
35
-                $sheat->setCellValueByColumnAndRow($j, 2+$i, $data[$i][$j]);
35
+                $sheat->setCellValueByColumnAndRow($j, 2 + $i, $data[$i][$j]);
36 36
             }
37 37
         }
38 38
         if(strcasecmp($type, 'xlsx') === 0 || strcasecmp($type, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') === 0)
Please login to merge, or discard this patch.