automated-typo3-update/tests/Fixtures/CodeSniffer/Tokenizers/TypoScript/expected.php

1141 lines
18 KiB
PHP
Raw Normal View History

<?php
return [
0 =>
array (
'code' => 'COMMENT',
'type' => 'COMMENT',
'line' => 1,
'content' => '# Comment',
'column' => 1,
'length' => 9,
'level' => 0,
'conditions' =>
array (
),
),
1 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 1,
'content' => '
',
'column' => 10,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
2 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 2,
'content' => 'plugin',
'column' => 1,
'length' => 6,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin',
),
3 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 2,
'content' => ' ',
'column' => 7,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
4 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 2,
'content' => '{',
'column' => 8,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
5 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 2,
'content' => '
',
'column' => 9,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
6 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 3,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
7 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 3,
'content' => 'tx_example',
'column' => 5,
'length' => 10,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example',
),
8 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 3,
'content' => ' ',
'column' => 15,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
9 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 3,
'content' => '{',
'column' => 16,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
10 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 3,
'content' => '
',
'column' => 17,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
11 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 4,
'content' => ' ',
'column' => 1,
'length' => 8,
'level' => 0,
'conditions' =>
array (
),
),
12 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 4,
'content' => 'settings',
'column' => 9,
'length' => 8,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example.settings',
),
13 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 4,
'content' => ' ',
'column' => 17,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
14 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 4,
'content' => '=',
'column' => 18,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
15 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 4,
'content' => ' ',
'column' => 19,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
16 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 4,
'content' => 'TEST',
'column' => 20,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
17 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 4,
'content' => '
',
'column' => 24,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
18 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 5,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
19 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 5,
'content' => '}',
'column' => 5,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
20 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 5,
'content' => '
',
'column' => 6,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
21 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 6,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
22 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 6,
'content' => 'tx_example_2',
'column' => 5,
'length' => 12,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example_2',
),
23 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 6,
'content' => ' ',
'column' => 17,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
24 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 6,
'content' => '{',
'column' => 18,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
25 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 6,
'content' => '
',
'column' => 19,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
26 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 7,
'content' => ' ',
'column' => 1,
'length' => 8,
'level' => 0,
'conditions' =>
array (
),
),
27 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 7,
'content' => 'settings',
'column' => 9,
'length' => 8,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example_2.settings',
),
28 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 7,
'content' => ' ',
'column' => 17,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
29 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 7,
'content' => '=',
'column' => 18,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
30 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 7,
'content' => ' ',
'column' => 19,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
31 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 7,
'content' => 'TEST',
'column' => 20,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
32 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 7,
'content' => '
',
'column' => 24,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
33 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 8,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
34 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 8,
'content' => '}',
'column' => 5,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
35 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 8,
'content' => '
',
'column' => 6,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
36 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 9,
'content' => '}',
'column' => 1,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
37 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 9,
'content' => '
',
'column' => 2,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
38 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 10,
'content' => 'plugin.tx_example.view.something',
'column' => 1,
'length' => 32,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example.view.something',
),
39 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 10,
'content' => ' ',
'column' => 33,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
40 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 10,
'content' => '=',
'column' => 34,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
41 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 10,
'content' => ' ',
'column' => 35,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
42 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 10,
'content' => '1',
'column' => 36,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
43 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 10,
'content' => '
',
'column' => 37,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
44 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 11,
'content' => 'plugin.tx_example',
'column' => 1,
'length' => 17,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example',
),
45 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 11,
'content' => ' ',
'column' => 18,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
46 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 11,
'content' => '{',
'column' => 19,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
47 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 11,
'content' => '
',
'column' => 20,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
48 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 12,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
49 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 12,
'content' => 'view',
'column' => 5,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example.view',
),
50 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 12,
'content' => ' ',
'column' => 9,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
51 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 12,
'content' => '{',
'column' => 10,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
52 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 12,
'content' => '
',
'column' => 11,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
53 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 13,
'content' => ' ',
'column' => 1,
'length' => 8,
'level' => 0,
'conditions' =>
array (
),
),
54 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 13,
'content' => 'something',
'column' => 9,
'length' => 9,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example.view.something',
),
55 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 13,
'content' => ' ',
'column' => 18,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
56 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 13,
'content' => '=',
'column' => 19,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
57 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 13,
'content' => ' ',
'column' => 20,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
58 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 13,
'content' => '1',
'column' => 21,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
59 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 13,
'content' => '
',
'column' => 22,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
60 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 14,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
61 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 14,
'content' => '}',
'column' => 5,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
62 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 14,
'content' => '
',
'column' => 6,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
63 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 15,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
64 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 15,
'content' => 'settings2',
'column' => 5,
'length' => 9,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'plugin.tx_example.settings2',
),
65 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 15,
'content' => ' ',
'column' => 14,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
66 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 15,
'content' => '=',
'column' => 15,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
67 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 15,
'content' => ' ',
'column' => 16,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
68 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 15,
'content' => 'TEST',
'column' => 17,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
69 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 15,
'content' => '
',
'column' => 21,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
70 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 16,
'content' => '}',
'column' => 1,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
71 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 16,
'content' => '
',
'column' => 2,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
72 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 17,
'content' => 'config',
'column' => 1,
'length' => 6,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'config',
),
73 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 17,
'content' => ' ',
'column' => 7,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
74 =>
array (
'code' => 'BR_OPEN',
'type' => 'BR_OPEN',
'line' => 17,
'content' => '{',
'column' => 8,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
75 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 17,
'content' => '
',
'column' => 9,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
76 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 18,
'content' => ' ',
'column' => 1,
'length' => 4,
'level' => 0,
'conditions' =>
array (
),
),
77 =>
array (
'code' => 'OBJ_IDENT',
'type' => 'OBJ_IDENT',
'line' => 18,
'content' => 'enable_realurl',
'column' => 5,
'length' => 14,
'level' => 0,
'conditions' =>
array (
),
'fqObjectIdentifier' => 'config.enable_realurl',
),
78 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 18,
'content' => ' ',
'column' => 19,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
79 =>
array (
'code' => 'OP_ASSIGN',
'type' => 'OP_ASSIGN',
'line' => 18,
'content' => '=',
'column' => 20,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
80 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 18,
'content' => ' ',
'column' => 21,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
81 =>
array (
'code' => 'RVALUE',
'type' => 'RVALUE',
'line' => 18,
'content' => '1',
'column' => 22,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
82 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 18,
'content' => '
',
'column' => 23,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
83 =>
array (
'code' => 'BR_CLOSE',
'type' => 'BR_CLOSE',
'line' => 19,
'content' => '}',
'column' => 1,
'length' => 1,
'level' => 0,
'conditions' =>
array (
),
),
84 =>
array (
'code' => 'WS',
'type' => 'WS',
'line' => 19,
'content' => '
',
'column' => 2,
'length' => 0,
'level' => 0,
'conditions' =>
array (
),
),
];