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.
Language/Perl.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Highlighter
4
- *
5
- * Copyright (C) 2016, Some right reserved.
6
- *
7
- * @author Kacper "Kadet" Donat <[email protected]>
8
- *
9
- * Contact with author:
10
- * Xmpp: [email protected]
11
- * E-mail: [email protected]
12
- *
13
- * From Kadet with love.
14
- */
3
+     * Highlighter
4
+     *
5
+     * Copyright (C) 2016, Some right reserved.
6
+     *
7
+     * @author Kacper "Kadet" Donat <[email protected]>
8
+     *
9
+     * Contact with author:
10
+     * Xmpp: [email protected]
11
+     * E-mail: [email protected]
12
+     *
13
+     * From Kadet with love.
14
+     */
15 15
 
16 16
 namespace Kadet\Highlighter\Language;
17 17
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             'string.nowdoc'  => new Rule(
68 68
                 new RegexMatcher('/<<\s*\'(\w+)\';(?P<string>.*?)\n\1/sm', [
69 69
                     'string' => Token::NAME,
70
-                          0  => 'keyword.nowdoc'
70
+                            0  => 'keyword.nowdoc'
71 71
                 ]), ['context' => ['!comment']]
72 72
             ),
73 73
 
Please login to merge, or discard this patch.