Passed
Push — master ( 4251e4...a3bf9e )
by Thijs
05:03
created
lib/ACL.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         foreach ($acl as $rule) {
41 41
             if (!is_array($rule)) {
42
-                throw new Error\Exception('Invalid rule in access control list: ' . var_export($rule, true));
42
+                throw new Error\Exception('Invalid rule in access control list: '.var_export($rule, true));
43 43
             }
44 44
             if (count($rule) === 0) {
45 45
                 throw new Error\Exception('Empty rule in access control list.');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             $action = array_shift($rule);
49 49
             if ($action !== 'allow' && $action !== 'deny') {
50 50
                 throw new Error\Exception(
51
-                    'Invalid action in rule in access control list: ' . var_export($action, true)
51
+                    'Invalid action in rule in access control list: '.var_export($action, true)
52 52
                 );
53 53
             }
54 54
         }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $config = Configuration::getOptionalConfig('acl.php');
67 67
         if (!$config->hasValue($id)) {
68
-            throw new Error\Exception('No ACL with id ' . var_export($id, true) . ' in config/acl.php.');
68
+            throw new Error\Exception('No ACL with id '.var_export($id, true).' in config/acl.php.');
69 69
         }
70 70
 
71 71
         return $config->getArray($id);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             case 'or':
129 129
                 return self::opOr($attributes, $rule);
130 130
             default:
131
-                throw new Error\Exception('Invalid ACL operation: ' . var_export($op, true));
131
+                throw new Error\Exception('Invalid ACL operation: '.var_export($op, true));
132 132
         }
133 133
     }
134 134
 
Please login to merge, or discard this patch.