Completed
Pull Request — master (#84)
by Marcos
02:53
created
lib/Db/SharingACLMapper.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         parent::__construct($db, 'passman_sharing_acl');
23 23
     }
24 24
 
25
-    public function createACLEntry(SharingACL $acl){
25
+    public function createACLEntry(SharingACL $acl) {
26 26
         return $this->insert($acl);
27 27
     }
28 28
 
@@ -46,10 +46,9 @@  discard block
 block discarded – undo
46 46
     public function getItemACL($user_id, $item_guid) {
47 47
         $q = "SELECT * FROM " . self::TABLE_NAME . " WHERE item_guid = ? AND ";
48 48
         $filter = [$item_guid];
49
-        if ($user_id === null){
49
+        if ($user_id === null) {
50 50
             $q .= 'user_id is null';
51
-        }
52
-        else {
51
+        } else {
53 52
             $q .= 'user_id = ? ';
54 53
             $filter[] = $user_id;
55 54
         }
@@ -77,7 +76,7 @@  discard block
 block discarded – undo
77 76
         return $this->findEntities($q, [$item_guid]);
78 77
     }
79 78
 
80
-    public function deleteShareACL(SharingACL $ACL){
79
+    public function deleteShareACL(SharingACL $ACL) {
81 80
     	return $this->delete($ACL);
82 81
 	}
83 82
 }
84 83
\ No newline at end of file
Please login to merge, or discard this patch.