Test Setup Failed
Pull Request — master (#190)
by
unknown
12:55 queued 03:21
created
src/midcom/datamanager/extension/type/privilege.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function get_effective_value(array $options, $object = null)
67 67
     {
68
-        if (!$object)
69
-        {
68
+        if (!$object) {
70 69
             $defaults = midcom::get()->auth->acl->get_default_privileges();
71 70
             return $defaults[$options['privilege_name']] === MIDCOM_PRIVILEGE_ALLOW;
72 71
         }
@@ -99,8 +98,7 @@  discard block
 block discarded – undo
99 98
 
100 99
     public function search_for_object($object)
101 100
     {
102
-        while (true)
103
-        {
101
+        while (true) {
104 102
             if ($object instanceof dbacontainer) {
105 103
                 return $object->get_value();
106 104
             }
Please login to merge, or discard this patch.