Passed
Push — master ( aeeab5...454cf7 )
by Kacper
02:57
created
Parser/Rule.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -145,8 +145,7 @@  discard block
 block discarded – undo
145 145
         reset($rules);
146 146
         while (list($rule, $type) = each($rules)) {
147 147
             $matched = !($type & self::CONTEXT_EXACTLY) ?
148
-                !empty(preg_grep('/^'.preg_quote($rule).'(\.\w+)*/iS', $context)) :
149
-                in_array($rule, $context, true);
148
+                !empty(preg_grep('/^' . preg_quote($rule) . '(\.\w+)*/iS', $context)) : in_array($rule, $context, true);
150 149
 
151 150
             if ($type & self::CONTEXT_NOT_IN) {
152 151
                 if ($matched) {
@@ -174,7 +173,7 @@  discard block
 block discarded – undo
174 173
     private function _unsetUnnecessaryRules($rule, &$required)
175 174
     {
176 175
         if (strpos($rule, '.') !== false) {
177
-            foreach (array_filter(array_keys($this->_context), function ($key) use ($rule) {
176
+            foreach (array_filter(array_keys($this->_context), function($key) use ($rule) {
178 177
                 return fnmatch($key . '.*', $rule);
179 178
             }) as $remove) {
180 179
                 unset($required[$remove]);
@@ -196,7 +195,7 @@  discard block
 block discarded – undo
196 195
     {
197 196
         static $callable;
198 197
         if (!$callable) {
199
-            $callable = function () {
198
+            $callable = function() {
200 199
                 return true;
201 200
             };
202 201
         }
Please login to merge, or discard this patch.