Completed
Branch scrutinizer (4d54e2)
by Fabio
15:49
created
framework/3rdParty/SafeHtml/HTMLSax3.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
 * Required classes
30 30
 */
31 31
 
32
-require_once(dirname(__FILE__).'/HTMLSax3/States.php');
33
-require_once(dirname(__FILE__).'/HTMLSax3/Decorators.php');
32
+require_once(dirname(__FILE__) . '/HTMLSax3/States.php');
33
+require_once(dirname(__FILE__) . '/HTMLSax3/Decorators.php');
34 34
 
35 35
 /**
36 36
 * Base State Parser
@@ -246,56 +246,56 @@  discard block
 block discarded – undo
246 246
     * @return void
247 247
     */
248 248
     function parse($data) {
249
-        if ($this->parser_options['XML_OPTION_TRIM_DATA_NODES']==1) {
249
+        if ($this->parser_options['XML_OPTION_TRIM_DATA_NODES'] == 1) {
250 250
             $decorator = new TSax3_Trim(
251 251
                 $this->handler_object_data,
252 252
                 $this->handler_method_data);
253
-            $this->handler_object_data =& $decorator;
253
+            $this->handler_object_data = & $decorator;
254 254
             $this->handler_method_data = 'trimData';
255 255
         }
256
-        if ($this->parser_options['XML_OPTION_CASE_FOLDING']==1) {
256
+        if ($this->parser_options['XML_OPTION_CASE_FOLDING'] == 1) {
257 257
             $open_decor = new TSax3_CaseFolding(
258 258
                 $this->handler_object_element,
259 259
                 $this->handler_method_opening,
260 260
                 $this->handler_method_closing);
261
-            $this->handler_object_element =& $open_decor;
262
-            $this->handler_method_opening ='foldOpen';
263
-            $this->handler_method_closing ='foldClose';
261
+            $this->handler_object_element = & $open_decor;
262
+            $this->handler_method_opening = 'foldOpen';
263
+            $this->handler_method_closing = 'foldClose';
264 264
         }
265
-        if ($this->parser_options['XML_OPTION_LINEFEED_BREAK']==1) {
265
+        if ($this->parser_options['XML_OPTION_LINEFEED_BREAK'] == 1) {
266 266
             $decorator = new TSax3_Linefeed(
267 267
                 $this->handler_object_data,
268 268
                 $this->handler_method_data);
269
-            $this->handler_object_data =& $decorator;
269
+            $this->handler_object_data = & $decorator;
270 270
             $this->handler_method_data = 'breakData';
271 271
         }
272
-        if ($this->parser_options['XML_OPTION_TAB_BREAK']==1) {
272
+        if ($this->parser_options['XML_OPTION_TAB_BREAK'] == 1) {
273 273
             $decorator = new TSax3_Tab(
274 274
                 $this->handler_object_data,
275 275
                 $this->handler_method_data);
276
-            $this->handler_object_data =& $decorator;
276
+            $this->handler_object_data = & $decorator;
277 277
             $this->handler_method_data = 'breakData';
278 278
         }
279
-        if ($this->parser_options['XML_OPTION_ENTITIES_UNPARSED']==1) {
279
+        if ($this->parser_options['XML_OPTION_ENTITIES_UNPARSED'] == 1) {
280 280
             $decorator = new TSax3_Entities_Unparsed(
281 281
                 $this->handler_object_data,
282 282
                 $this->handler_method_data);
283
-            $this->handler_object_data =& $decorator;
283
+            $this->handler_object_data = & $decorator;
284 284
             $this->handler_method_data = 'breakData';
285 285
         }
286
-        if ($this->parser_options['XML_OPTION_ENTITIES_PARSED']==1) {
286
+        if ($this->parser_options['XML_OPTION_ENTITIES_PARSED'] == 1) {
287 287
             $decorator = new TSax3_Entities_Parsed(
288 288
                 $this->handler_object_data,
289 289
                 $this->handler_method_data);
290
-            $this->handler_object_data =& $decorator;
290
+            $this->handler_object_data = & $decorator;
291 291
             $this->handler_method_data = 'breakData';
292 292
         }
293 293
         // Note switched on by default
294
-        if ($this->parser_options['XML_OPTION_STRIP_ESCAPES']==1) {
294
+        if ($this->parser_options['XML_OPTION_STRIP_ESCAPES'] == 1) {
295 295
             $decorator = new TSax3_Escape_Stripper(
296 296
                 $this->handler_object_escape,
297 297
                 $this->handler_method_escape);
298
-            $this->handler_object_escape =& $decorator;
298
+            $this->handler_object_escape = & $decorator;
299 299
             $this->handler_method_escape = 'strip';
300 300
         }
301 301
         $this->rawtext = $data;
@@ -511,12 +511,12 @@  discard block
 block discarded – undo
511 511
     * @return mixed
512 512
     */
513 513
     function set_object(&$object) {
514
-        if ( is_object($object) ) {
515
-            $this->state_parser->handler_default =& $object;
514
+        if (is_object($object)) {
515
+            $this->state_parser->handler_default = & $object;
516 516
             return true;
517 517
         } else {
518 518
             require_once('PEAR.php');
519
-            PEAR::raiseError('TSax3::set_object requires '.
519
+            PEAR::raiseError('TSax3::set_object requires ' .
520 520
                 'an object instance');
521 521
         }
522 522
     }
@@ -548,13 +548,13 @@  discard block
 block discarded – undo
548 548
     * @access public
549 549
     * @return boolean
550 550
     */
551
-    function set_option($name, $value=1) {
552
-        if ( array_key_exists($name,$this->state_parser->parser_options) ) {
551
+    function set_option($name, $value = 1) {
552
+        if (array_key_exists($name, $this->state_parser->parser_options)) {
553 553
             $this->state_parser->parser_options[$name] = $value;
554 554
             return true;
555 555
         } else {
556 556
             require_once('PEAR.php');
557
-            PEAR::raiseError('TSax3::set_option('.$name.') illegal');
557
+            PEAR::raiseError('TSax3::set_option(' . $name . ') illegal');
558 558
         }
559 559
     }
560 560
 
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
     * @see set_object
574 574
     */
575 575
     function set_data_handler($data_method) {
576
-        $this->state_parser->handler_object_data =& $this->state_parser->handler_default;
576
+        $this->state_parser->handler_object_data = & $this->state_parser->handler_default;
577 577
         $this->state_parser->handler_method_data = $data_method;
578 578
     }
579 579
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
     * @see set_object
597 597
     */
598 598
     function set_element_handler($opening_method, $closing_method) {
599
-        $this->state_parser->handler_object_element =& $this->state_parser->handler_default;
599
+        $this->state_parser->handler_object_element = & $this->state_parser->handler_default;
600 600
         $this->state_parser->handler_method_opening = $opening_method;
601 601
         $this->state_parser->handler_method_closing = $closing_method;
602 602
     }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     * @see set_object
616 616
     */
617 617
     function set_pi_handler($pi_method) {
618
-        $this->state_parser->handler_object_pi =& $this->state_parser->handler_default;
618
+        $this->state_parser->handler_object_pi = & $this->state_parser->handler_default;
619 619
         $this->state_parser->handler_method_pi = $pi_method;
620 620
     }
621 621
 
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
     * @see set_object
634 634
     */
635 635
     function set_escape_handler($escape_method) {
636
-        $this->state_parser->handler_object_escape =& $this->state_parser->handler_default;
636
+        $this->state_parser->handler_object_escape = & $this->state_parser->handler_default;
637 637
         $this->state_parser->handler_method_escape = $escape_method;
638 638
     }
639 639
 
@@ -649,8 +649,8 @@  discard block
 block discarded – undo
649 649
     * @return void
650 650
     * @see set_object
651 651
     */
652
-    function set_jasp_handler ($jasp_method) {
653
-        $this->state_parser->handler_object_jasp =& $this->state_parser->handler_default;
652
+    function set_jasp_handler($jasp_method) {
653
+        $this->state_parser->handler_object_jasp = & $this->state_parser->handler_default;
654 654
         $this->state_parser->handler_method_jasp = $jasp_method;
655 655
     }
656 656
 
Please login to merge, or discard this patch.
framework/3rdParty/SafeHtml/TSafeHtmlParser.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      * @var array
136 136
      * @access public
137 137
      */
138
-    public $singleTags = array('area', 'br', 'img', 'input', 'hr', 'wbr', );
138
+    public $singleTags = array('area', 'br', 'img', 'input', 'hr', 'wbr',);
139 139
 
140 140
     /**
141 141
      * List of dangerous tags (such tags will be deleted)
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
      * @access public
145 145
      */
146 146
     public $deleteTags = array(
147
-        'applet', 'base',   'basefont', 'bgsound', 'blink',  'body',
148
-        'embed',  'frame',  'frameset', 'head',    'html',   'ilayer',
149
-        'iframe', 'layer',  'link',     'meta',    'object', 'style',
150
-        'title',  'script',
147
+        'applet', 'base', 'basefont', 'bgsound', 'blink', 'body',
148
+        'embed', 'frame', 'frameset', 'head', 'html', 'ilayer',
149
+        'iframe', 'layer', 'link', 'meta', 'object', 'style',
150
+        'title', 'script',
151 151
         );
152 152
 
153 153
     /**
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      * @var array
158 158
      * @access public
159 159
      */
160
-    public $deleteTagsContent = array('script', 'style', 'title', 'xml', );
160
+    public $deleteTagsContent = array('script', 'style', 'title', 'xml',);
161 161
 
162 162
     /**
163 163
      * Type of protocols filtering ('white' or 'black')
@@ -174,11 +174,11 @@  discard block
 block discarded – undo
174 174
      * @access public
175 175
      */
176 176
     public $blackProtocols = array(
177
-        'about',   'chrome',     'data',       'disk',     'hcp',
178
-        'help',    'javascript', 'livescript', 'lynxcgi',  'lynxexec',
179
-        'ms-help', 'ms-its',     'mhtml',      'mocha',    'opera',
180
-        'res',     'resource',   'shell',      'vbscript', 'view-source',
181
-        'vnd.ms.radio',          'wysiwyg',
177
+        'about', 'chrome', 'data', 'disk', 'hcp',
178
+        'help', 'javascript', 'livescript', 'lynxcgi', 'lynxexec',
179
+        'ms-help', 'ms-its', 'mhtml', 'mocha', 'opera',
180
+        'res', 'resource', 'shell', 'vbscript', 'view-source',
181
+        'vnd.ms.radio', 'wysiwyg',
182 182
         );
183 183
 
184 184
     /**
@@ -188,9 +188,9 @@  discard block
 block discarded – undo
188 188
      * @access public
189 189
      */
190 190
     public $whiteProtocols = array(
191
-        'ed2k',   'file', 'ftp',  'gopher', 'http',  'https',
192
-        'irc',    'mailto', 'news', 'nntp', 'telnet', 'webcal',
193
-        'xmpp',   'callto',
191
+        'ed2k', 'file', 'ftp', 'gopher', 'http', 'https',
192
+        'irc', 'mailto', 'news', 'nntp', 'telnet', 'webcal',
193
+        'xmpp', 'callto',
194 194
         );
195 195
 
196 196
     /**
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
      * @access public
214 214
      */
215 215
     public $cssKeywords = array(
216
-        'absolute', 'behavior',       'behaviour',   'content', 'expression',
217
-        'fixed',    'include-source', 'moz-binding',
216
+        'absolute', 'behavior', 'behaviour', 'content', 'expression',
217
+        'fixed', 'include-source', 'moz-binding',
218 218
         );
219 219
 
220 220
     /**
@@ -235,11 +235,11 @@  discard block
 block discarded – undo
235 235
      * @access public
236 236
      */
237 237
     public $closeParagraph = array(
238
-        'address', 'blockquote', 'center', 'dd',      'dir',       'div',
239
-        'dl',      'dt',         'h1',     'h2',      'h3',        'h4',
240
-        'h5',      'h6',         'hr',     'isindex', 'listing',   'marquee',
241
-        'menu',    'multicol',   'ol',     'p',       'plaintext', 'pre',
242
-        'table',   'ul',         'xmp',
238
+        'address', 'blockquote', 'center', 'dd', 'dir', 'div',
239
+        'dl', 'dt', 'h1', 'h2', 'h3', 'h4',
240
+        'h5', 'h6', 'hr', 'isindex', 'listing', 'marquee',
241
+        'menu', 'multicol', 'ol', 'p', 'plaintext', 'pre',
242
+        'table', 'ul', 'xmp',
243 243
         );
244 244
 
245 245
     /**
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
      */
251 251
     public $tableTags = array(
252 252
         'caption', 'col', 'colgroup', 'tbody', 'td', 'tfoot', 'th',
253
-        'thead',   'tr',
253
+        'thead', 'tr',
254 254
         );
255 255
 
256 256
     /**
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      * @var array
260 260
      * @access public
261 261
      */
262
-    public $listTags = array('dir', 'menu', 'ol', 'ul', 'dl', );
262
+    public $listTags = array('dir', 'menu', 'ol', 'ul', 'dl',);
263 263
 
264 264
     /**
265 265
      * List of dangerous attributes
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      * @var array
277 277
      * @access public
278 278
      */
279
-    public $attributesNS = array('xml:lang', );
279
+    public $attributesNS = array('xml:lang',);
280 280
 
281 281
     /**
282 282
      * Constructs class
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
         //making regular expressions based on Proto & CSS arrays
289 289
         foreach ($this->blackProtocols as $proto) {
290 290
             $preg = "/[\s\x01-\x1F]*";
291
-            for ($i=0; $i<strlen($proto); $i++) {
291
+            for ($i = 0; $i < strlen($proto); $i++) {
292 292
                 $preg .= $proto{$i} . "[\s\x01-\x1F]*";
293 293
             }
294 294
             $preg .= ":/i";
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
      * @return boolean
309 309
      * @access private
310 310
      */
311
-    private function _writeAttrs ($attrs)
311
+    private function _writeAttrs($attrs)
312 312
     {
313 313
         if (is_array($attrs)) {
314 314
             foreach ($attrs as $name => $value) {
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
 
367 367
                 $tempval = preg_replace_callback(
368 368
                         '/&#(\d+);?/m',
369
-                        function ($matches) {
369
+                        function($matches) {
370 370
                             return chr($matches[0]);
371 371
                         },
372 372
                         $value
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
 
375 375
                 $tempval = preg_replace_callback(
376 376
                         '/&#x([0-9a-f]+);?/mi',
377
-                        function ($matches) {
377
+                        function($matches) {
378 378
                             return chr(hexdec($matches[0]));
379 379
                         },
380 380
                         $tempval
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
         if (in_array($name, $this->deleteTagsContent)) {
420 420
             array_push($this->_dcStack, $name);
421
-            $this->_dcCounter[$name] = isset($this->_dcCounter[$name]) ? $this->_dcCounter[$name]+1 : 1;
421
+            $this->_dcCounter[$name] = isset($this->_dcCounter[$name]) ? $this->_dcCounter[$name] + 1 : 1;
422 422
         }
423 423
         if (count($this->_dcStack) != 0) {
424 424
             return true;
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 
457 457
         // LISTS: we should close <li> if <li> of the same level opening
458 458
         if ($name == 'li' && count($this->_liStack) &&
459
-            $this->_listScope == $this->_liStack[count($this->_liStack)-1])
459
+            $this->_listScope == $this->_liStack[count($this->_liStack) - 1])
460 460
         {
461 461
             $this->_closeHandler($parser, 'li');
462 462
         }
@@ -472,8 +472,8 @@  discard block
 block discarded – undo
472 472
         $this->_xhtml .= '<' . $name;
473 473
         $this->_writeAttrs($attrs);
474 474
         $this->_xhtml .= '>';
475
-        array_push($this->_stack,$name);
476
-        $this->_counter[$name] = isset($this->_counter[$name]) ? $this->_counter[$name]+1 : 1;
475
+        array_push($this->_stack, $name);
476
+        $this->_counter[$name] = isset($this->_counter[$name]) ? $this->_counter[$name] + 1 : 1;
477 477
         return true;
478 478
     }
479 479
 
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
      * @return string Processed (X)HTML document
575 575
      * @access public
576 576
      */
577
-    public function getXHTML ()
577
+    public function getXHTML()
578 578
     {
579 579
         while ($tag = array_pop($this->_stack)) {
580 580
             $this->_closeTag($tag);
@@ -602,12 +602,12 @@  discard block
 block discarded – undo
602 602
      * @return string Processed (X)HTML document
603 603
      * @access public
604 604
      */
605
-    public function parse($doc, $isUTF7=false)
605
+    public function parse($doc, $isUTF7 = false)
606 606
     {
607 607
 	   $this->clear();
608 608
 
609 609
        // Save all '<' symbols
610
-       $doc = preg_replace("/<(?=[^a-zA-Z\/\!\?\%])/", '&lt;', (string)$doc);
610
+       $doc = preg_replace("/<(?=[^a-zA-Z\/\!\?\%])/", '&lt;', (string) $doc);
611 611
 
612 612
        // Web documents shouldn't contains \x00 symbol
613 613
        $doc = str_replace("\x00", '', $doc);
@@ -616,16 +616,16 @@  discard block
 block discarded – undo
616 616
        $doc = str_replace("\xC0\xBC", '&lt;', $doc);
617 617
 
618 618
        // UTF-7 encoding ASCII decode
619
-       if($isUTF7)
619
+       if ($isUTF7)
620 620
             $doc = $this->repackUTF7($doc);
621 621
 
622 622
        // Instantiate the parser
623
-       $parser= new TSax3();
623
+       $parser = new TSax3();
624 624
 
625 625
        // Set up the parser
626 626
        $parser->set_object($this);
627 627
 
628
-       $parser->set_element_handler('_openHandler','_closeHandler');
628
+       $parser->set_element_handler('_openHandler', '_closeHandler');
629 629
        $parser->set_data_handler('_dataHandler');
630 630
        $parser->set_escape_handler('_escapeHandler');
631 631
 
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
      */
672 672
     private function repackUTF7Back($str)
673 673
     {
674
-       return $str[1].'+'.rtrim(base64_encode($str[2]), '=').'-';
674
+       return $str[1] . '+' . rtrim(base64_encode($str[2]), '=') . '-';
675 675
     }
676 676
 }
677 677
 
Please login to merge, or discard this patch.
framework/3rdParty/SafeHtml/HTMLSax3/Decorators.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     * @access protected
52 52
     */
53 53
     function __construct(&$orig_obj, $orig_method) {
54
-        $this->orig_obj =& $orig_obj;
54
+        $this->orig_obj = & $orig_obj;
55 55
         $this->orig_method = $orig_method;
56 56
     }
57 57
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     * @access protected
100 100
     */
101 101
     function __construct(&$orig_obj, $orig_open_method, $orig_close_method) {
102
-        $this->orig_obj =& $orig_obj;
102
+        $this->orig_obj = & $orig_obj;
103 103
         $this->orig_open_method = $orig_open_method;
104 104
         $this->orig_close_method = $orig_close_method;
105 105
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     * @param array tag attributes
111 111
     * @access protected
112 112
     */
113
-    function foldOpen(&$parser, $tag, $attrs=array(), $empty = FALSE) {
113
+    function foldOpen(&$parser, $tag, $attrs = array(), $empty = FALSE) {
114 114
         $this->orig_obj->{$this->orig_open_method}($parser, strtoupper($tag), $attrs, $empty);
115 115
     }
116 116
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     * @access protected
150 150
     */
151 151
     function __construct(&$orig_obj, $orig_method) {
152
-        $this->orig_obj =& $orig_obj;
152
+        $this->orig_obj = & $orig_obj;
153 153
         $this->orig_method = $orig_method;
154 154
     }
155 155
     /**
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
     * @access protected
160 160
     */
161 161
     function breakData(&$parser, $data) {
162
-        $data = explode("\n",$data);
163
-        foreach ( $data as $chunk ) {
162
+        $data = explode("\n", $data);
163
+        foreach ($data as $chunk) {
164 164
             $this->orig_obj->{$this->orig_method}($parser, $chunk);
165 165
         }
166 166
     }
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
     * @access protected
192 192
     */
193 193
     function __construct(&$orig_obj, $orig_method) {
194
-        $this->orig_obj =& $orig_obj;
194
+        $this->orig_obj = & $orig_obj;
195 195
         $this->orig_method = $orig_method;
196 196
     }
197 197
     /**
@@ -201,8 +201,8 @@  discard block
 block discarded – undo
201 201
     * @access protected
202 202
     */
203 203
     function breakData(&$parser, $data) {
204
-        $data = explode("\t",$data);
205
-        foreach ( $data as $chunk ) {
204
+        $data = explode("\t", $data);
205
+        foreach ($data as $chunk) {
206 206
             $this->orig_obj->{$this->orig_method}($this, $chunk);
207 207
         }
208 208
     }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     * @access protected
235 235
     */
236 236
     function __construct(&$orig_obj, $orig_method) {
237
-        $this->orig_obj =& $orig_obj;
237
+        $this->orig_obj = & $orig_obj;
238 238
         $this->orig_method = $orig_method;
239 239
     }
240 240
     /**
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
     * @access protected
245 245
     */
246 246
     function breakData(&$parser, $data) {
247
-        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
248
-        foreach ( $data as $chunk ) {
249
-            $chunk = html_entity_decode($chunk,ENT_NOQUOTES);
247
+        $data = preg_split('/(&.+?;)/', $data, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
248
+        foreach ($data as $chunk) {
249
+            $chunk = html_entity_decode($chunk, ENT_NOQUOTES);
250 250
             $this->orig_obj->{$this->orig_method}($this, $chunk);
251 251
         }
252 252
     }
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
 /**
255 255
 * Compatibility with older PHP versions
256 256
 */
257
-if (version_compare(phpversion(), '4.3', '<') && !function_exists('html_entity_decode') ) {
258
-    function html_entity_decode($str, $style=ENT_NOQUOTES) {
257
+if (version_compare(phpversion(), '4.3', '<') && !function_exists('html_entity_decode')) {
258
+    function html_entity_decode($str, $style = ENT_NOQUOTES) {
259 259
         return strtr($str,
260
-            array_flip(get_html_translation_table(HTML_ENTITIES,$style)));
260
+            array_flip(get_html_translation_table(HTML_ENTITIES, $style)));
261 261
     }
262 262
 }
263 263
 /**
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
     * @access protected
287 287
     */
288 288
     function __construct(&$orig_obj, $orig_method) {
289
-        $this->orig_obj =& $orig_obj;
289
+        $this->orig_obj = & $orig_obj;
290 290
         $this->orig_method = $orig_method;
291 291
     }
292 292
     /**
@@ -296,8 +296,8 @@  discard block
 block discarded – undo
296 296
     * @access protected
297 297
     */
298 298
     function breakData(&$parser, $data) {
299
-        $data = preg_split('/(&.+?;)/',$data,-1,PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
300
-        foreach ( $data as $chunk ) {
299
+        $data = preg_split('/(&.+?;)/', $data, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY);
300
+        foreach ($data as $chunk) {
301 301
             $this->orig_obj->{$this->orig_method}($this, $chunk);
302 302
         }
303 303
     }
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
     * @access protected
330 330
     */
331 331
     function __construct(&$orig_obj, $orig_method) {
332
-        $this->orig_obj =& $orig_obj;
332
+        $this->orig_obj = & $orig_obj;
333 333
         $this->orig_method = $orig_method;
334 334
     }
335 335
     /**
@@ -340,20 +340,20 @@  discard block
 block discarded – undo
340 340
     */
341 341
     function strip(&$parser, $data) {
342 342
         // Check for HTML comments first
343
-        if ( substr($data,0,2) == '--' ) {
343
+        if (substr($data, 0, 2) == '--') {
344 344
             $patterns = array(
345
-                '/^\-\-/',          // Opening comment: --
346
-                '/\-\-$/',          // Closing comment: --
345
+                '/^\-\-/', // Opening comment: --
346
+                '/\-\-$/', // Closing comment: --
347 347
             );
348
-            $data = preg_replace($patterns,'',$data);
348
+            $data = preg_replace($patterns, '', $data);
349 349
 
350 350
         // Check for XML CDATA sections (note: don't do both!)
351
-        } else if ( substr($data,0,1) == '[' ) {
351
+        } else if (substr($data, 0, 1) == '[') {
352 352
             $patterns = array(
353 353
                 '/^\[.*CDATA.*\[/s', // Opening CDATA
354
-                '/\].*\]$/s',       // Closing CDATA
354
+                '/\].*\]$/s', // Closing CDATA
355 355
                 );
356
-            $data = preg_replace($patterns,'',$data);
356
+            $data = preg_replace($patterns, '', $data);
357 357
         }
358 358
 
359 359
         $this->orig_obj->{$this->orig_method}($this, $data);
Please login to merge, or discard this patch.
framework/3rdParty/SafeHtml/HTMLSax3/States.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 * @package System.Security.SafeHtml
43 43
 * @access protected
44 44
 */
45
-class TSax3_StartingState  {
45
+class TSax3_StartingState {
46 46
     /**
47 47
     * @param TSax3_StateParser subclass
48 48
     * @return constant TSAX3_STATE_TAG
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     * @access protected
71 71
     */
72 72
     function parse(&$context) {
73
-        switch($context->ScanCharacter()) {
73
+        switch ($context->ScanCharacter()) {
74 74
         case '/':
75 75
             return TSax3_StateParser::TSAX3_STATE_CLOSING_TAG;
76 76
             break;
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
                 $context->ignoreWhitespace();
144 144
                 $char = $context->ScanCharacter();
145 145
                 if ($char == '"') {
146
-                    $attributevalue= $context->scanUntilString('"');
146
+                    $attributevalue = $context->scanUntilString('"');
147 147
                     $context->IgnoreCharacter();
148 148
                 } else if ($char == "'") {
149 149
                     $attributevalue = $context->scanUntilString("'");
@@ -222,10 +222,10 @@  discard block
 block discarded – undo
222 222
                 $context->unscanCharacter();
223 223
                 $text = $context->scanUntilString('>');
224 224
             }
225
-        } else if ( $char == '[') {
225
+        } else if ($char == '[') {
226 226
             $context->unscanCharacter();
227 227
             $text = $context->scanUntilString(']>');
228
-            $text.= $context->scanCharacter();
228
+            $text .= $context->scanCharacter();
229 229
         } else {
230 230
             $context->unscanCharacter();
231 231
             $text = $context->scanUntilString('>');
Please login to merge, or discard this patch.
framework/3rdParty/Parsedown/Parsedown.php 1 patch
Spacing   +63 added lines, -63 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@  discard block
 block discarded – undo
105 105
             {
106 106
                 case 'fenced':
107 107
 
108
-                    if ( ! isset($block['closed']))
108
+                    if (!isset($block['closed']))
109 109
                     {
110
-                        if (preg_match('/^[ ]*'.$block['fence'][0].'{3,}[ ]*$/', $line))
110
+                        if (preg_match('/^[ ]*' . $block['fence'][0] . '{3,}[ ]*$/', $line))
111 111
                         {
112 112
                             $block['closed'] = true;
113 113
                         }
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
 
129 129
                 case 'markup':
130 130
 
131
-                    if ( ! isset($block['closed']))
131
+                    if (!isset($block['closed']))
132 132
                     {
133 133
                         if (strpos($line, $block['start']) !== false) # opening tag
134 134
                         {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                             }
148 148
                         }
149 149
 
150
-                        $block['text'] .= "\n".$line;
150
+                        $block['text'] .= "\n" . $line;
151 151
 
152 152
                         continue 2;
153 153
                     }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
             $indentation = 0;
161 161
 
162
-            while(isset($line[$indentation]) and $line[$indentation] === ' ')
162
+            while (isset($line[$indentation]) and $line[$indentation] === ' ')
163 163
             {
164 164
                 $indentation++;
165 165
             }
@@ -181,11 +181,11 @@  discard block
 block discarded – undo
181 181
             {
182 182
                 case 'quote':
183 183
 
184
-                    if ( ! isset($block['interrupted']))
184
+                    if (!isset($block['interrupted']))
185 185
                     {
186 186
                         $line = preg_replace('/^[ ]*>[ ]?/', '', $line);
187 187
 
188
-                        $block['lines'] []= $line;
188
+                        $block['lines'] [] = $line;
189 189
 
190 190
                         continue 2;
191 191
                     }
@@ -194,11 +194,11 @@  discard block
 block discarded – undo
194 194
 
195 195
                 case 'li':
196 196
 
197
-                    if ($block['indentation'] === $indentation and preg_match('/^'.$block['marker'].'[ ]+(.*)/', $outdented_line, $matches))
197
+                    if ($block['indentation'] === $indentation and preg_match('/^' . $block['marker'] . '[ ]+(.*)/', $outdented_line, $matches))
198 198
                     {
199 199
                         unset($block['last']);
200 200
 
201
-                        $blocks []= $block;
201
+                        $blocks [] = $block;
202 202
 
203 203
                         $block['last'] = true;
204 204
                         $block['lines'] = array($matches[1]);
@@ -209,21 +209,21 @@  discard block
 block discarded – undo
209 209
                         continue 2;
210 210
                     }
211 211
 
212
-                    if ( ! isset($block['interrupted']))
212
+                    if (!isset($block['interrupted']))
213 213
                     {
214
-                        $line = preg_replace('/^[ ]{0,'.$block['baseline'].'}/', '', $line);
214
+                        $line = preg_replace('/^[ ]{0,' . $block['baseline'] . '}/', '', $line);
215 215
 
216
-                        $block['lines'] []= $line;
216
+                        $block['lines'] [] = $line;
217 217
 
218 218
                         continue 2;
219 219
                     }
220 220
                     elseif ($line[0] === ' ')
221 221
                     {
222
-                        $block['lines'] []= '';
222
+                        $block['lines'] [] = '';
223 223
 
224
-                        $line = preg_replace('/^[ ]{0,'.$block['baseline'].'}/', '', $line);
224
+                        $line = preg_replace('/^[ ]{0,' . $block['baseline'] . '}/', '', $line);
225 225
 
226
-                        $block['lines'] []= $line;
226
+                        $block['lines'] [] = $line;
227 227
 
228 228
                         unset($block['interrupted']);
229 229
 
@@ -254,11 +254,11 @@  discard block
 block discarded – undo
254 254
                                 unset($block['interrupted']);
255 255
                             }
256 256
 
257
-                            $block['text'] .= "\n".$code_line;
257
+                            $block['text'] .= "\n" . $code_line;
258 258
                         }
259 259
                         else
260 260
                         {
261
-                            $blocks []= $block;
261
+                            $blocks [] = $block;
262 262
 
263 263
                             $block = array(
264 264
                                 'type' => 'code',
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
                     if (isset($line[1]))
279 279
                     {
280
-                        $blocks []= $block;
280
+                        $blocks [] = $block;
281 281
 
282 282
                         $level = 1;
283 283
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
                             $name = $substring;
361 361
                         }
362 362
 
363
-                        if ( ! ctype_alpha($name))
363
+                        if (!ctype_alpha($name))
364 364
                         {
365 365
                             break;
366 366
                         }
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
                             break;
371 371
                         }
372 372
 
373
-                        $blocks []= $block;
373
+                        $blocks [] = $block;
374 374
 
375 375
                         if (isset($is_self_closing))
376 376
                         {
@@ -387,8 +387,8 @@  discard block
 block discarded – undo
387 387
                         $block = array(
388 388
                             'type' => 'markup',
389 389
                             'text' => $outdented_line,
390
-                            'start' => '<'.$name.'>',
391
-                            'end' => '</'.$name.'>',
390
+                            'start' => '<' . $name . '>',
391
+                            'end' => '</' . $name . '>',
392 392
                             'depth' => 0,
393 393
                         );
394 394
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
                     if (preg_match('/^>[ ]?(.*)/', $outdented_line, $matches))
410 410
                     {
411
-                        $blocks []= $block;
411
+                        $blocks [] = $block;
412 412
 
413 413
                         $block = array(
414 414
                             'type' => 'quote',
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
 
506 506
                     if (preg_match('/^([`]{3,}|[~]{3,})[ ]*(\S+)?[ ]*$/', $outdented_line, $matches))
507 507
                     {
508
-                        $blocks []= $block;
508
+                        $blocks [] = $block;
509 509
 
510 510
                         $block = array(
511 511
                             'type' => 'fenced',
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
 
533 533
                     if (preg_match('/^([-*_])([ ]{0,2}\1){2,}[ ]*$/', $outdented_line))
534 534
                     {
535
-                        $blocks []= $block;
535
+                        $blocks [] = $block;
536 536
 
537 537
                         $block = array(
538 538
                             'type' => 'rule',
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 
546 546
                     if (preg_match('/^([*+-][ ]+)(.*)/', $outdented_line, $matches))
547 547
                     {
548
-                        $blocks []= $block;
548
+                        $blocks [] = $block;
549 549
 
550 550
                         $baseline = $indentation + strlen($matches[1]);
551 551
 
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
                             'lines' => array(),
560 560
                         );
561 561
 
562
-                        $block['lines'] []= preg_replace('/^[ ]{0,4}/', '', $matches[2]);
562
+                        $block['lines'] [] = preg_replace('/^[ ]{0,4}/', '', $matches[2]);
563 563
 
564 564
                         continue 2;
565 565
                     }
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
 
570 570
             if ($outdented_line[0] <= '9' and preg_match('/^(\d+[.][ ]+)(.*)/', $outdented_line, $matches))
571 571
             {
572
-                $blocks []= $block;
572
+                $blocks [] = $block;
573 573
 
574 574
                 $baseline = $indentation + strlen($matches[1]);
575 575
 
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
                     'lines' => array(),
585 585
                 );
586 586
 
587
-                $block['lines'] []= preg_replace('/^[ ]{0,4}/', '', $matches[2]);
587
+                $block['lines'] [] = preg_replace('/^[ ]{0,4}/', '', $matches[2]);
588 588
 
589 589
                 continue;
590 590
             }
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
             {
596 596
                 if (isset($block['interrupted']))
597 597
                 {
598
-                    $blocks []= $block;
598
+                    $blocks [] = $block;
599 599
 
600 600
                     $block['text'] = $line;
601 601
 
@@ -608,12 +608,12 @@  discard block
 block discarded – undo
608 608
                         $block['text'] .= '  ';
609 609
                     }
610 610
 
611
-                    $block['text'] .= "\n".$line;
611
+                    $block['text'] .= "\n" . $line;
612 612
                 }
613 613
             }
614 614
             else
615 615
             {
616
-                $blocks []= $block;
616
+                $blocks [] = $block;
617 617
 
618 618
                 $block = array(
619 619
                     'type' => 'paragraph',
@@ -622,7 +622,7 @@  discard block
 block discarded – undo
622 622
             }
623 623
         }
624 624
 
625
-        $blocks []= $block;
625
+        $blocks [] = $block;
626 626
 
627 627
         unset($blocks[0]);
628 628
 
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
                     {
643 643
                         if (isset($block['interrupted']))
644 644
                         {
645
-                            $markup .= "\n".'<p>'.$text.'</p>'."\n";
645
+                            $markup .= "\n" . '<p>' . $text . '</p>' . "\n";
646 646
                         }
647 647
                         else
648 648
                         {
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
                     }
657 657
                     else
658 658
                     {
659
-                        $markup .= '<p>'.$text.'</p>'."\n";
659
+                        $markup .= '<p>' . $text . '</p>' . "\n";
660 660
                     }
661 661
 
662 662
                     break;
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
 
666 666
                     $text = $this->parse_block_elements($block['lines']);
667 667
 
668
-                    $markup .= '<blockquote>'."\n".$text.'</blockquote>'."\n";
668
+                    $markup .= '<blockquote>' . "\n" . $text . '</blockquote>' . "\n";
669 669
 
670 670
                     break;
671 671
 
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 
674 674
                     $text = htmlspecialchars($block['text'], ENT_NOQUOTES, 'UTF-8');
675 675
 
676
-                    $markup .= '<pre><code>'.$text.'</code></pre>'."\n";
676
+                    $markup .= '<pre><code>' . $text . '</code></pre>' . "\n";
677 677
 
678 678
                     break;
679 679
 
@@ -685,10 +685,10 @@  discard block
 block discarded – undo
685 685
 
686 686
                     if (isset($block['language']))
687 687
                     {
688
-                        $markup .= ' class="language-'.$block['language'].'"';
688
+                        $markup .= ' class="language-' . $block['language'] . '"';
689 689
                     }
690 690
 
691
-                    $markup .= '>'.$text.'</code></pre>'."\n";
691
+                    $markup .= '>' . $text . '</code></pre>' . "\n";
692 692
 
693 693
                     break;
694 694
 
@@ -696,13 +696,13 @@  discard block
 block discarded – undo
696 696
 
697 697
                     $text = $this->parse_span_elements($block['text']);
698 698
 
699
-                    $markup .= '<h'.$block['level'].'>'.$text.'</h'.$block['level'].'>'."\n";
699
+                    $markup .= '<h' . $block['level'] . '>' . $text . '</h' . $block['level'] . '>' . "\n";
700 700
 
701 701
                     break;
702 702
 
703 703
                 case 'rule':
704 704
 
705
-                    $markup .= '<hr />'."\n";
705
+                    $markup .= '<hr />' . "\n";
706 706
 
707 707
                     break;
708 708
 
@@ -712,36 +712,36 @@  discard block
 block discarded – undo
712 712
                     {
713 713
                         $type = isset($block['ordered']) ? 'ol' : 'ul';
714 714
 
715
-                        $markup .= '<'.$type.'>'."\n";
715
+                        $markup .= '<' . $type . '>' . "\n";
716 716
                     }
717 717
 
718
-                    if (isset($block['interrupted']) and ! isset($block['last']))
718
+                    if (isset($block['interrupted']) and !isset($block['last']))
719 719
                     {
720
-                        $block['lines'] []= '';
720
+                        $block['lines'] [] = '';
721 721
                     }
722 722
 
723 723
                     $text = $this->parse_block_elements($block['lines'], 'li');
724 724
 
725
-                    $markup .= '<li>'.$text.'</li>'."\n";
725
+                    $markup .= '<li>' . $text . '</li>' . "\n";
726 726
 
727 727
                     if (isset($block['last']))
728 728
                     {
729 729
                         $type = isset($block['ordered']) ? 'ol' : 'ul';
730 730
 
731
-                        $markup .= '</'.$type.'>'."\n";
731
+                        $markup .= '</' . $type . '>' . "\n";
732 732
                     }
733 733
 
734 734
                     break;
735 735
 
736 736
                 case 'markup':
737 737
 
738
-                    $markup .= $block['text']."\n";
738
+                    $markup .= $block['text'] . "\n";
739 739
 
740 740
                     break;
741 741
 
742 742
                 default:
743 743
 
744
-                    $markup .= $block['text']."\n";
744
+                    $markup .= $block['text'] . "\n";
745 745
             }
746 746
         }
747 747
 
@@ -809,7 +809,7 @@  discard block
 block discarded – undo
809 809
             {
810 810
                 case "  \n":
811 811
 
812
-                    $markup .= '<br />'."\n";
812
+                    $markup .= '<br />' . "\n";
813 813
 
814 814
                     $offset = 3;
815 815
 
@@ -885,11 +885,11 @@  discard block
 block discarded – undo
885 885
 
886 886
                         if ($element['!'])
887 887
                         {
888
-                            $markup .= '<img alt="'.$element['a'].'" src="'.$element['»'].'"';
888
+                            $markup .= '<img alt="' . $element['a'] . '" src="' . $element['»'] . '"';
889 889
 
890 890
                             if (isset($element['#']))
891 891
                             {
892
-                                $markup .= ' title="'.$element['#'].'"';
892
+                                $markup .= ' title="' . $element['#'] . '"';
893 893
                             }
894 894
 
895 895
                             $markup .= ' />';
@@ -898,14 +898,14 @@  discard block
 block discarded – undo
898 898
                         {
899 899
                             $element['a'] = $this->parse_span_elements($element['a'], $markers);
900 900
 
901
-                            $markup .= '<a href="'.$element['»'].'"';
901
+                            $markup .= '<a href="' . $element['»'] . '"';
902 902
 
903 903
                             if (isset($element['#']))
904 904
                             {
905
-                                $markup .= ' title="'.$element['#'].'"';
905
+                                $markup .= ' title="' . $element['#'] . '"';
906 906
                             }
907 907
 
908
-                            $markup .= '>'.$element['a'].'</a>';
908
+                            $markup .= '>' . $element['a'] . '</a>';
909 909
                         }
910 910
 
911 911
                         unset($element);
@@ -944,14 +944,14 @@  discard block
 block discarded – undo
944 944
                         $markers[] = $closest_marker;
945 945
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
946 946
 
947
-                        $markup .= '<strong>'.$matches[1].'</strong>';
947
+                        $markup .= '<strong>' . $matches[1] . '</strong>';
948 948
                     }
949 949
                     elseif (preg_match(self::$em_regex[$closest_marker], $text, $matches))
950 950
                     {
951 951
                         $markers[] = $closest_marker;
952 952
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
953 953
 
954
-                        $markup .= '<em>'.$matches[1].'</em>';
954
+                        $markup .= '<em>' . $matches[1] . '</em>';
955 955
                     }
956 956
 
957 957
                     if (isset($matches) and $matches)
@@ -977,13 +977,13 @@  discard block
 block discarded – undo
977 977
                             $element_url = str_replace('&', '&amp;', $element_url);
978 978
                             $element_url = str_replace('<', '&lt;', $element_url);
979 979
 
980
-                            $markup .= '<a href="'.$element_url.'">'.$element_url.'</a>';
980
+                            $markup .= '<a href="' . $element_url . '">' . $element_url . '</a>';
981 981
 
982 982
                             $offset = strlen($matches[0]);
983 983
                         }
984 984
                         elseif (strpos($text, '@') > 1 and preg_match('/<(\S+?@\S+?)>/', $text, $matches))
985 985
                         {
986
-                            $markup .= '<a href="mailto:'.$matches[1].'">'.$matches[1].'</a>';
986
+                            $markup .= '<a href="mailto:' . $matches[1] . '">' . $matches[1] . '</a>';
987 987
 
988 988
                             $offset = strlen($matches[0]);
989 989
                         }
@@ -1033,7 +1033,7 @@  discard block
 block discarded – undo
1033 1033
                         $element_text = $matches[2];
1034 1034
                         $element_text = htmlspecialchars($element_text, ENT_NOQUOTES, 'UTF-8');
1035 1035
 
1036
-                        $markup .= '<code>'.$element_text.'</code>';
1036
+                        $markup .= '<code>' . $element_text . '</code>';
1037 1037
 
1038 1038
                         $offset = strlen($matches[0]);
1039 1039
                     }
@@ -1054,7 +1054,7 @@  discard block
 block discarded – undo
1054 1054
                         $element_url = str_replace('&', '&amp;', $element_url);
1055 1055
                         $element_url = str_replace('<', '&lt;', $element_url);
1056 1056
 
1057
-                        $markup .= '<a href="'.$element_url.'">'.$element_url.'</a>';
1057
+                        $markup .= '<a href="' . $element_url . '">' . $element_url . '</a>';
1058 1058
 
1059 1059
                         $offset = strlen($matches[0]);
1060 1060
                     }
@@ -1073,7 +1073,7 @@  discard block
 block discarded – undo
1073 1073
                     {
1074 1074
                         $matches[1] = $this->parse_span_elements($matches[1], $markers);
1075 1075
 
1076
-                        $markup .= '<del>'.$matches[1].'</del>';
1076
+                        $markup .= '<del>' . $matches[1] . '</del>';
1077 1077
 
1078 1078
                         $offset = strlen($matches[0]);
1079 1079
                     }
@@ -1124,8 +1124,8 @@  discard block
 block discarded – undo
1124 1124
     private static $text_level_elements = array(
1125 1125
         'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
1126 1126
         'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
1127
-        'i', 'rp', 'sub', 'code',          'strike', 'marquee',
1128
-        'q', 'rt', 'sup', 'font',          'strong',
1127
+        'i', 'rp', 'sub', 'code', 'strike', 'marquee',
1128
+        'q', 'rt', 'sup', 'font', 'strong',
1129 1129
         's', 'tt', 'var', 'mark',
1130 1130
         'u', 'xm', 'wbr', 'nobr',
1131 1131
                           'ruby',
Please login to merge, or discard this patch.
framework/3rdParty/TextHighlighter/Text/Highlighter.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -32,12 +32,12 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * use numbered list
34 34
      */
35
-    define ('HL_NUMBERS_LI'    ,    1);
35
+    define('HL_NUMBERS_LI', 1);
36 36
     /**
37 37
      * Use 2-column table with line numbers in left column and code in  right column.
38 38
      * Forces $options['tag'] = HL_TAG_PRE
39 39
      */
40
-    define ('HL_NUMBERS_TABLE'    , 2);
40
+    define('HL_NUMBERS_TABLE', 2);
41 41
     /**#@-*/
42 42
 }
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 /**
47 47
  * for our purpose, it is infinity
48 48
  */
49
-define ('HL_INFINITY',      1000000000);
49
+define('HL_INFINITY', 1000000000);
50 50
 
51 51
 // }}}
52 52
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             $defines = array();
164 164
         }
165 165
         foreach ($this->_conditions as $name => $actions) {
166
-            foreach($actions as $action) {
166
+            foreach ($actions as $action) {
167 167
                 $present = in_array($name, $defines);
168 168
                 if (!$action[1]) {
169 169
                     $present = !$present;
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     public static function factory($lang, $options = array())
198 198
     {
199 199
         $lang = strtoupper($lang);
200
-        $langFile = dirname(__FILE__)."/Highlighter/$lang.php";
200
+        $langFile = dirname(__FILE__) . "/Highlighter/$lang.php";
201 201
         if (is_file($langFile))
202 202
         	include_once $langFile;
203 203
         else
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         } else {
257 257
             $endpos = -1;
258 258
         }
259
-        preg_match ($this->_regs[$this->_state], $this->_str, $m, PREG_OFFSET_CAPTURE, $this->_pos);
259
+        preg_match($this->_regs[$this->_state], $this->_str, $m, PREG_OFFSET_CAPTURE, $this->_pos);
260 260
         $n = 1;
261 261
 
262 262
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             if (!isset($m[$n])) {
265 265
                 break;
266 266
             }
267
-            if ($m[$n][1]>-1 && ($endpos == -1 || $m[$n][1] < $endpos)) {
267
+            if ($m[$n][1] > -1 && ($endpos == -1 || $m[$n][1] < $endpos)) {
268 268
                 if ($this->_states[$this->_state][$i] != -1) {
269 269
                     $this->_tokenStack[] = array($this->_delim[$this->_state][$i], $m[$n][0]);
270 270
                 } else {
@@ -272,17 +272,17 @@  discard block
 block discarded – undo
272 272
                     if (isset($this->_parts[$this->_state][$i])) {
273 273
                         $parts = array();
274 274
                         $partpos = $m[$n][1];
275
-                        for ($j=1; $j<=$count; $j++) {
276
-                            if ($m[$j+$n][1] < 0) {
275
+                        for ($j = 1; $j <= $count; $j++) {
276
+                            if ($m[$j + $n][1] < 0) {
277 277
                                 continue;
278 278
                             }
279 279
                             if (isset($this->_parts[$this->_state][$i][$j])) {
280
-                                if ($m[$j+$n][1] > $partpos) {
281
-                                    array_unshift($parts, array($inner, substr($this->_str, $partpos, $m[$j+$n][1]-$partpos)));
280
+                                if ($m[$j + $n][1] > $partpos) {
281
+                                    array_unshift($parts, array($inner, substr($this->_str, $partpos, $m[$j + $n][1] - $partpos)));
282 282
                                 }
283
-                                array_unshift($parts, array($this->_parts[$this->_state][$i][$j], $m[$j+$n][0]));
283
+                                array_unshift($parts, array($this->_parts[$this->_state][$i][$j], $m[$j + $n][0]));
284 284
                             }
285
-                            $partpos = $m[$j+$n][1] + strlen($m[$j+$n][0]);
285
+                            $partpos = $m[$j + $n][1] + strlen($m[$j + $n][0]);
286 286
                         }
287 287
                         if ($partpos < $m[$n][1] + strlen($m[$n][0])) {
288 288
                             array_unshift($parts, array($inner, substr($this->_str, $partpos, $m[$n][1] - $partpos + strlen($m[$n][0]))));
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                     }
303 303
                 }
304 304
                 if ($m[$n][1] > $this->_pos) {
305
-                    $this->_tokenStack[] = array($this->_lastinner, substr($this->_str, $this->_pos, $m[$n][1]-$this->_pos));
305
+                    $this->_tokenStack[] = array($this->_lastinner, substr($this->_str, $this->_pos, $m[$n][1] - $this->_pos));
306 306
                 }
307 307
                 $this->_pos = $m[$n][1] + strlen($m[$n][0]);
308 308
                 if ($this->_states[$this->_state][$i] != -1) {
@@ -313,13 +313,13 @@  discard block
 block discarded – undo
313 313
                     $this->_state = $this->_states[$this->_state][$i];
314 314
                     $this->_endpattern = $this->_end[$this->_state];
315 315
                     if ($this->_subst[$l][$i]) {
316
-                        for ($k=0; $k<=$this->_counts[$l][$i]; $k++) {
317
-                            if (!isset($m[$i+$k])) {
316
+                        for ($k = 0; $k <= $this->_counts[$l][$i]; $k++) {
317
+                            if (!isset($m[$i + $k])) {
318 318
                                 break;
319 319
                             }
320
-                            $quoted = preg_quote($m[$n+$k][0], '/');
321
-                            $this->_endpattern = str_replace('%'.$k.'%', $quoted, $this->_endpattern);
322
-                            $this->_endpattern = str_replace('%b'.$k.'%', $this->_matchingBrackets($quoted), $this->_endpattern);
320
+                            $quoted = preg_quote($m[$n + $k][0], '/');
321
+                            $this->_endpattern = str_replace('%' . $k . '%', $quoted, $this->_endpattern);
322
+                            $this->_endpattern = str_replace('%b' . $k . '%', $this->_matchingBrackets($quoted), $this->_endpattern);
323 323
                         }
324 324
                     }
325 325
                 }
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         if ($endpos > -1) {
332 332
             $this->_tokenStack[] = array($this->_lastdelim, $endmatch);
333 333
             if ($endpos > $this->_pos) {
334
-                $this->_tokenStack[] = array($this->_lastinner, substr($this->_str, $this->_pos, $endpos-$this->_pos));
334
+                $this->_tokenStack[] = array($this->_lastinner, substr($this->_str, $this->_pos, $endpos - $this->_pos));
335 335
             }
336 336
             list($this->_state, $this->_lastdelim, $this->_lastinner, $this->_endpattern) = array_pop($this->_stack);
337 337
             $this->_pos = $endpos + strlen($endmatch);
Please login to merge, or discard this patch.
framework/3rdParty/TextHighlighter/Text/Highlighter/ABAP.php 1 patch
Spacing   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
      * @param array  $options
46 46
      * @access public
47 47
      */
48
-    function __construct($options=array())
48
+    function __construct($options = array())
49 49
     {
50 50
 
51 51
         $this->_options = $options;
52
-        $this->_regs = array (
52
+        $this->_regs = array(
53 53
             -1 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)^\\*|")|((?i)\')|((?i)[a-z_\\-]\\w*)/',
54 54
             0 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)^\\*|")|((?i)\')|((?i)0[xX][\\da-f]+)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)[a-z_\\-]\\w*)/',
55 55
             1 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)^\\*|")|((?i)\')|((?i)0[xX][\\da-f]+)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)[a-z_\\-]\\w*)/',
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
             3 => '//',
58 58
             4 => '//',
59 59
         );
60
-        $this->_counts = array (
60
+        $this->_counts = array(
61 61
             -1 =>
62
-            array (
62
+            array(
63 63
                 0 => 0,
64 64
                 1 => 0,
65 65
                 2 => 0,
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 5 => 0,
69 69
             ),
70 70
             0 =>
71
-            array (
71
+            array(
72 72
                 0 => 0,
73 73
                 1 => 0,
74 74
                 2 => 0,
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
                 9 => 0,
82 82
             ),
83 83
             1 =>
84
-            array (
84
+            array(
85 85
                 0 => 0,
86 86
                 1 => 0,
87 87
                 2 => 0,
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 9 => 0,
95 95
             ),
96 96
             2 =>
97
-            array (
97
+            array(
98 98
                 0 => 0,
99 99
                 1 => 0,
100 100
                 2 => 0,
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
                 9 => 0,
108 108
             ),
109 109
             3 =>
110
-            array (
110
+            array(
111 111
             ),
112 112
             4 =>
113
-            array (
113
+            array(
114 114
             ),
115 115
         );
116
-        $this->_delim = array (
116
+        $this->_delim = array(
117 117
             -1 =>
118
-            array (
118
+            array(
119 119
                 0 => 'brackets',
120 120
                 1 => 'brackets',
121 121
                 2 => 'brackets',
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 5 => '',
125 125
             ),
126 126
             0 =>
127
-            array (
127
+            array(
128 128
                 0 => 'brackets',
129 129
                 1 => 'brackets',
130 130
                 2 => 'brackets',
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 9 => '',
138 138
             ),
139 139
             1 =>
140
-            array (
140
+            array(
141 141
                 0 => 'brackets',
142 142
                 1 => 'brackets',
143 143
                 2 => 'brackets',
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
                 9 => '',
151 151
             ),
152 152
             2 =>
153
-            array (
153
+            array(
154 154
                 0 => 'brackets',
155 155
                 1 => 'brackets',
156 156
                 2 => 'brackets',
@@ -163,15 +163,15 @@  discard block
 block discarded – undo
163 163
                 9 => '',
164 164
             ),
165 165
             3 =>
166
-            array (
166
+            array(
167 167
             ),
168 168
             4 =>
169
-            array (
169
+            array(
170 170
             ),
171 171
         );
172
-        $this->_inner = array (
172
+        $this->_inner = array(
173 173
             -1 =>
174
-            array (
174
+            array(
175 175
                 0 => 'code',
176 176
                 1 => 'code',
177 177
                 2 => 'code',
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
                 5 => 'identifier',
181 181
             ),
182 182
             0 =>
183
-            array (
183
+            array(
184 184
                 0 => 'code',
185 185
                 1 => 'code',
186 186
                 2 => 'code',
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                 9 => 'identifier',
194 194
             ),
195 195
             1 =>
196
-            array (
196
+            array(
197 197
                 0 => 'code',
198 198
                 1 => 'code',
199 199
                 2 => 'code',
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 9 => 'identifier',
207 207
             ),
208 208
             2 =>
209
-            array (
209
+            array(
210 210
                 0 => 'code',
211 211
                 1 => 'code',
212 212
                 2 => 'code',
@@ -219,22 +219,22 @@  discard block
 block discarded – undo
219 219
                 9 => 'identifier',
220 220
             ),
221 221
             3 =>
222
-            array (
222
+            array(
223 223
             ),
224 224
             4 =>
225
-            array (
225
+            array(
226 226
             ),
227 227
         );
228
-        $this->_end = array (
228
+        $this->_end = array(
229 229
             0 => '/(?i)\\}/',
230 230
             1 => '/(?i)\\)/',
231 231
             2 => '/(?i)\\]/',
232 232
             3 => '/(?mi)$/',
233 233
             4 => '/(?i)\'/',
234 234
         );
235
-        $this->_states = array (
235
+        $this->_states = array(
236 236
             -1 =>
237
-            array (
237
+            array(
238 238
                 0 => 0,
239 239
                 1 => 1,
240 240
                 2 => 2,
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
                 5 => -1,
244 244
             ),
245 245
             0 =>
246
-            array (
246
+            array(
247 247
                 0 => 0,
248 248
                 1 => 1,
249 249
                 2 => 2,
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
                 9 => -1,
257 257
             ),
258 258
             1 =>
259
-            array (
259
+            array(
260 260
                 0 => 0,
261 261
                 1 => 1,
262 262
                 2 => 2,
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 9 => -1,
270 270
             ),
271 271
             2 =>
272
-            array (
272
+            array(
273 273
                 0 => 0,
274 274
                 1 => 1,
275 275
                 2 => 2,
@@ -282,115 +282,115 @@  discard block
 block discarded – undo
282 282
                 9 => -1,
283 283
             ),
284 284
             3 =>
285
-            array (
285
+            array(
286 286
             ),
287 287
             4 =>
288
-            array (
288
+            array(
289 289
             ),
290 290
         );
291
-        $this->_keywords = array (
291
+        $this->_keywords = array(
292 292
             -1 =>
293
-            array (
293
+            array(
294 294
                 0 => -1,
295 295
                 1 => -1,
296 296
                 2 => -1,
297 297
                 3 => -1,
298 298
                 4 => -1,
299 299
                 5 =>
300
-                array (
300
+                array(
301 301
                     'sy' => '/^((?i)screen-name|screen-group1|screen-group2|screen-group3|screen-group4|screen-required|screen-input|screen-output|screen-intensified|screen-invisible|screen-length|screen-active|sy-index|sy-pagno|sy-tabix|sy-tfill|sy-tlopc|sy-tmaxl|sy-toccu|sy-ttabc|sy-tstis|sy-ttabi|sy-dbcnt|sy-fdpos|sy-colno|sy-linct|sy-linno|sy-linsz|sy-pagct|sy-macol|sy-marow|sy-tleng|sy-sfoff|sy-willi|sy-lilli|sy-subrc|sy-fleng|sy-cucol|sy-curow|sy-lsind|sy-listi|sy-stepl|sy-tpagi|sy-winx1|sy-winy1|sy-winx2|sy-winy2|sy-winco|sy-winro|sy-windi|sy-srows|sy-scols|sy-loopc|sy-folen|sy-fodec|sy-tzone|sy-dayst|sy-ftype|sy-appli|sy-fdayw|sy-ccurs|sy-ccurt|sy-debug|sy-ctype|sy-input|sy-langu|sy-modno|sy-batch|sy-binpt|sy-calld|sy-dynnr|sy-dyngr|sy-newpa|sy-pri40|sy-rstrt|sy-wtitl|sy-cpage|sy-dbnam|sy-mandt|sy-prefx|sy-fmkey|sy-pexpi|sy-prini|sy-primm|sy-prrel|sy-playo|sy-prbig|sy-playp|sy-prnew|sy-prlog|sy-pdest|sy-plist|sy-pauth|sy-prdsn|sy-pnwpa|sy-callr|sy-repi2|sy-rtitl|sy-prrec|sy-prtxt|sy-prabt|sy-lpass|sy-nrpag|sy-paart|sy-prcop|sy-batzs|sy-bspld|sy-brep4|sy-batzo|sy-batzd|sy-batzw|sy-batzm|sy-ctabl|sy-dbsys|sy-dcsys|sy-macdb|sy-sysid|sy-opsys|sy-pfkey|sy-saprl|sy-tcode|sy-ucomm|sy-cfwae|sy-chwae|sy-spono|sy-sponr|sy-waers|sy-cdate|sy-datum|sy-slset|sy-subty|sy-subcs|sy-group|sy-ffile|sy-uzeit|sy-dsnam|sy-repid|sy-tabid|sy-tfdsn|sy-uname|sy-lstat|sy-abcde|sy-marky|sy-sfnam|sy-tname|sy-msgli|sy-title|sy-entry|sy-lisel|sy-uline|sy-xcode|sy-cprog|sy-xprog|sy-xform|sy-ldbpg|sy-tvar0|sy-tvar1|sy-tvar2|sy-tvar3|sy-tvar4|sy-tvar5|sy-tvar6|sy-tvar7|sy-tvar8|sy-tvar9|sy-msgid|sy-msgty|sy-msgno|sy-msgv1|sy-msgv2|sy-msgv3|sy-msgv4|sy-oncom|sy-vline|sy-winsl|sy-staco|sy-staro|sy-datar|sy-host|sy-locdb|sy-locop|sy-datlo|sy-timlo|sy-zonlo|syst-index|syst-pagno|syst-tabix|syst-tfill|syst-tlopc|syst-tmaxl|syst-toccu|syst-ttabc|syst-tstis|syst-ttabi|syst-dbcnt|syst-fdpos|syst-colno|syst-linct|syst-linno|syst-linsz|syst-pagct|syst-macol|syst-marow|syst-tleng|syst-sfoff|syst-willi|syst-lilli|syst-subrc|syst-fleng|syst-cucol|syst-curow|syst-lsind|syst-listi|syst-stepl|syst-tpagi|syst-winx1|syst-winy1|syst-winx2|syst-winy2|syst-winco|syst-winro|syst-windi|syst-srows|syst-scols|syst-loopc|syst-folen|syst-fodec|syst-tzone|syst-dayst|syst-ftype|syst-appli|syst-fdayw|syst-ccurs|syst-ccurt|syst-debug|syst-ctype|syst-input|syst-langu|syst-modno|syst-batch|syst-binpt|syst-calld|syst-dynnr|syst-dyngr|syst-newpa|syst-pri40|syst-rstrt|syst-wtitl|syst-cpage|syst-dbnam|syst-mandt|syst-prefx|syst-fmkey|syst-pexpi|syst-prini|syst-primm|syst-prrel|syst-playo|syst-prbig|syst-playp|syst-prnew|syst-prlog|syst-pdest|syst-plist|syst-pauth|syst-prdsn|syst-pnwpa|syst-callr|syst-repi2|syst-rtitl|syst-prrec|syst-prtxt|syst-prabt|syst-lpass|syst-nrpag|syst-paart|syst-prcop|syst-batzs|syst-bspld|syst-brep4|syst-batzo|syst-batzd|syst-batzw|syst-batzm|syst-ctabl|syst-dbsys|syst-dcsys|syst-macdb|syst-sysid|syst-opsys|syst-pfkey|syst-saprl|syst-tcode|syst-ucomm|syst-cfwae|syst-chwae|syst-spono|syst-sponr|syst-waers|syst-cdate|syst-datum|syst-slset|syst-subty|syst-subcs|syst-group|syst-ffile|syst-uzeit|syst-dsnam|syst-repid|syst-tabid|syst-tfdsn|syst-uname|syst-lstat|syst-abcde|syst-marky|syst-sfnam|syst-tname|syst-msgli|syst-title|syst-entry|syst-lisel|syst-uline|syst-xcode|syst-cprog|syst-xprog|syst-xform|syst-ldbpg|syst-tvar0|syst-tvar1|syst-tvar2|syst-tvar3|syst-tvar4|syst-tvar5|syst-tvar6|syst-tvar7|syst-tvar8|syst-tvar9|syst-msgid|syst-msgty|syst-msgno|syst-msgv1|syst-msgv2|syst-msgv3|syst-msgv4|syst-oncom|syst-vline|syst-winsl|syst-staco|syst-staro|syst-datar|syst-host|syst-locdb|syst-locop|syst-datlo|syst-timlo|syst-zonlo)$/',
302 302
                     'reserved' => '/^((?i)abs|acos|add|add-corresponding|adjacent|after|aliases|all|analyzer|and|any|append|as|ascending|asin|assign|assigned|assigning|at|atan|authority-check|avg|back|before|begin|binary|bit|bit-and|bit-not|bit-or|bit-xor|blank|block|break-point|buffer|by|c|call|case|catch|ceil|centered|chain|change|changing|check|checkbox|class|class-data|class-events|class-methods|class-pool|clear|client|close|cnt|code|collect|color|comment|commit|communication|compute|concatenate|condense|constants|context|contexts|continue|control|controls|convert|copy|corresponding|cos|cosh|count|country|create|currency|cursor|customer-function|data|database|dataset|delete|decimals|default|define|demand|descending|describe|dialog|distinct|div|divide|divide-corresponding|do|duplicates|dynpro|edit|editor-call|else|elseif|end|end-of-definition|end-of-page|end-of-selection|endat|endcase|endcatch|endchain|endclass|enddo|endexec|endform|endfunction|endif|endinterface|endloop|endmethod|endmodule|endon|endprovide|endselect|endwhile|entries|events|exec|exit|exit-command|exp|exponent|export|exporting|exceptions|extended|extract|fetch|field|field-groups|field-symbols|fields|floor|for|form|format|frac|frame|free|from|function|function-pool|generate|get|group|hashed|header|help-id|help-request|hide|hotspot|icon|id|if|import|importing|include|index|infotypes|initialization|inner|input|insert|intensified|interface|interface-pool|interfaces|into|inverse|join|key|language|last|leave|left|left-justified|like|line|line-count|line-selection|line-size|lines|list-processing|load|load-of-program|local|locale|log|log10|loop|m|margin|mask|matchcode|max|memory|message|message-id|messages|method|methods|min|mod|mode|modif|modify|module|move|move-corresponding|multiply|multiply-corresponding|new|new-line|new-page|next|no|no-gap|no-gaps|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unique|o|object|obligatory|occurs|of|off|on|open|or|order|others|outer|output|overlay|pack|page|parameter|parameters|perform|pf-status|position|print|print-control|private|process|program|property|protected|provide|public|put|radiobutton|raise|raising|range|ranges|read|receive|refresh|reject|replace|report|requested|reserve|reset|right-justified|rollback|round|rows|rtti|run|scan|screen|search|separated|scroll|scroll-boundary|select|select-options|selection-screen|selection-table|set|shared|shift|sign|sin|single|sinh|size|skip|sort|sorted|split|sql|sqrt|stamp|standard|start-of-selection|statics|stop|string|strlen|structure|submit|subtract|subtract-corresponding|sum|supply|suppress|symbol|syntax-check|syntax-trace|system-call|system-exceptions|table|table_line|tables|tan|tanh|text|textpool|time|times|title|titlebar|to|top-of-page|transaction|transfer|translate|transporting|trunc|type|type-pool|type-pools|types|uline|under|unique|unit|unpack|up|update|user-command|using|value|value-request|values|vary|when|where|while|window|with|with-title|work|write|x|xstring|z|zone)$/',
303 303
                     'constants' => '/^((?i)initial|null|space|col_background|col_heading|col_normal|col_total|col_key|col_positive|col_negative|col_group)$/',
304 304
                 ),
305 305
             ),
306 306
             0 =>
307
-            array (
307
+            array(
308 308
                 0 => -1,
309 309
                 1 => -1,
310 310
                 2 => -1,
311 311
                 3 => -1,
312 312
                 4 => -1,
313 313
                 5 =>
314
-                array (
314
+                array(
315 315
                 ),
316 316
                 6 =>
317
-                array (
317
+                array(
318 318
                 ),
319 319
                 7 =>
320
-                array (
320
+                array(
321 321
                 ),
322 322
                 8 =>
323
-                array (
323
+                array(
324 324
                 ),
325 325
                 9 =>
326
-                array (
326
+                array(
327 327
                     'sy' => '/^((?i)screen-name|screen-group1|screen-group2|screen-group3|screen-group4|screen-required|screen-input|screen-output|screen-intensified|screen-invisible|screen-length|screen-active|sy-index|sy-pagno|sy-tabix|sy-tfill|sy-tlopc|sy-tmaxl|sy-toccu|sy-ttabc|sy-tstis|sy-ttabi|sy-dbcnt|sy-fdpos|sy-colno|sy-linct|sy-linno|sy-linsz|sy-pagct|sy-macol|sy-marow|sy-tleng|sy-sfoff|sy-willi|sy-lilli|sy-subrc|sy-fleng|sy-cucol|sy-curow|sy-lsind|sy-listi|sy-stepl|sy-tpagi|sy-winx1|sy-winy1|sy-winx2|sy-winy2|sy-winco|sy-winro|sy-windi|sy-srows|sy-scols|sy-loopc|sy-folen|sy-fodec|sy-tzone|sy-dayst|sy-ftype|sy-appli|sy-fdayw|sy-ccurs|sy-ccurt|sy-debug|sy-ctype|sy-input|sy-langu|sy-modno|sy-batch|sy-binpt|sy-calld|sy-dynnr|sy-dyngr|sy-newpa|sy-pri40|sy-rstrt|sy-wtitl|sy-cpage|sy-dbnam|sy-mandt|sy-prefx|sy-fmkey|sy-pexpi|sy-prini|sy-primm|sy-prrel|sy-playo|sy-prbig|sy-playp|sy-prnew|sy-prlog|sy-pdest|sy-plist|sy-pauth|sy-prdsn|sy-pnwpa|sy-callr|sy-repi2|sy-rtitl|sy-prrec|sy-prtxt|sy-prabt|sy-lpass|sy-nrpag|sy-paart|sy-prcop|sy-batzs|sy-bspld|sy-brep4|sy-batzo|sy-batzd|sy-batzw|sy-batzm|sy-ctabl|sy-dbsys|sy-dcsys|sy-macdb|sy-sysid|sy-opsys|sy-pfkey|sy-saprl|sy-tcode|sy-ucomm|sy-cfwae|sy-chwae|sy-spono|sy-sponr|sy-waers|sy-cdate|sy-datum|sy-slset|sy-subty|sy-subcs|sy-group|sy-ffile|sy-uzeit|sy-dsnam|sy-repid|sy-tabid|sy-tfdsn|sy-uname|sy-lstat|sy-abcde|sy-marky|sy-sfnam|sy-tname|sy-msgli|sy-title|sy-entry|sy-lisel|sy-uline|sy-xcode|sy-cprog|sy-xprog|sy-xform|sy-ldbpg|sy-tvar0|sy-tvar1|sy-tvar2|sy-tvar3|sy-tvar4|sy-tvar5|sy-tvar6|sy-tvar7|sy-tvar8|sy-tvar9|sy-msgid|sy-msgty|sy-msgno|sy-msgv1|sy-msgv2|sy-msgv3|sy-msgv4|sy-oncom|sy-vline|sy-winsl|sy-staco|sy-staro|sy-datar|sy-host|sy-locdb|sy-locop|sy-datlo|sy-timlo|sy-zonlo|syst-index|syst-pagno|syst-tabix|syst-tfill|syst-tlopc|syst-tmaxl|syst-toccu|syst-ttabc|syst-tstis|syst-ttabi|syst-dbcnt|syst-fdpos|syst-colno|syst-linct|syst-linno|syst-linsz|syst-pagct|syst-macol|syst-marow|syst-tleng|syst-sfoff|syst-willi|syst-lilli|syst-subrc|syst-fleng|syst-cucol|syst-curow|syst-lsind|syst-listi|syst-stepl|syst-tpagi|syst-winx1|syst-winy1|syst-winx2|syst-winy2|syst-winco|syst-winro|syst-windi|syst-srows|syst-scols|syst-loopc|syst-folen|syst-fodec|syst-tzone|syst-dayst|syst-ftype|syst-appli|syst-fdayw|syst-ccurs|syst-ccurt|syst-debug|syst-ctype|syst-input|syst-langu|syst-modno|syst-batch|syst-binpt|syst-calld|syst-dynnr|syst-dyngr|syst-newpa|syst-pri40|syst-rstrt|syst-wtitl|syst-cpage|syst-dbnam|syst-mandt|syst-prefx|syst-fmkey|syst-pexpi|syst-prini|syst-primm|syst-prrel|syst-playo|syst-prbig|syst-playp|syst-prnew|syst-prlog|syst-pdest|syst-plist|syst-pauth|syst-prdsn|syst-pnwpa|syst-callr|syst-repi2|syst-rtitl|syst-prrec|syst-prtxt|syst-prabt|syst-lpass|syst-nrpag|syst-paart|syst-prcop|syst-batzs|syst-bspld|syst-brep4|syst-batzo|syst-batzd|syst-batzw|syst-batzm|syst-ctabl|syst-dbsys|syst-dcsys|syst-macdb|syst-sysid|syst-opsys|syst-pfkey|syst-saprl|syst-tcode|syst-ucomm|syst-cfwae|syst-chwae|syst-spono|syst-sponr|syst-waers|syst-cdate|syst-datum|syst-slset|syst-subty|syst-subcs|syst-group|syst-ffile|syst-uzeit|syst-dsnam|syst-repid|syst-tabid|syst-tfdsn|syst-uname|syst-lstat|syst-abcde|syst-marky|syst-sfnam|syst-tname|syst-msgli|syst-title|syst-entry|syst-lisel|syst-uline|syst-xcode|syst-cprog|syst-xprog|syst-xform|syst-ldbpg|syst-tvar0|syst-tvar1|syst-tvar2|syst-tvar3|syst-tvar4|syst-tvar5|syst-tvar6|syst-tvar7|syst-tvar8|syst-tvar9|syst-msgid|syst-msgty|syst-msgno|syst-msgv1|syst-msgv2|syst-msgv3|syst-msgv4|syst-oncom|syst-vline|syst-winsl|syst-staco|syst-staro|syst-datar|syst-host|syst-locdb|syst-locop|syst-datlo|syst-timlo|syst-zonlo)$/',
328 328
                     'reserved' => '/^((?i)abs|acos|add|add-corresponding|adjacent|after|aliases|all|analyzer|and|any|append|as|ascending|asin|assign|assigned|assigning|at|atan|authority-check|avg|back|before|begin|binary|bit|bit-and|bit-not|bit-or|bit-xor|blank|block|break-point|buffer|by|c|call|case|catch|ceil|centered|chain|change|changing|check|checkbox|class|class-data|class-events|class-methods|class-pool|clear|client|close|cnt|code|collect|color|comment|commit|communication|compute|concatenate|condense|constants|context|contexts|continue|control|controls|convert|copy|corresponding|cos|cosh|count|country|create|currency|cursor|customer-function|data|database|dataset|delete|decimals|default|define|demand|descending|describe|dialog|distinct|div|divide|divide-corresponding|do|duplicates|dynpro|edit|editor-call|else|elseif|end|end-of-definition|end-of-page|end-of-selection|endat|endcase|endcatch|endchain|endclass|enddo|endexec|endform|endfunction|endif|endinterface|endloop|endmethod|endmodule|endon|endprovide|endselect|endwhile|entries|events|exec|exit|exit-command|exp|exponent|export|exporting|exceptions|extended|extract|fetch|field|field-groups|field-symbols|fields|floor|for|form|format|frac|frame|free|from|function|function-pool|generate|get|group|hashed|header|help-id|help-request|hide|hotspot|icon|id|if|import|importing|include|index|infotypes|initialization|inner|input|insert|intensified|interface|interface-pool|interfaces|into|inverse|join|key|language|last|leave|left|left-justified|like|line|line-count|line-selection|line-size|lines|list-processing|load|load-of-program|local|locale|log|log10|loop|m|margin|mask|matchcode|max|memory|message|message-id|messages|method|methods|min|mod|mode|modif|modify|module|move|move-corresponding|multiply|multiply-corresponding|new|new-line|new-page|next|no|no-gap|no-gaps|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unique|o|object|obligatory|occurs|of|off|on|open|or|order|others|outer|output|overlay|pack|page|parameter|parameters|perform|pf-status|position|print|print-control|private|process|program|property|protected|provide|public|put|radiobutton|raise|raising|range|ranges|read|receive|refresh|reject|replace|report|requested|reserve|reset|right-justified|rollback|round|rows|rtti|run|scan|screen|search|separated|scroll|scroll-boundary|select|select-options|selection-screen|selection-table|set|shared|shift|sign|sin|single|sinh|size|skip|sort|sorted|split|sql|sqrt|stamp|standard|start-of-selection|statics|stop|string|strlen|structure|submit|subtract|subtract-corresponding|sum|supply|suppress|symbol|syntax-check|syntax-trace|system-call|system-exceptions|table|table_line|tables|tan|tanh|text|textpool|time|times|title|titlebar|to|top-of-page|transaction|transfer|translate|transporting|trunc|type|type-pool|type-pools|types|uline|under|unique|unit|unpack|up|update|user-command|using|value|value-request|values|vary|when|where|while|window|with|with-title|work|write|x|xstring|z|zone)$/',
329 329
                     'constants' => '/^((?i)initial|null|space|col_background|col_heading|col_normal|col_total|col_key|col_positive|col_negative|col_group)$/',
330 330
                 ),
331 331
             ),
332 332
             1 =>
333
-            array (
333
+            array(
334 334
                 0 => -1,
335 335
                 1 => -1,
336 336
                 2 => -1,
337 337
                 3 => -1,
338 338
                 4 => -1,
339 339
                 5 =>
340
-                array (
340
+                array(
341 341
                 ),
342 342
                 6 =>
343
-                array (
343
+                array(
344 344
                 ),
345 345
                 7 =>
346
-                array (
346
+                array(
347 347
                 ),
348 348
                 8 =>
349
-                array (
349
+                array(
350 350
                 ),
351 351
                 9 =>
352
-                array (
352
+                array(
353 353
                     'sy' => '/^((?i)screen-name|screen-group1|screen-group2|screen-group3|screen-group4|screen-required|screen-input|screen-output|screen-intensified|screen-invisible|screen-length|screen-active|sy-index|sy-pagno|sy-tabix|sy-tfill|sy-tlopc|sy-tmaxl|sy-toccu|sy-ttabc|sy-tstis|sy-ttabi|sy-dbcnt|sy-fdpos|sy-colno|sy-linct|sy-linno|sy-linsz|sy-pagct|sy-macol|sy-marow|sy-tleng|sy-sfoff|sy-willi|sy-lilli|sy-subrc|sy-fleng|sy-cucol|sy-curow|sy-lsind|sy-listi|sy-stepl|sy-tpagi|sy-winx1|sy-winy1|sy-winx2|sy-winy2|sy-winco|sy-winro|sy-windi|sy-srows|sy-scols|sy-loopc|sy-folen|sy-fodec|sy-tzone|sy-dayst|sy-ftype|sy-appli|sy-fdayw|sy-ccurs|sy-ccurt|sy-debug|sy-ctype|sy-input|sy-langu|sy-modno|sy-batch|sy-binpt|sy-calld|sy-dynnr|sy-dyngr|sy-newpa|sy-pri40|sy-rstrt|sy-wtitl|sy-cpage|sy-dbnam|sy-mandt|sy-prefx|sy-fmkey|sy-pexpi|sy-prini|sy-primm|sy-prrel|sy-playo|sy-prbig|sy-playp|sy-prnew|sy-prlog|sy-pdest|sy-plist|sy-pauth|sy-prdsn|sy-pnwpa|sy-callr|sy-repi2|sy-rtitl|sy-prrec|sy-prtxt|sy-prabt|sy-lpass|sy-nrpag|sy-paart|sy-prcop|sy-batzs|sy-bspld|sy-brep4|sy-batzo|sy-batzd|sy-batzw|sy-batzm|sy-ctabl|sy-dbsys|sy-dcsys|sy-macdb|sy-sysid|sy-opsys|sy-pfkey|sy-saprl|sy-tcode|sy-ucomm|sy-cfwae|sy-chwae|sy-spono|sy-sponr|sy-waers|sy-cdate|sy-datum|sy-slset|sy-subty|sy-subcs|sy-group|sy-ffile|sy-uzeit|sy-dsnam|sy-repid|sy-tabid|sy-tfdsn|sy-uname|sy-lstat|sy-abcde|sy-marky|sy-sfnam|sy-tname|sy-msgli|sy-title|sy-entry|sy-lisel|sy-uline|sy-xcode|sy-cprog|sy-xprog|sy-xform|sy-ldbpg|sy-tvar0|sy-tvar1|sy-tvar2|sy-tvar3|sy-tvar4|sy-tvar5|sy-tvar6|sy-tvar7|sy-tvar8|sy-tvar9|sy-msgid|sy-msgty|sy-msgno|sy-msgv1|sy-msgv2|sy-msgv3|sy-msgv4|sy-oncom|sy-vline|sy-winsl|sy-staco|sy-staro|sy-datar|sy-host|sy-locdb|sy-locop|sy-datlo|sy-timlo|sy-zonlo|syst-index|syst-pagno|syst-tabix|syst-tfill|syst-tlopc|syst-tmaxl|syst-toccu|syst-ttabc|syst-tstis|syst-ttabi|syst-dbcnt|syst-fdpos|syst-colno|syst-linct|syst-linno|syst-linsz|syst-pagct|syst-macol|syst-marow|syst-tleng|syst-sfoff|syst-willi|syst-lilli|syst-subrc|syst-fleng|syst-cucol|syst-curow|syst-lsind|syst-listi|syst-stepl|syst-tpagi|syst-winx1|syst-winy1|syst-winx2|syst-winy2|syst-winco|syst-winro|syst-windi|syst-srows|syst-scols|syst-loopc|syst-folen|syst-fodec|syst-tzone|syst-dayst|syst-ftype|syst-appli|syst-fdayw|syst-ccurs|syst-ccurt|syst-debug|syst-ctype|syst-input|syst-langu|syst-modno|syst-batch|syst-binpt|syst-calld|syst-dynnr|syst-dyngr|syst-newpa|syst-pri40|syst-rstrt|syst-wtitl|syst-cpage|syst-dbnam|syst-mandt|syst-prefx|syst-fmkey|syst-pexpi|syst-prini|syst-primm|syst-prrel|syst-playo|syst-prbig|syst-playp|syst-prnew|syst-prlog|syst-pdest|syst-plist|syst-pauth|syst-prdsn|syst-pnwpa|syst-callr|syst-repi2|syst-rtitl|syst-prrec|syst-prtxt|syst-prabt|syst-lpass|syst-nrpag|syst-paart|syst-prcop|syst-batzs|syst-bspld|syst-brep4|syst-batzo|syst-batzd|syst-batzw|syst-batzm|syst-ctabl|syst-dbsys|syst-dcsys|syst-macdb|syst-sysid|syst-opsys|syst-pfkey|syst-saprl|syst-tcode|syst-ucomm|syst-cfwae|syst-chwae|syst-spono|syst-sponr|syst-waers|syst-cdate|syst-datum|syst-slset|syst-subty|syst-subcs|syst-group|syst-ffile|syst-uzeit|syst-dsnam|syst-repid|syst-tabid|syst-tfdsn|syst-uname|syst-lstat|syst-abcde|syst-marky|syst-sfnam|syst-tname|syst-msgli|syst-title|syst-entry|syst-lisel|syst-uline|syst-xcode|syst-cprog|syst-xprog|syst-xform|syst-ldbpg|syst-tvar0|syst-tvar1|syst-tvar2|syst-tvar3|syst-tvar4|syst-tvar5|syst-tvar6|syst-tvar7|syst-tvar8|syst-tvar9|syst-msgid|syst-msgty|syst-msgno|syst-msgv1|syst-msgv2|syst-msgv3|syst-msgv4|syst-oncom|syst-vline|syst-winsl|syst-staco|syst-staro|syst-datar|syst-host|syst-locdb|syst-locop|syst-datlo|syst-timlo|syst-zonlo)$/',
354 354
                     'reserved' => '/^((?i)abs|acos|add|add-corresponding|adjacent|after|aliases|all|analyzer|and|any|append|as|ascending|asin|assign|assigned|assigning|at|atan|authority-check|avg|back|before|begin|binary|bit|bit-and|bit-not|bit-or|bit-xor|blank|block|break-point|buffer|by|c|call|case|catch|ceil|centered|chain|change|changing|check|checkbox|class|class-data|class-events|class-methods|class-pool|clear|client|close|cnt|code|collect|color|comment|commit|communication|compute|concatenate|condense|constants|context|contexts|continue|control|controls|convert|copy|corresponding|cos|cosh|count|country|create|currency|cursor|customer-function|data|database|dataset|delete|decimals|default|define|demand|descending|describe|dialog|distinct|div|divide|divide-corresponding|do|duplicates|dynpro|edit|editor-call|else|elseif|end|end-of-definition|end-of-page|end-of-selection|endat|endcase|endcatch|endchain|endclass|enddo|endexec|endform|endfunction|endif|endinterface|endloop|endmethod|endmodule|endon|endprovide|endselect|endwhile|entries|events|exec|exit|exit-command|exp|exponent|export|exporting|exceptions|extended|extract|fetch|field|field-groups|field-symbols|fields|floor|for|form|format|frac|frame|free|from|function|function-pool|generate|get|group|hashed|header|help-id|help-request|hide|hotspot|icon|id|if|import|importing|include|index|infotypes|initialization|inner|input|insert|intensified|interface|interface-pool|interfaces|into|inverse|join|key|language|last|leave|left|left-justified|like|line|line-count|line-selection|line-size|lines|list-processing|load|load-of-program|local|locale|log|log10|loop|m|margin|mask|matchcode|max|memory|message|message-id|messages|method|methods|min|mod|mode|modif|modify|module|move|move-corresponding|multiply|multiply-corresponding|new|new-line|new-page|next|no|no-gap|no-gaps|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unique|o|object|obligatory|occurs|of|off|on|open|or|order|others|outer|output|overlay|pack|page|parameter|parameters|perform|pf-status|position|print|print-control|private|process|program|property|protected|provide|public|put|radiobutton|raise|raising|range|ranges|read|receive|refresh|reject|replace|report|requested|reserve|reset|right-justified|rollback|round|rows|rtti|run|scan|screen|search|separated|scroll|scroll-boundary|select|select-options|selection-screen|selection-table|set|shared|shift|sign|sin|single|sinh|size|skip|sort|sorted|split|sql|sqrt|stamp|standard|start-of-selection|statics|stop|string|strlen|structure|submit|subtract|subtract-corresponding|sum|supply|suppress|symbol|syntax-check|syntax-trace|system-call|system-exceptions|table|table_line|tables|tan|tanh|text|textpool|time|times|title|titlebar|to|top-of-page|transaction|transfer|translate|transporting|trunc|type|type-pool|type-pools|types|uline|under|unique|unit|unpack|up|update|user-command|using|value|value-request|values|vary|when|where|while|window|with|with-title|work|write|x|xstring|z|zone)$/',
355 355
                     'constants' => '/^((?i)initial|null|space|col_background|col_heading|col_normal|col_total|col_key|col_positive|col_negative|col_group)$/',
356 356
                 ),
357 357
             ),
358 358
             2 =>
359
-            array (
359
+            array(
360 360
                 0 => -1,
361 361
                 1 => -1,
362 362
                 2 => -1,
363 363
                 3 => -1,
364 364
                 4 => -1,
365 365
                 5 =>
366
-                array (
366
+                array(
367 367
                 ),
368 368
                 6 =>
369
-                array (
369
+                array(
370 370
                 ),
371 371
                 7 =>
372
-                array (
372
+                array(
373 373
                 ),
374 374
                 8 =>
375
-                array (
375
+                array(
376 376
                 ),
377 377
                 9 =>
378
-                array (
378
+                array(
379 379
                     'sy' => '/^((?i)screen-name|screen-group1|screen-group2|screen-group3|screen-group4|screen-required|screen-input|screen-output|screen-intensified|screen-invisible|screen-length|screen-active|sy-index|sy-pagno|sy-tabix|sy-tfill|sy-tlopc|sy-tmaxl|sy-toccu|sy-ttabc|sy-tstis|sy-ttabi|sy-dbcnt|sy-fdpos|sy-colno|sy-linct|sy-linno|sy-linsz|sy-pagct|sy-macol|sy-marow|sy-tleng|sy-sfoff|sy-willi|sy-lilli|sy-subrc|sy-fleng|sy-cucol|sy-curow|sy-lsind|sy-listi|sy-stepl|sy-tpagi|sy-winx1|sy-winy1|sy-winx2|sy-winy2|sy-winco|sy-winro|sy-windi|sy-srows|sy-scols|sy-loopc|sy-folen|sy-fodec|sy-tzone|sy-dayst|sy-ftype|sy-appli|sy-fdayw|sy-ccurs|sy-ccurt|sy-debug|sy-ctype|sy-input|sy-langu|sy-modno|sy-batch|sy-binpt|sy-calld|sy-dynnr|sy-dyngr|sy-newpa|sy-pri40|sy-rstrt|sy-wtitl|sy-cpage|sy-dbnam|sy-mandt|sy-prefx|sy-fmkey|sy-pexpi|sy-prini|sy-primm|sy-prrel|sy-playo|sy-prbig|sy-playp|sy-prnew|sy-prlog|sy-pdest|sy-plist|sy-pauth|sy-prdsn|sy-pnwpa|sy-callr|sy-repi2|sy-rtitl|sy-prrec|sy-prtxt|sy-prabt|sy-lpass|sy-nrpag|sy-paart|sy-prcop|sy-batzs|sy-bspld|sy-brep4|sy-batzo|sy-batzd|sy-batzw|sy-batzm|sy-ctabl|sy-dbsys|sy-dcsys|sy-macdb|sy-sysid|sy-opsys|sy-pfkey|sy-saprl|sy-tcode|sy-ucomm|sy-cfwae|sy-chwae|sy-spono|sy-sponr|sy-waers|sy-cdate|sy-datum|sy-slset|sy-subty|sy-subcs|sy-group|sy-ffile|sy-uzeit|sy-dsnam|sy-repid|sy-tabid|sy-tfdsn|sy-uname|sy-lstat|sy-abcde|sy-marky|sy-sfnam|sy-tname|sy-msgli|sy-title|sy-entry|sy-lisel|sy-uline|sy-xcode|sy-cprog|sy-xprog|sy-xform|sy-ldbpg|sy-tvar0|sy-tvar1|sy-tvar2|sy-tvar3|sy-tvar4|sy-tvar5|sy-tvar6|sy-tvar7|sy-tvar8|sy-tvar9|sy-msgid|sy-msgty|sy-msgno|sy-msgv1|sy-msgv2|sy-msgv3|sy-msgv4|sy-oncom|sy-vline|sy-winsl|sy-staco|sy-staro|sy-datar|sy-host|sy-locdb|sy-locop|sy-datlo|sy-timlo|sy-zonlo|syst-index|syst-pagno|syst-tabix|syst-tfill|syst-tlopc|syst-tmaxl|syst-toccu|syst-ttabc|syst-tstis|syst-ttabi|syst-dbcnt|syst-fdpos|syst-colno|syst-linct|syst-linno|syst-linsz|syst-pagct|syst-macol|syst-marow|syst-tleng|syst-sfoff|syst-willi|syst-lilli|syst-subrc|syst-fleng|syst-cucol|syst-curow|syst-lsind|syst-listi|syst-stepl|syst-tpagi|syst-winx1|syst-winy1|syst-winx2|syst-winy2|syst-winco|syst-winro|syst-windi|syst-srows|syst-scols|syst-loopc|syst-folen|syst-fodec|syst-tzone|syst-dayst|syst-ftype|syst-appli|syst-fdayw|syst-ccurs|syst-ccurt|syst-debug|syst-ctype|syst-input|syst-langu|syst-modno|syst-batch|syst-binpt|syst-calld|syst-dynnr|syst-dyngr|syst-newpa|syst-pri40|syst-rstrt|syst-wtitl|syst-cpage|syst-dbnam|syst-mandt|syst-prefx|syst-fmkey|syst-pexpi|syst-prini|syst-primm|syst-prrel|syst-playo|syst-prbig|syst-playp|syst-prnew|syst-prlog|syst-pdest|syst-plist|syst-pauth|syst-prdsn|syst-pnwpa|syst-callr|syst-repi2|syst-rtitl|syst-prrec|syst-prtxt|syst-prabt|syst-lpass|syst-nrpag|syst-paart|syst-prcop|syst-batzs|syst-bspld|syst-brep4|syst-batzo|syst-batzd|syst-batzw|syst-batzm|syst-ctabl|syst-dbsys|syst-dcsys|syst-macdb|syst-sysid|syst-opsys|syst-pfkey|syst-saprl|syst-tcode|syst-ucomm|syst-cfwae|syst-chwae|syst-spono|syst-sponr|syst-waers|syst-cdate|syst-datum|syst-slset|syst-subty|syst-subcs|syst-group|syst-ffile|syst-uzeit|syst-dsnam|syst-repid|syst-tabid|syst-tfdsn|syst-uname|syst-lstat|syst-abcde|syst-marky|syst-sfnam|syst-tname|syst-msgli|syst-title|syst-entry|syst-lisel|syst-uline|syst-xcode|syst-cprog|syst-xprog|syst-xform|syst-ldbpg|syst-tvar0|syst-tvar1|syst-tvar2|syst-tvar3|syst-tvar4|syst-tvar5|syst-tvar6|syst-tvar7|syst-tvar8|syst-tvar9|syst-msgid|syst-msgty|syst-msgno|syst-msgv1|syst-msgv2|syst-msgv3|syst-msgv4|syst-oncom|syst-vline|syst-winsl|syst-staco|syst-staro|syst-datar|syst-host|syst-locdb|syst-locop|syst-datlo|syst-timlo|syst-zonlo)$/',
380 380
                     'reserved' => '/^((?i)abs|acos|add|add-corresponding|adjacent|after|aliases|all|analyzer|and|any|append|as|ascending|asin|assign|assigned|assigning|at|atan|authority-check|avg|back|before|begin|binary|bit|bit-and|bit-not|bit-or|bit-xor|blank|block|break-point|buffer|by|c|call|case|catch|ceil|centered|chain|change|changing|check|checkbox|class|class-data|class-events|class-methods|class-pool|clear|client|close|cnt|code|collect|color|comment|commit|communication|compute|concatenate|condense|constants|context|contexts|continue|control|controls|convert|copy|corresponding|cos|cosh|count|country|create|currency|cursor|customer-function|data|database|dataset|delete|decimals|default|define|demand|descending|describe|dialog|distinct|div|divide|divide-corresponding|do|duplicates|dynpro|edit|editor-call|else|elseif|end|end-of-definition|end-of-page|end-of-selection|endat|endcase|endcatch|endchain|endclass|enddo|endexec|endform|endfunction|endif|endinterface|endloop|endmethod|endmodule|endon|endprovide|endselect|endwhile|entries|events|exec|exit|exit-command|exp|exponent|export|exporting|exceptions|extended|extract|fetch|field|field-groups|field-symbols|fields|floor|for|form|format|frac|frame|free|from|function|function-pool|generate|get|group|hashed|header|help-id|help-request|hide|hotspot|icon|id|if|import|importing|include|index|infotypes|initialization|inner|input|insert|intensified|interface|interface-pool|interfaces|into|inverse|join|key|language|last|leave|left|left-justified|like|line|line-count|line-selection|line-size|lines|list-processing|load|load-of-program|local|locale|log|log10|loop|m|margin|mask|matchcode|max|memory|message|message-id|messages|method|methods|min|mod|mode|modif|modify|module|move|move-corresponding|multiply|multiply-corresponding|new|new-line|new-page|next|no|no-gap|no-gaps|no-heading|no-scrolling|no-sign|no-title|no-zero|nodes|non-unique|o|object|obligatory|occurs|of|off|on|open|or|order|others|outer|output|overlay|pack|page|parameter|parameters|perform|pf-status|position|print|print-control|private|process|program|property|protected|provide|public|put|radiobutton|raise|raising|range|ranges|read|receive|refresh|reject|replace|report|requested|reserve|reset|right-justified|rollback|round|rows|rtti|run|scan|screen|search|separated|scroll|scroll-boundary|select|select-options|selection-screen|selection-table|set|shared|shift|sign|sin|single|sinh|size|skip|sort|sorted|split|sql|sqrt|stamp|standard|start-of-selection|statics|stop|string|strlen|structure|submit|subtract|subtract-corresponding|sum|supply|suppress|symbol|syntax-check|syntax-trace|system-call|system-exceptions|table|table_line|tables|tan|tanh|text|textpool|time|times|title|titlebar|to|top-of-page|transaction|transfer|translate|transporting|trunc|type|type-pool|type-pools|types|uline|under|unique|unit|unpack|up|update|user-command|using|value|value-request|values|vary|when|where|while|window|with|with-title|work|write|x|xstring|z|zone)$/',
381 381
                     'constants' => '/^((?i)initial|null|space|col_background|col_heading|col_normal|col_total|col_key|col_positive|col_negative|col_group)$/',
382 382
                 ),
383 383
             ),
384 384
             3 =>
385
-            array (
385
+            array(
386 386
             ),
387 387
             4 =>
388
-            array (
388
+            array(
389 389
             ),
390 390
         );
391
-        $this->_parts = array (
391
+        $this->_parts = array(
392 392
             0 =>
393
-            array (
393
+            array(
394 394
                 0 => NULL,
395 395
                 1 => NULL,
396 396
                 2 => NULL,
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
                 9 => NULL,
404 404
             ),
405 405
             1 =>
406
-            array (
406
+            array(
407 407
                 0 => NULL,
408 408
                 1 => NULL,
409 409
                 2 => NULL,
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
                 9 => NULL,
417 417
             ),
418 418
             2 =>
419
-            array (
419
+            array(
420 420
                 0 => NULL,
421 421
                 1 => NULL,
422 422
                 2 => NULL,
@@ -429,15 +429,15 @@  discard block
 block discarded – undo
429 429
                 9 => NULL,
430 430
             ),
431 431
             3 =>
432
-            array (
432
+            array(
433 433
             ),
434 434
             4 =>
435
-            array (
435
+            array(
436 436
             ),
437 437
         );
438
-        $this->_subst = array (
438
+        $this->_subst = array(
439 439
             -1 =>
440
-            array (
440
+            array(
441 441
                 0 => false,
442 442
                 1 => false,
443 443
                 2 => false,
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
                 5 => false,
447 447
             ),
448 448
             0 =>
449
-            array (
449
+            array(
450 450
                 0 => false,
451 451
                 1 => false,
452 452
                 2 => false,
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                 9 => false,
460 460
             ),
461 461
             1 =>
462
-            array (
462
+            array(
463 463
                 0 => false,
464 464
                 1 => false,
465 465
                 2 => false,
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
                 9 => false,
473 473
             ),
474 474
             2 =>
475
-            array (
475
+            array(
476 476
                 0 => false,
477 477
                 1 => false,
478 478
                 2 => false,
@@ -485,15 +485,15 @@  discard block
 block discarded – undo
485 485
                 9 => false,
486 486
             ),
487 487
             3 =>
488
-            array (
488
+            array(
489 489
             ),
490 490
             4 =>
491
-            array (
491
+            array(
492 492
             ),
493 493
         );
494
-        $this->_conditions = array (
494
+        $this->_conditions = array(
495 495
         );
496
-        $this->_kwmap = array (
496
+        $this->_kwmap = array(
497 497
             'sy' => 'reserved',
498 498
             'reserved' => 'reserved',
499 499
             'constants' => 'reserved',
Please login to merge, or discard this patch.
framework/3rdParty/TextHighlighter/Text/Highlighter/PHP.php 1 patch
Spacing   +147 added lines, -147 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
      * @param array  $options
42 42
      * @access public
43 43
      */
44
-    function __construct($options=array())
44
+    function __construct($options = array())
45 45
     {
46 46
 
47 47
         $this->_options = $options;
48
-        $this->_regs = array (
48
+        $this->_regs = array(
49 49
             -1 => '/((?i)(\\<\\?(php|=)?)?)/',
50 50
             0 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/',
51 51
             1 => '/((?i)\\{)|((?i)\\()|((?i)\\[)|((?i)\\/\\*)|((?i)")|((?i)`)|((?mi)\\<\\<\\<[\\x20\\x09]*(\\w+)$)|((?i)\')|((?i)(#|\\/\\/))|((?i)[a-z_]\\w*)|((?i)\\((array|int|integer|string|bool|boolean|object|float|double)\\))|((?i)\\?\\>)|((?i)0[xX][\\da-f]+)|((?i)\\$[a-z_]\\w*)|((?i)\\d\\d*|\\b0\\b)|((?i)0[0-7]+)|((?i)(\\d*\\.\\d+)|(\\d+\\.\\d*))|((?i)((\\d+|((\\d*\\.\\d+)|(\\d+\\.\\d*)))[eE][+-]?\\d+))/',
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
             9 => '/((?i)\\s@\\w+\\s)|((?i)((https?|ftp):\\/\\/[\\w\\?\\.\\-\\&=\\/%+]+)|(^|[\\s,!?])www\\.\\w+\\.\\w+[\\w\\?\\.\\&=\\/%+]*)|((?i)\\w+[\\.\\w\\-]+@(\\w+[\\.\\w\\-])+)|((?i)\\bnote:)|((?i)\\$\\w+\\s*:.*\\$)/',
60 60
             10 => '//',
61 61
         );
62
-        $this->_counts = array (
62
+        $this->_counts = array(
63 63
             -1 =>
64
-            array (
64
+            array(
65 65
                 0 => 2,
66 66
             ),
67 67
             0 =>
68
-            array (
68
+            array(
69 69
                 0 => 0,
70 70
                 1 => 0,
71 71
                 2 => 0,
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 16 => 5,
86 86
             ),
87 87
             1 =>
88
-            array (
88
+            array(
89 89
                 0 => 0,
90 90
                 1 => 0,
91 91
                 2 => 0,
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
                 17 => 5,
107 107
             ),
108 108
             2 =>
109
-            array (
109
+            array(
110 110
                 0 => 0,
111 111
                 1 => 0,
112 112
                 2 => 0,
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 16 => 5,
127 127
             ),
128 128
             3 =>
129
-            array (
129
+            array(
130 130
                 0 => 0,
131 131
                 1 => 0,
132 132
                 2 => 0,
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                 16 => 5,
147 147
             ),
148 148
             4 =>
149
-            array (
149
+            array(
150 150
                 0 => 0,
151 151
                 1 => 3,
152 152
                 2 => 1,
@@ -154,29 +154,29 @@  discard block
 block discarded – undo
154 154
                 4 => 0,
155 155
             ),
156 156
             5 =>
157
-            array (
157
+            array(
158 158
                 0 => 0,
159 159
                 1 => 0,
160 160
                 2 => 0,
161 161
             ),
162 162
             6 =>
163
-            array (
163
+            array(
164 164
                 0 => 0,
165 165
                 1 => 0,
166 166
                 2 => 0,
167 167
             ),
168 168
             7 =>
169
-            array (
169
+            array(
170 170
                 0 => 0,
171 171
                 1 => 0,
172 172
                 2 => 0,
173 173
             ),
174 174
             8 =>
175
-            array (
175
+            array(
176 176
                 0 => 0,
177 177
             ),
178 178
             9 =>
179
-            array (
179
+            array(
180 180
                 0 => 0,
181 181
                 1 => 3,
182 182
                 2 => 1,
@@ -184,16 +184,16 @@  discard block
 block discarded – undo
184 184
                 4 => 0,
185 185
             ),
186 186
             10 =>
187
-            array (
187
+            array(
188 188
             ),
189 189
         );
190
-        $this->_delim = array (
190
+        $this->_delim = array(
191 191
             -1 =>
192
-            array (
192
+            array(
193 193
                 0 => 'inlinetags',
194 194
             ),
195 195
             0 =>
196
-            array (
196
+            array(
197 197
                 0 => 'brackets',
198 198
                 1 => 'brackets',
199 199
                 2 => 'brackets',
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
                 16 => '',
214 214
             ),
215 215
             1 =>
216
-            array (
216
+            array(
217 217
                 0 => 'brackets',
218 218
                 1 => 'brackets',
219 219
                 2 => 'brackets',
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
                 17 => '',
235 235
             ),
236 236
             2 =>
237
-            array (
237
+            array(
238 238
                 0 => 'brackets',
239 239
                 1 => 'brackets',
240 240
                 2 => 'brackets',
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                 16 => '',
255 255
             ),
256 256
             3 =>
257
-            array (
257
+            array(
258 258
                 0 => 'brackets',
259 259
                 1 => 'brackets',
260 260
                 2 => 'brackets',
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
                 16 => '',
275 275
             ),
276 276
             4 =>
277
-            array (
277
+            array(
278 278
                 0 => '',
279 279
                 1 => '',
280 280
                 2 => '',
@@ -282,29 +282,29 @@  discard block
 block discarded – undo
282 282
                 4 => '',
283 283
             ),
284 284
             5 =>
285
-            array (
285
+            array(
286 286
                 0 => '',
287 287
                 1 => '',
288 288
                 2 => '',
289 289
             ),
290 290
             6 =>
291
-            array (
291
+            array(
292 292
                 0 => '',
293 293
                 1 => '',
294 294
                 2 => '',
295 295
             ),
296 296
             7 =>
297
-            array (
297
+            array(
298 298
                 0 => '',
299 299
                 1 => '',
300 300
                 2 => '',
301 301
             ),
302 302
             8 =>
303
-            array (
303
+            array(
304 304
                 0 => '',
305 305
             ),
306 306
             9 =>
307
-            array (
307
+            array(
308 308
                 0 => '',
309 309
                 1 => '',
310 310
                 2 => '',
@@ -312,16 +312,16 @@  discard block
 block discarded – undo
312 312
                 4 => '',
313 313
             ),
314 314
             10 =>
315
-            array (
315
+            array(
316 316
             ),
317 317
         );
318
-        $this->_inner = array (
318
+        $this->_inner = array(
319 319
             -1 =>
320
-            array (
320
+            array(
321 321
                 0 => 'code',
322 322
             ),
323 323
             0 =>
324
-            array (
324
+            array(
325 325
                 0 => 'code',
326 326
                 1 => 'code',
327 327
                 2 => 'code',
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
                 16 => 'number',
342 342
             ),
343 343
             1 =>
344
-            array (
344
+            array(
345 345
                 0 => 'code',
346 346
                 1 => 'code',
347 347
                 2 => 'code',
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
                 17 => 'number',
363 363
             ),
364 364
             2 =>
365
-            array (
365
+            array(
366 366
                 0 => 'code',
367 367
                 1 => 'code',
368 368
                 2 => 'code',
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
                 16 => 'number',
383 383
             ),
384 384
             3 =>
385
-            array (
385
+            array(
386 386
                 0 => 'code',
387 387
                 1 => 'code',
388 388
                 2 => 'code',
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
                 16 => 'number',
403 403
             ),
404 404
             4 =>
405
-            array (
405
+            array(
406 406
                 0 => 'inlinedoc',
407 407
                 1 => 'url',
408 408
                 2 => 'url',
@@ -410,29 +410,29 @@  discard block
 block discarded – undo
410 410
                 4 => 'inlinedoc',
411 411
             ),
412 412
             5 =>
413
-            array (
413
+            array(
414 414
                 0 => 'special',
415 415
                 1 => 'var',
416 416
                 2 => 'var',
417 417
             ),
418 418
             6 =>
419
-            array (
419
+            array(
420 420
                 0 => 'special',
421 421
                 1 => 'var',
422 422
                 2 => 'var',
423 423
             ),
424 424
             7 =>
425
-            array (
425
+            array(
426 426
                 0 => 'special',
427 427
                 1 => 'var',
428 428
                 2 => 'var',
429 429
             ),
430 430
             8 =>
431
-            array (
431
+            array(
432 432
                 0 => 'special',
433 433
             ),
434 434
             9 =>
435
-            array (
435
+            array(
436 436
                 0 => 'inlinedoc',
437 437
                 1 => 'url',
438 438
                 2 => 'url',
@@ -440,10 +440,10 @@  discard block
 block discarded – undo
440 440
                 4 => 'inlinedoc',
441 441
             ),
442 442
             10 =>
443
-            array (
443
+            array(
444 444
             ),
445 445
         );
446
-        $this->_end = array (
446
+        $this->_end = array(
447 447
             0 => '/(?i)\\?\\>/',
448 448
             1 => '/(?i)\\}/',
449 449
             2 => '/(?i)\\)/',
@@ -456,13 +456,13 @@  discard block
 block discarded – undo
456 456
             9 => '/(?mi)$|(?=\\?\\>)/',
457 457
             10 => '/(?i)\\<\\?(php|=)?/',
458 458
         );
459
-        $this->_states = array (
459
+        $this->_states = array(
460 460
             -1 =>
461
-            array (
461
+            array(
462 462
                 0 => 0,
463 463
             ),
464 464
             0 =>
465
-            array (
465
+            array(
466 466
                 0 => 1,
467 467
                 1 => 2,
468 468
                 2 => 3,
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
                 16 => -1,
483 483
             ),
484 484
             1 =>
485
-            array (
485
+            array(
486 486
                 0 => 1,
487 487
                 1 => 2,
488 488
                 2 => 3,
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
                 17 => -1,
504 504
             ),
505 505
             2 =>
506
-            array (
506
+            array(
507 507
                 0 => 1,
508 508
                 1 => 2,
509 509
                 2 => 3,
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
                 16 => -1,
524 524
             ),
525 525
             3 =>
526
-            array (
526
+            array(
527 527
                 0 => 1,
528 528
                 1 => 2,
529 529
                 2 => 3,
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
                 16 => -1,
544 544
             ),
545 545
             4 =>
546
-            array (
546
+            array(
547 547
                 0 => -1,
548 548
                 1 => -1,
549 549
                 2 => -1,
@@ -551,29 +551,29 @@  discard block
 block discarded – undo
551 551
                 4 => -1,
552 552
             ),
553 553
             5 =>
554
-            array (
554
+            array(
555 555
                 0 => -1,
556 556
                 1 => -1,
557 557
                 2 => -1,
558 558
             ),
559 559
             6 =>
560
-            array (
560
+            array(
561 561
                 0 => -1,
562 562
                 1 => -1,
563 563
                 2 => -1,
564 564
             ),
565 565
             7 =>
566
-            array (
566
+            array(
567 567
                 0 => -1,
568 568
                 1 => -1,
569 569
                 2 => -1,
570 570
             ),
571 571
             8 =>
572
-            array (
572
+            array(
573 573
                 0 => -1,
574 574
             ),
575 575
             9 =>
576
-            array (
576
+            array(
577 577
                 0 => -1,
578 578
                 1 => -1,
579 579
                 2 => -1,
@@ -581,16 +581,16 @@  discard block
 block discarded – undo
581 581
                 4 => -1,
582 582
             ),
583 583
             10 =>
584
-            array (
584
+            array(
585 585
             ),
586 586
         );
587
-        $this->_keywords = array (
587
+        $this->_keywords = array(
588 588
             -1 =>
589
-            array (
589
+            array(
590 590
                 0 => -1,
591 591
             ),
592 592
             0 =>
593
-            array (
593
+            array(
594 594
                 0 => -1,
595 595
                 1 => -1,
596 596
                 2 => -1,
@@ -601,34 +601,34 @@  discard block
 block discarded – undo
601 601
                 7 => -1,
602 602
                 8 => -1,
603 603
                 9 =>
604
-                array (
604
+                array(
605 605
                     'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
606 606
                     'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
607 607
                 ),
608 608
                 10 =>
609
-                array (
609
+                array(
610 610
                 ),
611 611
                 11 =>
612
-                array (
612
+                array(
613 613
                 ),
614 614
                 12 =>
615
-                array (
615
+                array(
616 616
                 ),
617 617
                 13 =>
618
-                array (
618
+                array(
619 619
                 ),
620 620
                 14 =>
621
-                array (
621
+                array(
622 622
                 ),
623 623
                 15 =>
624
-                array (
624
+                array(
625 625
                 ),
626 626
                 16 =>
627
-                array (
627
+                array(
628 628
                 ),
629 629
             ),
630 630
             1 =>
631
-            array (
631
+            array(
632 632
                 0 => -1,
633 633
                 1 => -1,
634 634
                 2 => -1,
@@ -639,35 +639,35 @@  discard block
 block discarded – undo
639 639
                 7 => -1,
640 640
                 8 => -1,
641 641
                 9 =>
642
-                array (
642
+                array(
643 643
                     'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
644 644
                     'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
645 645
                 ),
646 646
                 10 =>
647
-                array (
647
+                array(
648 648
                 ),
649 649
                 11 => -1,
650 650
                 12 =>
651
-                array (
651
+                array(
652 652
                 ),
653 653
                 13 =>
654
-                array (
654
+                array(
655 655
                 ),
656 656
                 14 =>
657
-                array (
657
+                array(
658 658
                 ),
659 659
                 15 =>
660
-                array (
660
+                array(
661 661
                 ),
662 662
                 16 =>
663
-                array (
663
+                array(
664 664
                 ),
665 665
                 17 =>
666
-                array (
666
+                array(
667 667
                 ),
668 668
             ),
669 669
             2 =>
670
-            array (
670
+            array(
671 671
                 0 => -1,
672 672
                 1 => -1,
673 673
                 2 => -1,
@@ -678,34 +678,34 @@  discard block
 block discarded – undo
678 678
                 7 => -1,
679 679
                 8 => -1,
680 680
                 9 =>
681
-                array (
681
+                array(
682 682
                     'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
683 683
                     'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
684 684
                 ),
685 685
                 10 =>
686
-                array (
686
+                array(
687 687
                 ),
688 688
                 11 =>
689
-                array (
689
+                array(
690 690
                 ),
691 691
                 12 =>
692
-                array (
692
+                array(
693 693
                 ),
694 694
                 13 =>
695
-                array (
695
+                array(
696 696
                 ),
697 697
                 14 =>
698
-                array (
698
+                array(
699 699
                 ),
700 700
                 15 =>
701
-                array (
701
+                array(
702 702
                 ),
703 703
                 16 =>
704
-                array (
704
+                array(
705 705
                 ),
706 706
             ),
707 707
             3 =>
708
-            array (
708
+            array(
709 709
                 0 => -1,
710 710
                 1 => -1,
711 711
                 2 => -1,
@@ -716,117 +716,117 @@  discard block
 block discarded – undo
716 716
                 7 => -1,
717 717
                 8 => -1,
718 718
                 9 =>
719
-                array (
719
+                array(
720 720
                     'constants' => '/^(DIRECTORY_SEPARATOR|PATH_SEPARATOR)$/',
721 721
                     'reserved' => '/^((?i)echo|foreach|else|if|elseif|for|as|while|break|continue|class|const|declare|switch|case|endfor|endswitch|endforeach|endif|array|default|do|enddeclare|eval|exit|die|extends|function|global|include|include_once|require|require_once|isset|empty|list|new|static|unset|var|return|try|catch|final|throw|public|private|protected|abstract|interface|implements|define|__file__|__line__|__class__|__method__|__function__|null|true|false|and|or|xor)$/',
722 722
                 ),
723 723
                 10 =>
724
-                array (
724
+                array(
725 725
                 ),
726 726
                 11 =>
727
-                array (
727
+                array(
728 728
                 ),
729 729
                 12 =>
730
-                array (
730
+                array(
731 731
                 ),
732 732
                 13 =>
733
-                array (
733
+                array(
734 734
                 ),
735 735
                 14 =>
736
-                array (
736
+                array(
737 737
                 ),
738 738
                 15 =>
739
-                array (
739
+                array(
740 740
                 ),
741 741
                 16 =>
742
-                array (
742
+                array(
743 743
                 ),
744 744
             ),
745 745
             4 =>
746
-            array (
746
+            array(
747 747
                 0 =>
748
-                array (
748
+                array(
749 749
                 ),
750 750
                 1 =>
751
-                array (
751
+                array(
752 752
                 ),
753 753
                 2 =>
754
-                array (
754
+                array(
755 755
                 ),
756 756
                 3 =>
757
-                array (
757
+                array(
758 758
                 ),
759 759
                 4 =>
760
-                array (
760
+                array(
761 761
                 ),
762 762
             ),
763 763
             5 =>
764
-            array (
764
+            array(
765 765
                 0 =>
766
-                array (
766
+                array(
767 767
                 ),
768 768
                 1 =>
769
-                array (
769
+                array(
770 770
                 ),
771 771
                 2 =>
772
-                array (
772
+                array(
773 773
                 ),
774 774
             ),
775 775
             6 =>
776
-            array (
776
+            array(
777 777
                 0 =>
778
-                array (
778
+                array(
779 779
                 ),
780 780
                 1 =>
781
-                array (
781
+                array(
782 782
                 ),
783 783
                 2 =>
784
-                array (
784
+                array(
785 785
                 ),
786 786
             ),
787 787
             7 =>
788
-            array (
788
+            array(
789 789
                 0 =>
790
-                array (
790
+                array(
791 791
                 ),
792 792
                 1 =>
793
-                array (
793
+                array(
794 794
                 ),
795 795
                 2 =>
796
-                array (
796
+                array(
797 797
                 ),
798 798
             ),
799 799
             8 =>
800
-            array (
800
+            array(
801 801
                 0 =>
802
-                array (
802
+                array(
803 803
                 ),
804 804
             ),
805 805
             9 =>
806
-            array (
806
+            array(
807 807
                 0 =>
808
-                array (
808
+                array(
809 809
                 ),
810 810
                 1 =>
811
-                array (
811
+                array(
812 812
                 ),
813 813
                 2 =>
814
-                array (
814
+                array(
815 815
                 ),
816 816
                 3 =>
817
-                array (
817
+                array(
818 818
                 ),
819 819
                 4 =>
820
-                array (
820
+                array(
821 821
                 ),
822 822
             ),
823 823
             10 =>
824
-            array (
824
+            array(
825 825
             ),
826 826
         );
827
-        $this->_parts = array (
827
+        $this->_parts = array(
828 828
             0 =>
829
-            array (
829
+            array(
830 830
                 0 => NULL,
831 831
                 1 => NULL,
832 832
                 2 => NULL,
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
                 16 => NULL,
847 847
             ),
848 848
             1 =>
849
-            array (
849
+            array(
850 850
                 0 => NULL,
851 851
                 1 => NULL,
852 852
                 2 => NULL,
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
                 17 => NULL,
868 868
             ),
869 869
             2 =>
870
-            array (
870
+            array(
871 871
                 0 => NULL,
872 872
                 1 => NULL,
873 873
                 2 => NULL,
@@ -887,7 +887,7 @@  discard block
 block discarded – undo
887 887
                 16 => NULL,
888 888
             ),
889 889
             3 =>
890
-            array (
890
+            array(
891 891
                 0 => NULL,
892 892
                 1 => NULL,
893 893
                 2 => NULL,
@@ -907,7 +907,7 @@  discard block
 block discarded – undo
907 907
                 16 => NULL,
908 908
             ),
909 909
             4 =>
910
-            array (
910
+            array(
911 911
                 0 => NULL,
912 912
                 1 => NULL,
913 913
                 2 => NULL,
@@ -915,29 +915,29 @@  discard block
 block discarded – undo
915 915
                 4 => NULL,
916 916
             ),
917 917
             5 =>
918
-            array (
918
+            array(
919 919
                 0 => NULL,
920 920
                 1 => NULL,
921 921
                 2 => NULL,
922 922
             ),
923 923
             6 =>
924
-            array (
924
+            array(
925 925
                 0 => NULL,
926 926
                 1 => NULL,
927 927
                 2 => NULL,
928 928
             ),
929 929
             7 =>
930
-            array (
930
+            array(
931 931
                 0 => NULL,
932 932
                 1 => NULL,
933 933
                 2 => NULL,
934 934
             ),
935 935
             8 =>
936
-            array (
936
+            array(
937 937
                 0 => NULL,
938 938
             ),
939 939
             9 =>
940
-            array (
940
+            array(
941 941
                 0 => NULL,
942 942
                 1 => NULL,
943 943
                 2 => NULL,
@@ -945,16 +945,16 @@  discard block
 block discarded – undo
945 945
                 4 => NULL,
946 946
             ),
947 947
             10 =>
948
-            array (
948
+            array(
949 949
             ),
950 950
         );
951
-        $this->_subst = array (
951
+        $this->_subst = array(
952 952
             -1 =>
953
-            array (
953
+            array(
954 954
                 0 => false,
955 955
             ),
956 956
             0 =>
957
-            array (
957
+            array(
958 958
                 0 => false,
959 959
                 1 => false,
960 960
                 2 => false,
@@ -974,7 +974,7 @@  discard block
 block discarded – undo
974 974
                 16 => false,
975 975
             ),
976 976
             1 =>
977
-            array (
977
+            array(
978 978
                 0 => false,
979 979
                 1 => false,
980 980
                 2 => false,
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
                 17 => false,
996 996
             ),
997 997
             2 =>
998
-            array (
998
+            array(
999 999
                 0 => false,
1000 1000
                 1 => false,
1001 1001
                 2 => false,
@@ -1015,7 +1015,7 @@  discard block
 block discarded – undo
1015 1015
                 16 => false,
1016 1016
             ),
1017 1017
             3 =>
1018
-            array (
1018
+            array(
1019 1019
                 0 => false,
1020 1020
                 1 => false,
1021 1021
                 2 => false,
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
                 16 => false,
1036 1036
             ),
1037 1037
             4 =>
1038
-            array (
1038
+            array(
1039 1039
                 0 => false,
1040 1040
                 1 => false,
1041 1041
                 2 => false,
@@ -1043,29 +1043,29 @@  discard block
 block discarded – undo
1043 1043
                 4 => false,
1044 1044
             ),
1045 1045
             5 =>
1046
-            array (
1046
+            array(
1047 1047
                 0 => false,
1048 1048
                 1 => false,
1049 1049
                 2 => false,
1050 1050
             ),
1051 1051
             6 =>
1052
-            array (
1052
+            array(
1053 1053
                 0 => false,
1054 1054
                 1 => false,
1055 1055
                 2 => false,
1056 1056
             ),
1057 1057
             7 =>
1058
-            array (
1058
+            array(
1059 1059
                 0 => false,
1060 1060
                 1 => false,
1061 1061
                 2 => false,
1062 1062
             ),
1063 1063
             8 =>
1064
-            array (
1064
+            array(
1065 1065
                 0 => false,
1066 1066
             ),
1067 1067
             9 =>
1068
-            array (
1068
+            array(
1069 1069
                 0 => false,
1070 1070
                 1 => false,
1071 1071
                 2 => false,
@@ -1073,12 +1073,12 @@  discard block
 block discarded – undo
1073 1073
                 4 => false,
1074 1074
             ),
1075 1075
             10 =>
1076
-            array (
1076
+            array(
1077 1077
             ),
1078 1078
         );
1079
-        $this->_conditions = array (
1079
+        $this->_conditions = array(
1080 1080
         );
1081
-        $this->_kwmap = array (
1081
+        $this->_kwmap = array(
1082 1082
             'constants' => 'reserved',
1083 1083
             'reserved' => 'reserved',
1084 1084
         );
Please login to merge, or discard this patch.
framework/3rdParty/TextHighlighter/Text/Highlighter/Renderer/Html.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
  * @ignore
25 25
  */
26 26
 
27
-require_once dirname(__FILE__).'/../Renderer.php';
28
-require_once dirname(__FILE__).'/../Renderer/Array.php';
27
+require_once dirname(__FILE__) . '/../Renderer.php';
28
+require_once dirname(__FILE__) . '/../Renderer/Array.php';
29 29
 
30 30
 // BC trick : only define constants if Text/Highlighter.php
31 31
 // is not yet included
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
      * use numbered list, deprecated, use HL_NUMBERS_OL instaed
38 38
      * @deprecated
39 39
      */
40
-    define ('HL_NUMBERS_LI'    ,    1);
40
+    define('HL_NUMBERS_LI', 1);
41 41
     /**
42 42
      * Use 2-column table with line numbers in left column and code in  right column.
43 43
      */
44
-    define ('HL_NUMBERS_TABLE'    , 2);
44
+    define('HL_NUMBERS_TABLE', 2);
45 45
     /**#@-*/
46 46
 }
47 47
 
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
 /**
53 53
  * Use numbered list
54 54
  */
55
-define ('HL_NUMBERS_OL',    1);
55
+define('HL_NUMBERS_OL', 1);
56 56
 /**
57 57
  * Use non-numbered list
58 58
  */
59
-define ('HL_NUMBERS_UL',    3);
59
+define('HL_NUMBERS_UL', 3);
60 60
 /**#@-*/
61 61
 
62 62
 
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     {
224 224
         $this->_output = '';
225 225
         if (isset($this->_options['numbers'])) {
226
-            $this->_numbers = (int)$this->_options['numbers'];
226
+            $this->_numbers = (int) $this->_options['numbers'];
227 227
             if ($this->_numbers != HL_NUMBERS_LI
228 228
              && $this->_numbers != HL_NUMBERS_UL
229 229
              && $this->_numbers != HL_NUMBERS_OL
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
         // get parent's output
290 290
         parent::finalize();
291 291
         $output = parent::getOutput();
292
-        if(empty($output))
292
+        if (empty($output))
293 293
         	return;
294 294
 
295 295
 		$html_output = '';
@@ -326,19 +326,19 @@  discard block
 block discarded – undo
326 326
 
327 327
 
328 328
             $start = '';
329
-            if ($this->_numbers == HL_NUMBERS_OL && intval($this->_numbers_start) > 0)  {
329
+            if ($this->_numbers == HL_NUMBERS_OL && intval($this->_numbers_start) > 0) {
330 330
                 $start = ' start="' . $this->_numbers_start . '"';
331 331
             }
332 332
 
333 333
             $list_tag = 'ol';
334
-            if ($this->_numbers == HL_NUMBERS_UL)  {
334
+            if ($this->_numbers == HL_NUMBERS_UL) {
335 335
                 $list_tag = 'ul';
336 336
             }
337 337
 
338 338
 
339 339
             $this->_output = '<' . $list_tag . $start
340 340
                              . ' ' . $this->_getStyling('main', false) . '>'
341
-                             . $this->_output . '</'. $list_tag .'>';
341
+                             . $this->_output . '</' . $list_tag . '>';
342 342
 
343 343
         // render a table
344 344
         } else if ($this->_numbers == HL_NUMBERS_TABLE) {
@@ -351,13 +351,13 @@  discard block
 block discarded – undo
351 351
 
352 352
             $numbers = '';
353 353
 
354
-            $nlines = substr_count($html_output,"\n")+1;
355
-            for ($i=1; $i <= $nlines; $i++) {
354
+            $nlines = substr_count($html_output, "\n") + 1;
355
+            for ($i = 1; $i <= $nlines; $i++) {
356 356
                 $numbers .= ($start_number + $i) . "\n";
357 357
             }
358 358
             $this->_output = '<table ' . $this->_getStyling('table', false) . ' width="100%"><tr>' .
359
-                             '<td '. $this->_getStyling('gutter', false) .' align="right" valign="top">' .
360
-                             '<pre>' . $numbers . '</pre></td><td '. $this->_getStyling('main', false) .
359
+                             '<td ' . $this->_getStyling('gutter', false) . ' align="right" valign="top">' .
360
+                             '<pre>' . $numbers . '</pre></td><td ' . $this->_getStyling('main', false) .
361 361
                              ' valign="top"><pre>' .
362 362
                              $html_output . '</pre></td></tr></table>';
363 363
         }
@@ -384,13 +384,13 @@  discard block
 block discarded – undo
384 384
             in_array($key, $this->_doclinks['elements'])
385 385
         ) {
386 386
 
387
-            $link = '<a href="'. sprintf($this->_doclinks['url'], $content) . '"';
387
+            $link = '<a href="' . sprintf($this->_doclinks['url'], $content) . '"';
388 388
             if (!empty($this->_doclinks['target'])) {
389
-                $link.= ' target="' . $this->_doclinks['target'] . '"';
389
+                $link .= ' target="' . $this->_doclinks['target'] . '"';
390 390
             }
391 391
             $link .= '>';
392
-            $link.= $content;
393
-            $link.= '</a>';
392
+            $link .= $content;
393
+            $link .= '</a>';
394 394
 
395 395
             $content = $link;
396 396
 
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         if (!empty($this->_style_map) &&
415 415
             !empty($this->_style_map[$class])
416 416
         ) {
417
-            $attrib = 'style="'. $this->_style_map[$class] .'"';
417
+            $attrib = 'style="' . $this->_style_map[$class] . '"';
418 418
         }
419 419
         if (!empty($this->_class_map) &&
420 420
             !empty($this->_class_map[$class])
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
             if ($attrib) {
423 423
                 $attrib .= ' ';
424 424
             }
425
-            $attrib .= 'class="'. $this->_getFullClassName($this->_class_map[$class]) .'"';
425
+            $attrib .= 'class="' . $this->_getFullClassName($this->_class_map[$class]) . '"';
426 426
         }
427 427
 
428 428
         if ($span_tag) {
Please login to merge, or discard this patch.