@@ -22,7 +22,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |