Completed
Push — master ( 8b5a3c...b0cbd6 )
by cam
01:56
created
ecrire/tests/Filtre/RecupererNumeroTest.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -13,42 +13,42 @@
 block discarded – undo
13 13
 
14 14
 class RecupererNumeroTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresRecupererNumero')]
21
-	public function testFiltresRecupererNumero($expected, ...$args): void {
22
-		$actual = recuperer_numero(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresRecupererNumero')]
21
+    public function testFiltresRecupererNumero($expected, ...$args): void {
22
+        $actual = recuperer_numero(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresRecupererNumero(): array {
27
-		return [
28
-			0 => [
29
-				0 => '1',
30
-				1 => '1. titre',
31
-			],
32
-			1 => [
33
-				0 => '',
34
-				1 => '1.titre',
35
-			],
36
-			2 => [
37
-				0 => '',
38
-				1 => '1 .titre',
39
-			],
40
-			3 => [
41
-				0 => '',
42
-				1 => '1 . titre',
43
-			],
44
-			4 => [
45
-				0 => '0',
46
-				1 => '0. titre',
47
-			],
48
-			5 => [
49
-				0 => '',
50
-				1 => '-1. titre',
51
-			],
52
-		];
53
-	}
26
+    public static function providerFiltresRecupererNumero(): array {
27
+        return [
28
+            0 => [
29
+                0 => '1',
30
+                1 => '1. titre',
31
+            ],
32
+            1 => [
33
+                0 => '',
34
+                1 => '1.titre',
35
+            ],
36
+            2 => [
37
+                0 => '',
38
+                1 => '1 .titre',
39
+            ],
40
+            3 => [
41
+                0 => '',
42
+                1 => '1 . titre',
43
+            ],
44
+            4 => [
45
+                0 => '0',
46
+                1 => '0. titre',
47
+            ],
48
+            5 => [
49
+                0 => '',
50
+                1 => '-1. titre',
51
+            ],
52
+        ];
53
+    }
54 54
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/EchapperTagsTest.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -13,46 +13,46 @@
 block discarded – undo
13 13
 
14 14
 class EchapperTagsTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresEchapperTags')]
21
-	public function testFiltresEchapperTags($expected, ...$args): void {
22
-		$actual = echapper_tags(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresEchapperTags')]
21
+    public function testFiltresEchapperTags($expected, ...$args): void {
22
+        $actual = echapper_tags(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresEchapperTags(): array {
27
-		return [
28
-			0 => [
29
-				0 => '',
30
-				1 => '',
31
-			],
32
-			1 => [
33
-				0 => '0',
34
-				1 => '0',
35
-			],
36
-			2 => [
37
-				0 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
38
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
39
-			],
40
-			3 => [
41
-				0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
42
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
43
-			],
44
-			4 => [
45
-				0 => 'Un texte sans entites &&lt;&gt;"\'',
46
-				1 => 'Un texte sans entites &<>"\'',
47
-			],
48
-			5 => [
49
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} &lt;code&gt;du code&lt;/code&gt;',
50
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
51
-			],
52
-			6 => [
53
-				0 => 'Un modele &lt;modeleinexistant|lien=[-&gt;http://www.spip.net]>',
54
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
55
-			],
56
-		];
57
-	}
26
+    public static function providerFiltresEchapperTags(): array {
27
+        return [
28
+            0 => [
29
+                0 => '',
30
+                1 => '',
31
+            ],
32
+            1 => [
33
+                0 => '0',
34
+                1 => '0',
35
+            ],
36
+            2 => [
37
+                0 => 'Un texte avec des &lt;a href="http://spip.net"&gt;liens&lt;/a&gt; [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
38
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
39
+            ],
40
+            3 => [
41
+                0 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
42
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
43
+            ],
44
+            4 => [
45
+                0 => 'Un texte sans entites &&lt;&gt;"\'',
46
+                1 => 'Un texte sans entites &<>"\'',
47
+            ],
48
+            5 => [
49
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} &lt;code&gt;du code&lt;/code&gt;',
50
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
51
+            ],
52
+            6 => [
53
+                0 => 'Un modele &lt;modeleinexistant|lien=[-&gt;http://www.spip.net]>',
54
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
55
+            ],
56
+        ];
57
+    }
58 58
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/AppliquerFiltreTest.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -13,28 +13,28 @@
 block discarded – undo
13 13
 
14 14
 class AppliquerFiltreTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresAppliquerFiltre')]
21
-	public function testFiltresAppliquerFiltre($expected, ...$args): void {
22
-		$actual = appliquer_filtre(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresAppliquerFiltre')]
21
+    public function testFiltresAppliquerFiltre($expected, ...$args): void {
22
+        $actual = appliquer_filtre(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresAppliquerFiltre(): array {
27
-		return [
28
-			0 => [
29
-				0 => '&lt;&gt;&quot;&#039;&amp;',
30
-				1 => '<>"\'&',
31
-				2 => 'entites_html',
32
-			],
33
-			1 => [
34
-				0 => '&amp;',
35
-				1 => '&amp;',
36
-				2 => 'entites_html',
37
-			],
38
-		];
39
-	}
26
+    public static function providerFiltresAppliquerFiltre(): array {
27
+        return [
28
+            0 => [
29
+                0 => '&lt;&gt;&quot;&#039;&amp;',
30
+                1 => '<>"\'&',
31
+                2 => 'entites_html',
32
+            ],
33
+            1 => [
34
+                0 => '&amp;',
35
+                1 => '&amp;',
36
+                2 => 'entites_html',
37
+            ],
38
+        ];
39
+    }
40 40
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/WrapTest.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -13,33 +13,33 @@
 block discarded – undo
13 13
 
14 14
 class WrapTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresWrap')]
21
-	public function testFiltresWrap($expected, ...$args): void {
22
-		$actual = wrap(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresWrap')]
21
+    public function testFiltresWrap($expected, ...$args): void {
22
+        $actual = wrap(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresWrap(): array {
27
-		return [
28
-			0 => [
29
-				0 => '<h3>un mot</h3>',
30
-				1 => 'un mot',
31
-				2 => '<h3>',
32
-			],
33
-			1 => [
34
-				0 => '<h3><b>un mot</b></h3>',
35
-				1 => 'un mot',
36
-				2 => '<h3><b>',
37
-			],
38
-			2 => [
39
-				0 => '<h3 class="spip"><b>un mot</b></h3>',
40
-				1 => 'un mot',
41
-				2 => '<h3 class="spip"><b>',
42
-			],
43
-		];
44
-	}
26
+    public static function providerFiltresWrap(): array {
27
+        return [
28
+            0 => [
29
+                0 => '<h3>un mot</h3>',
30
+                1 => 'un mot',
31
+                2 => '<h3>',
32
+            ],
33
+            1 => [
34
+                0 => '<h3><b>un mot</b></h3>',
35
+                1 => 'un mot',
36
+                2 => '<h3><b>',
37
+            ],
38
+            2 => [
39
+                0 => '<h3 class="spip"><b>un mot</b></h3>',
40
+                1 => 'un mot',
41
+                2 => '<h3 class="spip"><b>',
42
+            ],
43
+        ];
44
+    }
45 45
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/TexteBackendTest.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -13,46 +13,46 @@
 block discarded – undo
13 13
 
14 14
 class TexteBackendTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresTexteBackend')]
21
-	public function testFiltresTexteBackend($expected, ...$args): void {
22
-		$actual = texte_backend(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresTexteBackend')]
21
+    public function testFiltresTexteBackend($expected, ...$args): void {
22
+        $actual = texte_backend(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresTexteBackend(): array {
27
-		return [
28
-			0 => [
29
-				0 => '',
30
-				1 => '',
31
-			],
32
-			1 => [
33
-				0 => '0',
34
-				1 => '0',
35
-			],
36
-			2 => [
37
-				0 => 'Un texte avec des &lt;a href=&#034;http://spip.net&#034;&gt;liens&lt;/a&gt; [Article 1-&gt;art1] [spip-&gt;http://www.spip.net] http://www.spip.net',
38
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
39
-			],
40
-			3 => [
41
-				0 => 'Un texte avec des entit&#233;s &amp;&lt;&gt;&#034;',
42
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
43
-			],
44
-			4 => [
45
-				0 => "Un texte sans entites &amp;&lt;&gt;&#034;'",
46
-				1 => 'Un texte sans entites &<>"\'',
47
-			],
48
-			5 => [
49
-				0 => '{{{Des raccourcis}}} {italique} {{gras}} &lt;code&gt;du code&lt;/code&gt;',
50
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
51
-			],
52
-			6 => [
53
-				0 => 'Un modele &lt;modeleinexistant|lien=[-&gt;http://www.spip.net]&gt;',
54
-				1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
55
-			],
56
-		];
57
-	}
26
+    public static function providerFiltresTexteBackend(): array {
27
+        return [
28
+            0 => [
29
+                0 => '',
30
+                1 => '',
31
+            ],
32
+            1 => [
33
+                0 => '0',
34
+                1 => '0',
35
+            ],
36
+            2 => [
37
+                0 => 'Un texte avec des &lt;a href=&#034;http://spip.net&#034;&gt;liens&lt;/a&gt; [Article 1-&gt;art1] [spip-&gt;http://www.spip.net] http://www.spip.net',
38
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->http://www.spip.net] http://www.spip.net',
39
+            ],
40
+            3 => [
41
+                0 => 'Un texte avec des entit&#233;s &amp;&lt;&gt;&#034;',
42
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
43
+            ],
44
+            4 => [
45
+                0 => "Un texte sans entites &amp;&lt;&gt;&#034;'",
46
+                1 => 'Un texte sans entites &<>"\'',
47
+            ],
48
+            5 => [
49
+                0 => '{{{Des raccourcis}}} {italique} {{gras}} &lt;code&gt;du code&lt;/code&gt;',
50
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
51
+            ],
52
+            6 => [
53
+                0 => 'Un modele &lt;modeleinexistant|lien=[-&gt;http://www.spip.net]&gt;',
54
+                1 => 'Un modele <modeleinexistant|lien=[->http://www.spip.net]>',
55
+            ],
56
+        ];
57
+    }
58 58
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/AntispamTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
 
13 13
 class AntispamTest extends TestCase
14 14
 {
15
-	public static function setUpBeforeClass(): void {
16
-		find_in_path('inc/filtres.php', '', true);
17
-	}
15
+    public static function setUpBeforeClass(): void {
16
+        find_in_path('inc/filtres.php', '', true);
17
+    }
18 18
 
19
-	public function testFiltresAntispam(): void {
20
-		$actual = antispam('[email protected]');
21
-		$this->assertStringNotContainsString('@', $actual);
22
-	}
19
+    public function testFiltresAntispam(): void {
20
+        $actual = antispam('[email protected]');
21
+        $this->assertStringNotContainsString('@', $actual);
22
+    }
23 23
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/ChercherFiltreTest.php 1 patch
Indentation   +458 added lines, -458 removed lines patch added patch discarded remove patch
@@ -13,464 +13,464 @@
 block discarded – undo
13 13
 
14 14
 class ChercherFiltreTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresChercherFiltre')]
21
-	public function testFiltresChercherFiltre($expected, ...$args): void {
22
-		$actual = chercher_filtre(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresChercherFiltre')]
21
+    public function testFiltresChercherFiltre($expected, ...$args): void {
22
+        $actual = chercher_filtre(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresChercherFiltre(): array {
27
-		return [
28
-			0 => [
29
-				0 => 'filtre_identite_dist',
30
-				1 => 'identite',
31
-			],
32
-			1 => [
33
-				0 => 'identite',
34
-				1 => 'zzhkezhkf',
35
-				2 => 'identite',
36
-			],
37
-			3 => [
38
-				0 => 'identite',
39
-				1 => null,
40
-				2 => 'identite',
41
-			],
42
-			4 => [
43
-				0 => 'filtre_text_dist',
44
-				1 => 'text',
45
-			],
46
-			5 => [
47
-				0 => 'filtre_implode_dist',
48
-				1 => 'implode',
49
-			],
50
-			6 => [
51
-				0 => 'filtre_image_dist',
52
-				1 => 'image/jpeg',
53
-			],
54
-			7 => [
55
-				0 => 'filtre_image_dist',
56
-				1 => 'image/png',
57
-			],
58
-			8 => [
59
-				0 => 'filtre_image_dist',
60
-				1 => 'image/gif',
61
-			],
62
-			9 => [
63
-				0 => 'filtre_image_dist',
64
-				1 => 'image/x-ms-bmp',
65
-			],
66
-			10 => [
67
-				0 => 'filtre_image_dist',
68
-				1 => 'image/tiff',
69
-			],
70
-			11 => [
71
-				0 => 'filtre_audio_dist',
72
-				1 => 'audio/x-aiff',
73
-			],
74
-			12 => [
75
-				0 => 'filtre_video_dist',
76
-				1 => 'video/x-ms-asf',
77
-			],
78
-			13 => [
79
-				0 => 'filtre_video_dist',
80
-				1 => 'video/x-msvideo',
81
-			],
82
-			14 => [
83
-				0 => 'filtre_application_dist',
84
-				1 => 'application/annodex',
85
-			],
86
-			15 => [
87
-				0 => 'filtre_audio_dist',
88
-				1 => 'audio/annodex',
89
-			],
90
-			16 => [
91
-				0 => 'filtre_video_dist',
92
-				1 => 'video/annodex',
93
-			],
94
-			17 => [
95
-				0 => 'filtre_video_dist',
96
-				1 => 'video/x-dv',
97
-			],
98
-			18 => [
99
-				0 => 'filtre_audio_dist',
100
-				1 => 'audio/x-flac',
101
-			],
102
-			19 => [
103
-				0 => 'filtre_video_dist',
104
-				1 => 'video/x-flv',
105
-			],
106
-			20 => [
107
-				0 => 'filtre_audio_dist',
108
-				1 => 'audio/mp4a-latm',
109
-			],
110
-			23 => [
111
-				0 => 'filtre_video_dist',
112
-				1 => 'video/vnd.mpegurl',
113
-			],
114
-			24 => [
115
-				0 => 'filtre_video_dist',
116
-				1 => 'video/x-m4v',
117
-			],
118
-			25 => [
119
-				0 => 'filtre_audio_dist',
120
-				1 => 'audio/midi',
121
-			],
122
-			26 => [
123
-				0 => 'filtre_audio_dist',
124
-				1 => 'audio/mka',
125
-			],
126
-			27 => [
127
-				0 => 'filtre_video_dist',
128
-				1 => 'video/mkv',
129
-			],
130
-			28 => [
131
-				0 => 'filtre_video_dist',
132
-				1 => 'video/x-mng',
133
-			],
134
-			29 => [
135
-				0 => 'filtre_video_dist',
136
-				1 => 'video/quicktime',
137
-			],
138
-			30 => [
139
-				0 => 'filtre_audio_dist',
140
-				1 => 'audio/mpeg',
141
-			],
142
-			31 => [
143
-				0 => 'filtre_application_dist',
144
-				1 => 'application/mp4',
145
-			],
146
-			32 => [
147
-				0 => 'filtre_video_dist',
148
-				1 => 'video/mpeg',
149
-			],
150
-			33 => [
151
-				0 => 'filtre_audio_dist',
152
-				1 => 'audio/ogg',
153
-			],
154
-			34 => [
155
-				0 => 'filtre_audio_dist',
156
-				1 => 'audio/ogg ',
157
-			],
158
-			35 => [
159
-				0 => 'filtre_video_dist',
160
-				1 => 'video/ogg ',
161
-			],
162
-			36 => [
163
-				0 => 'filtre_application_dist',
164
-				1 => 'application/ogg ',
165
-			],
166
-			38 => [
167
-				0 => 'filtre_audio_x_pn_realaudio',
168
-				1 => 'audio/x-pn-realaudio',
169
-			],
170
-			42 => [
171
-				0 => 'filtre_image_dist',
172
-				1 => 'image/svg+xml',
173
-			],
174
-			43 => [
175
-				0 => 'filtre_application_dist',
176
-				1 => 'application/x-shockwave-flash',
177
-			],
178
-			44 => [
179
-				0 => 'filtre_audio_dist',
180
-				1 => 'audio/x-wav',
181
-			],
182
-			45 => [
183
-				0 => 'filtre_video_dist',
184
-				1 => 'video/x-ms-wmv',
185
-			],
186
-			46 => [
187
-				0 => 'filtre_video_dist',
188
-				1 => 'video/3gpp',
189
-			],
190
-			47 => [
191
-				0 => 'filtre_application_dist',
192
-				1 => 'application/illustrator',
193
-			],
194
-			48 => [
195
-				0 => 'filtre_application_dist',
196
-				1 => 'application/abiword',
197
-			],
198
-			49 => [
199
-				0 => 'filtre_application_dist',
200
-				1 => 'application/octet-stream',
201
-			],
202
-			50 => [
203
-				0 => 'filtre_application_dist',
204
-				1 => 'application/x-blender',
205
-			],
206
-			51 => [
207
-				0 => 'filtre_application_dist',
208
-				1 => 'application/x-bzip2',
209
-			],
210
-			52 => [
211
-				0 => 'filtre_text_dist',
212
-				1 => 'text/x-csrc',
213
-			],
214
-			53 => [
215
-				0 => 'filtre_text_dist',
216
-				1 => 'text/css',
217
-			],
218
-			54 => [
219
-				0 => 'filtre_text_csv_dist',
220
-				1 => 'text/csv',
221
-			],
222
-			55 => [
223
-				0 => 'filtre_application_dist',
224
-				1 => 'application/x-debian-package',
225
-			],
226
-			56 => [
227
-				0 => 'filtre_application_dist',
228
-				1 => 'application/msword',
229
-			],
230
-			57 => [
231
-				0 => 'filtre_image_dist',
232
-				1 => 'image/vnd.djvu',
233
-			],
234
-			58 => [
235
-				0 => 'filtre_application_dist',
236
-				1 => 'application/x-dvi',
237
-			],
238
-			59 => [
239
-				0 => 'filtre_application_dist',
240
-				1 => 'application/postscript',
241
-			],
242
-			60 => [
243
-				0 => 'filtre_application_dist',
244
-				1 => 'application/x-gzip',
245
-			],
246
-			61 => [
247
-				0 => 'filtre_text_dist',
248
-				1 => 'text/x-chdr',
249
-			],
250
-			62 => [
251
-				0 => 'filtre_text_html_dist',
252
-				1 => 'text/html',
253
-			],
254
-			63 => [
255
-				0 => 'filtre_application_dist',
256
-				1 => 'application/vnd.google-earth.kml+xml',
257
-			],
258
-			64 => [
259
-				0 => 'filtre_application_dist',
260
-				1 => 'application/vnd.google-earth.kmz',
261
-			],
262
-			65 => [
263
-				0 => 'filtre_text_dist',
264
-				1 => 'text/x-pascal',
265
-			],
266
-			66 => [
267
-				0 => 'filtre_application_dist',
268
-				1 => 'application/pdf',
269
-			],
270
-			67 => [
271
-				0 => 'filtre_application_dist',
272
-				1 => 'application/x-chess-pgn',
273
-			],
274
-			68 => [
275
-				0 => 'filtre_application_dist',
276
-				1 => 'application/vnd.ms-powerpoint',
277
-			],
278
-			70 => [
279
-				0 => 'filtre_image_dist',
280
-				1 => 'image/x-photoshop',
281
-			],
282
-			71 => [
283
-				0 => 'filtre_application_dist',
284
-				1 => 'application/x-redhat-package-manager',
285
-			],
286
-			72 => [
287
-				0 => 'filtre_application_dist',
288
-				1 => 'application/rtf',
289
-			],
290
-			73 => [
291
-				0 => 'filtre_application_dist',
292
-				1 => 'application/vnd.stardivision.impress',
293
-			],
294
-			74 => [
295
-				0 => 'filtre_application_dist',
296
-				1 => 'application/vnd.stardivision.writer',
297
-			],
298
-			75 => [
299
-				0 => 'filtre_application_dist',
300
-				1 => 'application/x-stuffit',
301
-			],
302
-			76 => [
303
-				0 => 'filtre_application_dist',
304
-				1 => 'application/vnd.sun.xml.calc',
305
-			],
306
-			77 => [
307
-				0 => 'filtre_application_dist',
308
-				1 => 'application/vnd.sun.xml.impress',
309
-			],
310
-			78 => [
311
-				0 => 'filtre_application_dist',
312
-				1 => 'application/vnd.sun.xml.writer',
313
-			],
314
-			79 => [
315
-				0 => 'filtre_text_dist',
316
-				1 => 'text/x-tex',
317
-			],
318
-			80 => [
319
-				0 => 'filtre_application_dist',
320
-				1 => 'application/x-gtar',
321
-			],
322
-			81 => [
323
-				0 => 'filtre_application_dist',
324
-				1 => 'application/x-bittorrent',
325
-			],
326
-			82 => [
327
-				0 => 'filtre_application_dist',
328
-				1 => 'application/x-font-ttf',
329
-			],
330
-			83 => [
331
-				0 => 'filtre_text_dist',
332
-				1 => 'text/plain',
333
-			],
334
-			84 => [
335
-				0 => 'filtre_application_dist',
336
-				1 => 'application/x-xcf',
337
-			],
338
-			85 => [
339
-				0 => 'filtre_application_dist',
340
-				1 => 'application/vnd.ms-excel',
341
-			],
342
-			86 => [
343
-				0 => 'filtre_application_dist',
344
-				1 => 'application/xspf+xml',
345
-			],
346
-			87 => [
347
-				0 => 'filtre_application_dist',
348
-				1 => 'application/xml',
349
-			],
350
-			88 => [
351
-				0 => 'filtre_application_dist',
352
-				1 => 'application/zip',
353
-			],
354
-			89 => [
355
-				0 => 'filtre_application_dist',
356
-				1 => 'application/vnd.oasis.opendocument.text',
357
-			],
358
-			90 => [
359
-				0 => 'filtre_application_dist',
360
-				1 => 'application/vnd.oasis.opendocument.spreadsheet',
361
-			],
362
-			91 => [
363
-				0 => 'filtre_application_dist',
364
-				1 => 'application/vnd.oasis.opendocument.presentation',
365
-			],
366
-			92 => [
367
-				0 => 'filtre_application_dist',
368
-				1 => 'application/vnd.oasis.opendocument.graphics',
369
-			],
370
-			93 => [
371
-				0 => 'filtre_application_dist',
372
-				1 => 'application/vnd.oasis.opendocument.chart',
373
-			],
374
-			94 => [
375
-				0 => 'filtre_application_dist',
376
-				1 => 'application/vnd.oasis.opendocument.formula',
377
-			],
378
-			95 => [
379
-				0 => 'filtre_application_dist',
380
-				1 => 'application/vnd.oasis.opendocument.database',
381
-			],
382
-			96 => [
383
-				0 => 'filtre_application_dist',
384
-				1 => 'application/vnd.oasis.opendocument.image',
385
-			],
386
-			97 => [
387
-				0 => 'filtre_application_dist',
388
-				1 => 'application/vnd.oasis.opendocument.text-master',
389
-			],
390
-			98 => [
391
-				0 => 'filtre_application_dist',
392
-				1 => 'application/vnd.oasis.opendocument.text-template',
393
-			],
394
-			99 => [
395
-				0 => 'filtre_application_dist',
396
-				1 => 'application/vnd.oasis.opendocument.spreadsheet-template',
397
-			],
398
-			100 => [
399
-				0 => 'filtre_application_dist',
400
-				1 => 'application/vnd.oasis.opendocument.presentation-template',
401
-			],
402
-			101 => [
403
-				0 => 'filtre_application_dist',
404
-				1 => 'application/vnd.oasis.opendocument.graphics-template',
405
-			],
406
-			104 => [
407
-				0 => 'filtre_application_dist',
408
-				1 => 'application/vnd.ms-word.document.macroEnabled.12',
409
-			],
410
-			105 => [
411
-				0 => 'filtre_application_dist',
412
-				1 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
413
-			],
414
-			106 => [
415
-				0 => 'filtre_application_dist',
416
-				1 => 'application/vnd.ms-word.template.macroEnabled.12',
417
-			],
418
-			107 => [
419
-				0 => 'filtre_application_dist',
420
-				1 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
421
-			],
422
-			108 => [
423
-				0 => 'filtre_application_dist',
424
-				1 => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
425
-			],
426
-			109 => [
427
-				0 => 'filtre_application_dist',
428
-				1 => 'application/vnd.openxmlformats-officedocument.presentationml.template',
429
-			],
430
-			110 => [
431
-				0 => 'filtre_application_dist',
432
-				1 => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
433
-			],
434
-			111 => [
435
-				0 => 'filtre_application_dist',
436
-				1 => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
437
-			],
438
-			112 => [
439
-				0 => 'filtre_application_dist',
440
-				1 => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
441
-			],
442
-			113 => [
443
-				0 => 'filtre_application_dist',
444
-				1 => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
445
-			],
446
-			114 => [
447
-				0 => 'filtre_application_dist',
448
-				1 => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
449
-			],
450
-			115 => [
451
-				0 => 'filtre_application_dist',
452
-				1 => 'application/vnd.ms-excel.addin.macroEnabled.12',
453
-			],
454
-			116 => [
455
-				0 => 'filtre_application_dist',
456
-				1 => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
457
-			],
458
-			117 => [
459
-				0 => 'filtre_application_dist',
460
-				1 => 'application/vnd.ms-excel.sheet.macroEnabled.12',
461
-			],
462
-			118 => [
463
-				0 => 'filtre_application_dist',
464
-				1 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
465
-			],
466
-			119 => [
467
-				0 => 'filtre_application_dist',
468
-				1 => 'application/vnd.ms-excel.template.macroEnabled.12',
469
-			],
470
-			120 => [
471
-				0 => 'filtre_application_dist',
472
-				1 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
473
-			],
474
-		];
475
-	}
26
+    public static function providerFiltresChercherFiltre(): array {
27
+        return [
28
+            0 => [
29
+                0 => 'filtre_identite_dist',
30
+                1 => 'identite',
31
+            ],
32
+            1 => [
33
+                0 => 'identite',
34
+                1 => 'zzhkezhkf',
35
+                2 => 'identite',
36
+            ],
37
+            3 => [
38
+                0 => 'identite',
39
+                1 => null,
40
+                2 => 'identite',
41
+            ],
42
+            4 => [
43
+                0 => 'filtre_text_dist',
44
+                1 => 'text',
45
+            ],
46
+            5 => [
47
+                0 => 'filtre_implode_dist',
48
+                1 => 'implode',
49
+            ],
50
+            6 => [
51
+                0 => 'filtre_image_dist',
52
+                1 => 'image/jpeg',
53
+            ],
54
+            7 => [
55
+                0 => 'filtre_image_dist',
56
+                1 => 'image/png',
57
+            ],
58
+            8 => [
59
+                0 => 'filtre_image_dist',
60
+                1 => 'image/gif',
61
+            ],
62
+            9 => [
63
+                0 => 'filtre_image_dist',
64
+                1 => 'image/x-ms-bmp',
65
+            ],
66
+            10 => [
67
+                0 => 'filtre_image_dist',
68
+                1 => 'image/tiff',
69
+            ],
70
+            11 => [
71
+                0 => 'filtre_audio_dist',
72
+                1 => 'audio/x-aiff',
73
+            ],
74
+            12 => [
75
+                0 => 'filtre_video_dist',
76
+                1 => 'video/x-ms-asf',
77
+            ],
78
+            13 => [
79
+                0 => 'filtre_video_dist',
80
+                1 => 'video/x-msvideo',
81
+            ],
82
+            14 => [
83
+                0 => 'filtre_application_dist',
84
+                1 => 'application/annodex',
85
+            ],
86
+            15 => [
87
+                0 => 'filtre_audio_dist',
88
+                1 => 'audio/annodex',
89
+            ],
90
+            16 => [
91
+                0 => 'filtre_video_dist',
92
+                1 => 'video/annodex',
93
+            ],
94
+            17 => [
95
+                0 => 'filtre_video_dist',
96
+                1 => 'video/x-dv',
97
+            ],
98
+            18 => [
99
+                0 => 'filtre_audio_dist',
100
+                1 => 'audio/x-flac',
101
+            ],
102
+            19 => [
103
+                0 => 'filtre_video_dist',
104
+                1 => 'video/x-flv',
105
+            ],
106
+            20 => [
107
+                0 => 'filtre_audio_dist',
108
+                1 => 'audio/mp4a-latm',
109
+            ],
110
+            23 => [
111
+                0 => 'filtre_video_dist',
112
+                1 => 'video/vnd.mpegurl',
113
+            ],
114
+            24 => [
115
+                0 => 'filtre_video_dist',
116
+                1 => 'video/x-m4v',
117
+            ],
118
+            25 => [
119
+                0 => 'filtre_audio_dist',
120
+                1 => 'audio/midi',
121
+            ],
122
+            26 => [
123
+                0 => 'filtre_audio_dist',
124
+                1 => 'audio/mka',
125
+            ],
126
+            27 => [
127
+                0 => 'filtre_video_dist',
128
+                1 => 'video/mkv',
129
+            ],
130
+            28 => [
131
+                0 => 'filtre_video_dist',
132
+                1 => 'video/x-mng',
133
+            ],
134
+            29 => [
135
+                0 => 'filtre_video_dist',
136
+                1 => 'video/quicktime',
137
+            ],
138
+            30 => [
139
+                0 => 'filtre_audio_dist',
140
+                1 => 'audio/mpeg',
141
+            ],
142
+            31 => [
143
+                0 => 'filtre_application_dist',
144
+                1 => 'application/mp4',
145
+            ],
146
+            32 => [
147
+                0 => 'filtre_video_dist',
148
+                1 => 'video/mpeg',
149
+            ],
150
+            33 => [
151
+                0 => 'filtre_audio_dist',
152
+                1 => 'audio/ogg',
153
+            ],
154
+            34 => [
155
+                0 => 'filtre_audio_dist',
156
+                1 => 'audio/ogg ',
157
+            ],
158
+            35 => [
159
+                0 => 'filtre_video_dist',
160
+                1 => 'video/ogg ',
161
+            ],
162
+            36 => [
163
+                0 => 'filtre_application_dist',
164
+                1 => 'application/ogg ',
165
+            ],
166
+            38 => [
167
+                0 => 'filtre_audio_x_pn_realaudio',
168
+                1 => 'audio/x-pn-realaudio',
169
+            ],
170
+            42 => [
171
+                0 => 'filtre_image_dist',
172
+                1 => 'image/svg+xml',
173
+            ],
174
+            43 => [
175
+                0 => 'filtre_application_dist',
176
+                1 => 'application/x-shockwave-flash',
177
+            ],
178
+            44 => [
179
+                0 => 'filtre_audio_dist',
180
+                1 => 'audio/x-wav',
181
+            ],
182
+            45 => [
183
+                0 => 'filtre_video_dist',
184
+                1 => 'video/x-ms-wmv',
185
+            ],
186
+            46 => [
187
+                0 => 'filtre_video_dist',
188
+                1 => 'video/3gpp',
189
+            ],
190
+            47 => [
191
+                0 => 'filtre_application_dist',
192
+                1 => 'application/illustrator',
193
+            ],
194
+            48 => [
195
+                0 => 'filtre_application_dist',
196
+                1 => 'application/abiword',
197
+            ],
198
+            49 => [
199
+                0 => 'filtre_application_dist',
200
+                1 => 'application/octet-stream',
201
+            ],
202
+            50 => [
203
+                0 => 'filtre_application_dist',
204
+                1 => 'application/x-blender',
205
+            ],
206
+            51 => [
207
+                0 => 'filtre_application_dist',
208
+                1 => 'application/x-bzip2',
209
+            ],
210
+            52 => [
211
+                0 => 'filtre_text_dist',
212
+                1 => 'text/x-csrc',
213
+            ],
214
+            53 => [
215
+                0 => 'filtre_text_dist',
216
+                1 => 'text/css',
217
+            ],
218
+            54 => [
219
+                0 => 'filtre_text_csv_dist',
220
+                1 => 'text/csv',
221
+            ],
222
+            55 => [
223
+                0 => 'filtre_application_dist',
224
+                1 => 'application/x-debian-package',
225
+            ],
226
+            56 => [
227
+                0 => 'filtre_application_dist',
228
+                1 => 'application/msword',
229
+            ],
230
+            57 => [
231
+                0 => 'filtre_image_dist',
232
+                1 => 'image/vnd.djvu',
233
+            ],
234
+            58 => [
235
+                0 => 'filtre_application_dist',
236
+                1 => 'application/x-dvi',
237
+            ],
238
+            59 => [
239
+                0 => 'filtre_application_dist',
240
+                1 => 'application/postscript',
241
+            ],
242
+            60 => [
243
+                0 => 'filtre_application_dist',
244
+                1 => 'application/x-gzip',
245
+            ],
246
+            61 => [
247
+                0 => 'filtre_text_dist',
248
+                1 => 'text/x-chdr',
249
+            ],
250
+            62 => [
251
+                0 => 'filtre_text_html_dist',
252
+                1 => 'text/html',
253
+            ],
254
+            63 => [
255
+                0 => 'filtre_application_dist',
256
+                1 => 'application/vnd.google-earth.kml+xml',
257
+            ],
258
+            64 => [
259
+                0 => 'filtre_application_dist',
260
+                1 => 'application/vnd.google-earth.kmz',
261
+            ],
262
+            65 => [
263
+                0 => 'filtre_text_dist',
264
+                1 => 'text/x-pascal',
265
+            ],
266
+            66 => [
267
+                0 => 'filtre_application_dist',
268
+                1 => 'application/pdf',
269
+            ],
270
+            67 => [
271
+                0 => 'filtre_application_dist',
272
+                1 => 'application/x-chess-pgn',
273
+            ],
274
+            68 => [
275
+                0 => 'filtre_application_dist',
276
+                1 => 'application/vnd.ms-powerpoint',
277
+            ],
278
+            70 => [
279
+                0 => 'filtre_image_dist',
280
+                1 => 'image/x-photoshop',
281
+            ],
282
+            71 => [
283
+                0 => 'filtre_application_dist',
284
+                1 => 'application/x-redhat-package-manager',
285
+            ],
286
+            72 => [
287
+                0 => 'filtre_application_dist',
288
+                1 => 'application/rtf',
289
+            ],
290
+            73 => [
291
+                0 => 'filtre_application_dist',
292
+                1 => 'application/vnd.stardivision.impress',
293
+            ],
294
+            74 => [
295
+                0 => 'filtre_application_dist',
296
+                1 => 'application/vnd.stardivision.writer',
297
+            ],
298
+            75 => [
299
+                0 => 'filtre_application_dist',
300
+                1 => 'application/x-stuffit',
301
+            ],
302
+            76 => [
303
+                0 => 'filtre_application_dist',
304
+                1 => 'application/vnd.sun.xml.calc',
305
+            ],
306
+            77 => [
307
+                0 => 'filtre_application_dist',
308
+                1 => 'application/vnd.sun.xml.impress',
309
+            ],
310
+            78 => [
311
+                0 => 'filtre_application_dist',
312
+                1 => 'application/vnd.sun.xml.writer',
313
+            ],
314
+            79 => [
315
+                0 => 'filtre_text_dist',
316
+                1 => 'text/x-tex',
317
+            ],
318
+            80 => [
319
+                0 => 'filtre_application_dist',
320
+                1 => 'application/x-gtar',
321
+            ],
322
+            81 => [
323
+                0 => 'filtre_application_dist',
324
+                1 => 'application/x-bittorrent',
325
+            ],
326
+            82 => [
327
+                0 => 'filtre_application_dist',
328
+                1 => 'application/x-font-ttf',
329
+            ],
330
+            83 => [
331
+                0 => 'filtre_text_dist',
332
+                1 => 'text/plain',
333
+            ],
334
+            84 => [
335
+                0 => 'filtre_application_dist',
336
+                1 => 'application/x-xcf',
337
+            ],
338
+            85 => [
339
+                0 => 'filtre_application_dist',
340
+                1 => 'application/vnd.ms-excel',
341
+            ],
342
+            86 => [
343
+                0 => 'filtre_application_dist',
344
+                1 => 'application/xspf+xml',
345
+            ],
346
+            87 => [
347
+                0 => 'filtre_application_dist',
348
+                1 => 'application/xml',
349
+            ],
350
+            88 => [
351
+                0 => 'filtre_application_dist',
352
+                1 => 'application/zip',
353
+            ],
354
+            89 => [
355
+                0 => 'filtre_application_dist',
356
+                1 => 'application/vnd.oasis.opendocument.text',
357
+            ],
358
+            90 => [
359
+                0 => 'filtre_application_dist',
360
+                1 => 'application/vnd.oasis.opendocument.spreadsheet',
361
+            ],
362
+            91 => [
363
+                0 => 'filtre_application_dist',
364
+                1 => 'application/vnd.oasis.opendocument.presentation',
365
+            ],
366
+            92 => [
367
+                0 => 'filtre_application_dist',
368
+                1 => 'application/vnd.oasis.opendocument.graphics',
369
+            ],
370
+            93 => [
371
+                0 => 'filtre_application_dist',
372
+                1 => 'application/vnd.oasis.opendocument.chart',
373
+            ],
374
+            94 => [
375
+                0 => 'filtre_application_dist',
376
+                1 => 'application/vnd.oasis.opendocument.formula',
377
+            ],
378
+            95 => [
379
+                0 => 'filtre_application_dist',
380
+                1 => 'application/vnd.oasis.opendocument.database',
381
+            ],
382
+            96 => [
383
+                0 => 'filtre_application_dist',
384
+                1 => 'application/vnd.oasis.opendocument.image',
385
+            ],
386
+            97 => [
387
+                0 => 'filtre_application_dist',
388
+                1 => 'application/vnd.oasis.opendocument.text-master',
389
+            ],
390
+            98 => [
391
+                0 => 'filtre_application_dist',
392
+                1 => 'application/vnd.oasis.opendocument.text-template',
393
+            ],
394
+            99 => [
395
+                0 => 'filtre_application_dist',
396
+                1 => 'application/vnd.oasis.opendocument.spreadsheet-template',
397
+            ],
398
+            100 => [
399
+                0 => 'filtre_application_dist',
400
+                1 => 'application/vnd.oasis.opendocument.presentation-template',
401
+            ],
402
+            101 => [
403
+                0 => 'filtre_application_dist',
404
+                1 => 'application/vnd.oasis.opendocument.graphics-template',
405
+            ],
406
+            104 => [
407
+                0 => 'filtre_application_dist',
408
+                1 => 'application/vnd.ms-word.document.macroEnabled.12',
409
+            ],
410
+            105 => [
411
+                0 => 'filtre_application_dist',
412
+                1 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
413
+            ],
414
+            106 => [
415
+                0 => 'filtre_application_dist',
416
+                1 => 'application/vnd.ms-word.template.macroEnabled.12',
417
+            ],
418
+            107 => [
419
+                0 => 'filtre_application_dist',
420
+                1 => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
421
+            ],
422
+            108 => [
423
+                0 => 'filtre_application_dist',
424
+                1 => 'application/vnd.ms-powerpoint.template.macroEnabled.12',
425
+            ],
426
+            109 => [
427
+                0 => 'filtre_application_dist',
428
+                1 => 'application/vnd.openxmlformats-officedocument.presentationml.template',
429
+            ],
430
+            110 => [
431
+                0 => 'filtre_application_dist',
432
+                1 => 'application/vnd.ms-powerpoint.addin.macroEnabled.12',
433
+            ],
434
+            111 => [
435
+                0 => 'filtre_application_dist',
436
+                1 => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
437
+            ],
438
+            112 => [
439
+                0 => 'filtre_application_dist',
440
+                1 => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
441
+            ],
442
+            113 => [
443
+                0 => 'filtre_application_dist',
444
+                1 => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12',
445
+            ],
446
+            114 => [
447
+                0 => 'filtre_application_dist',
448
+                1 => 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
449
+            ],
450
+            115 => [
451
+                0 => 'filtre_application_dist',
452
+                1 => 'application/vnd.ms-excel.addin.macroEnabled.12',
453
+            ],
454
+            116 => [
455
+                0 => 'filtre_application_dist',
456
+                1 => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12',
457
+            ],
458
+            117 => [
459
+                0 => 'filtre_application_dist',
460
+                1 => 'application/vnd.ms-excel.sheet.macroEnabled.12',
461
+            ],
462
+            118 => [
463
+                0 => 'filtre_application_dist',
464
+                1 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
465
+            ],
466
+            119 => [
467
+                0 => 'filtre_application_dist',
468
+                1 => 'application/vnd.ms-excel.template.macroEnabled.12',
469
+            ],
470
+            120 => [
471
+                0 => 'filtre_application_dist',
472
+                1 => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
473
+            ],
474
+        ];
475
+    }
476 476
 }
Please login to merge, or discard this patch.
ecrire/tests/Filtre/ExtraireBalisesTest.php 2 patches
Indentation   +141 added lines, -141 removed lines patch added patch discarded remove patch
@@ -13,150 +13,150 @@
 block discarded – undo
13 13
 
14 14
 class ExtraireBalisesTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('./inc/filtres.php', '', true);
18
-		find_in_path('./inc/lang.php', '', true);
19
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('./inc/filtres.php', '', true);
18
+        find_in_path('./inc/lang.php', '', true);
19
+    }
20 20
 
21
-	#[DataProvider('providerFiltresExtraireBalises')]
22
-	public function testFiltresExtraireBalises($expected, ...$args): void {
23
-		$actual = extraire_balises(...$args);
24
-		$this->assertSame($expected, $actual);
25
-	}
21
+    #[DataProvider('providerFiltresExtraireBalises')]
22
+    public function testFiltresExtraireBalises($expected, ...$args): void {
23
+        $actual = extraire_balises(...$args);
24
+        $this->assertSame($expected, $actual);
25
+    }
26 26
 
27
-	#[DataProvider('providerFiltresExtraireBalises')]
28
-	public function testFiltresExtraireBalise($expected, ...$args): void {
29
-		// extraire_balise doit renvoyer le premier résultat de extraire_balises
30
-		// sauf si on fournit un tableau de chaine en entree, ce doit être alors le premier résultat de chaque sous-tableau
31
-		if (count($args) === 3) {
32
-			$options = array_pop($args);
33
-			$profondeur = ($options['profondeur'] ?? 1);
34
-			$args[] = $profondeur;
35
-		}
36
-		$first_result = reset($expected);
37
-		if (is_array($first_result)) {
38
-			$first_result = [];
39
-			foreach ($expected as $e) {
40
-				$first_result[] = (empty($e) ? '' : reset($e));
41
-			}
42
-			$expected = $first_result;
43
-		} else {
44
-			$expected = (empty($expected) ? '' : $first_result);
45
-		}
46
-		$actual = extraire_balise(...$args);
47
-		$this->assertSame($expected, $actual);
48
-	}
27
+    #[DataProvider('providerFiltresExtraireBalises')]
28
+    public function testFiltresExtraireBalise($expected, ...$args): void {
29
+        // extraire_balise doit renvoyer le premier résultat de extraire_balises
30
+        // sauf si on fournit un tableau de chaine en entree, ce doit être alors le premier résultat de chaque sous-tableau
31
+        if (count($args) === 3) {
32
+            $options = array_pop($args);
33
+            $profondeur = ($options['profondeur'] ?? 1);
34
+            $args[] = $profondeur;
35
+        }
36
+        $first_result = reset($expected);
37
+        if (is_array($first_result)) {
38
+            $first_result = [];
39
+            foreach ($expected as $e) {
40
+                $first_result[] = (empty($e) ? '' : reset($e));
41
+            }
42
+            $expected = $first_result;
43
+        } else {
44
+            $expected = (empty($expected) ? '' : $first_result);
45
+        }
46
+        $actual = extraire_balise(...$args);
47
+        $this->assertSame($expected, $actual);
48
+    }
49 49
 
50
-	public function testFiltresExtraireBalisesMediaRss(): void {
51
-		$rss = file_get_contents(dirname(__DIR__) . '/Fixtures/data/dailymotion.rss');
52
-		if (empty($rss)) {
53
-			$this->markTestSkipped();
54
-		}
50
+    public function testFiltresExtraireBalisesMediaRss(): void {
51
+        $rss = file_get_contents(dirname(__DIR__) . '/Fixtures/data/dailymotion.rss');
52
+        if (empty($rss)) {
53
+            $this->markTestSkipped();
54
+        }
55 55
 
56
-		$balises_media = extraire_balises($rss, 'media:content');
57
-		$this->assertIsArray($balises_media);
58
-		$this->assertEquals(count($balises_media), 40);
59
-	}
56
+        $balises_media = extraire_balises($rss, 'media:content');
57
+        $this->assertIsArray($balises_media);
58
+        $this->assertEquals(count($balises_media), 40);
59
+    }
60 60
 
61
-	public static function providerFiltresExtraireBalises(): array {
62
-		return [
63
-			[['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>'],
64
-			[['<a href="truc" />'], 'allo <a href="truc" />'],
65
-			[["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />"],
66
-			[[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">']],
67
-			[['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin'],
68
-			[
69
-				['<a href="truc">chose</a>', '<A href="truc">machin</a>'],
70
-				'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>',
71
-			],
72
-			[['<a href="truc">'], 'bonjour <a href="truc">chose'],
73
-			[['<a href="truc"/>'], '<a href="truc"/>chose</a>'],
74
-			[['<a>chose</a>'], '<a>chose</a>'],
75
-			[['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>', 'a'],
76
-			[['<a href="truc" />'], 'allo <a href="truc" />', 'a'],
77
-			[["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />", 'a'],
78
-			[[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">'], 'a'],
79
-			[['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin', 'a'],
80
-			[
81
-				['<a href="truc">chose</a>', '<A href="truc">machin</a>'],
82
-				'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>',
83
-				'a',
84
-			],
85
-			[['<a href="truc">'], 'bonjour <a href="truc">chose', 'a'],
86
-			[['<a href="truc"/>'], '<a href="truc"/>chose</a>', 'a'],
87
-			[['<a>chose</a>'], '<a>chose</a>', 'a'],
88
-			[[], 'allo <a href="truc">chose</a>', 'b'],
89
-			[[], 'allo <a href="truc" />', 'b'],
90
-			[[], 'allo' . "\n" . " <a\nhref='truc' />", 'b'],
91
-			[[[], []], ['allo <a href="1">', 'allo <a href="2">'], 'b'],
92
-			[[], 'bonjour <a href="truc">chose</a> machin', 'b'],
93
-			[[], 'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>', 'b'],
94
-			[[], 'bonjour <a href="truc">chose', 'b'],
95
-			[[], '<a href="truc"/>chose</a>', 'b'],
96
-			[[], '<a>chose</a>', 'b'],
97
-			'div_2' => [
98
-				['<div class="message">Hello <div class="inside">World!</div></div>'],
99
-				'<div class="message">Hello <div class="inside">World!</div></div>',
100
-				'div',
101
-			],
102
-			'div_3' => [
103
-				['<div class="message">Hello <div class="inside">World<div>!</div></div></div>'],
104
-				'<div class="message">Hello <div class="inside">World<div>!</div></div></div>',
105
-				'div',
106
-			],
107
-			'div_3_et_autofermante_1' => [
108
-				['<div class="message">Hello <div class="inside">World<div>! <div/> </div></div></div>'],
109
-				'<div class="message">Hello <div class="inside">World<div>! <div/> </div></div></div>',
110
-				'div',
111
-			],
112
-			'div_3_et_autofermante_2' => [
113
-				['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div></div>'],
114
-				'<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div></div>',
115
-				'div',
116
-			],
117
-			'div_3_et_autofermante_3' => [
118
-				['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>'],
119
-				'<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>',
120
-				'div',
121
-			],
122
-			'div_3_et_autofermante_4' => [
123
-				['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>', '<div/>'],
124
-				'<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
125
-				'div',
126
-			],
127
-			'div_3_et_autofermante_5' => [
128
-				[
129
-					'<div/>',
130
-					'<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>',
131
-					'<div/>',
132
-				],
133
-				'<div/><div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
134
-				'div',
135
-			],
136
-			'div_3_et_autofermante_5_nbmax' => [
137
-				['<div/>'],
138
-				'<div/><div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
139
-				'div',
140
-				['nb_max' => 1],
141
-			],
142
-			'div_3_et_autofermante_5_profondeur_2' => [
143
-				['<div class="hello">Hello</div>', '<div class="world">World</div>', '<div>!</div>', '<div/>'],
144
-				'<div class="message"><div class="hello">Hello</div> <div class="world">World</div><div>!</div> <div/></div>',
145
-				'div',
146
-				['profondeur' => '2'],
147
-			],
148
-			'div_3_et_autofermante_5_profondeur_3' => [
149
-				[],
150
-				'<div class="message"><div class="hello">Hello</div> <div class="world">World</div><div>!</div> <div/></div>',
151
-				'div',
152
-				['profondeur' => '3'],
153
-			],
154
-			'div_3_et_autofermante_5_profondeur_3_2' => [
155
-				['<div>lo</div>'],
156
-				'<div class="message"><div class="hello">Hel<div>lo</div></div> <div class="world">World</div><div>!</div> <div/></div>',
157
-				'div',
158
-				['profondeur' => '3'],
159
-			],
160
-		];
161
-	}
61
+    public static function providerFiltresExtraireBalises(): array {
62
+        return [
63
+            [['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>'],
64
+            [['<a href="truc" />'], 'allo <a href="truc" />'],
65
+            [["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />"],
66
+            [[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">']],
67
+            [['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin'],
68
+            [
69
+                ['<a href="truc">chose</a>', '<A href="truc">machin</a>'],
70
+                'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>',
71
+            ],
72
+            [['<a href="truc">'], 'bonjour <a href="truc">chose'],
73
+            [['<a href="truc"/>'], '<a href="truc"/>chose</a>'],
74
+            [['<a>chose</a>'], '<a>chose</a>'],
75
+            [['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>', 'a'],
76
+            [['<a href="truc" />'], 'allo <a href="truc" />', 'a'],
77
+            [["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />", 'a'],
78
+            [[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">'], 'a'],
79
+            [['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin', 'a'],
80
+            [
81
+                ['<a href="truc">chose</a>', '<A href="truc">machin</a>'],
82
+                'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>',
83
+                'a',
84
+            ],
85
+            [['<a href="truc">'], 'bonjour <a href="truc">chose', 'a'],
86
+            [['<a href="truc"/>'], '<a href="truc"/>chose</a>', 'a'],
87
+            [['<a>chose</a>'], '<a>chose</a>', 'a'],
88
+            [[], 'allo <a href="truc">chose</a>', 'b'],
89
+            [[], 'allo <a href="truc" />', 'b'],
90
+            [[], 'allo' . "\n" . " <a\nhref='truc' />", 'b'],
91
+            [[[], []], ['allo <a href="1">', 'allo <a href="2">'], 'b'],
92
+            [[], 'bonjour <a href="truc">chose</a> machin', 'b'],
93
+            [[], 'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>', 'b'],
94
+            [[], 'bonjour <a href="truc">chose', 'b'],
95
+            [[], '<a href="truc"/>chose</a>', 'b'],
96
+            [[], '<a>chose</a>', 'b'],
97
+            'div_2' => [
98
+                ['<div class="message">Hello <div class="inside">World!</div></div>'],
99
+                '<div class="message">Hello <div class="inside">World!</div></div>',
100
+                'div',
101
+            ],
102
+            'div_3' => [
103
+                ['<div class="message">Hello <div class="inside">World<div>!</div></div></div>'],
104
+                '<div class="message">Hello <div class="inside">World<div>!</div></div></div>',
105
+                'div',
106
+            ],
107
+            'div_3_et_autofermante_1' => [
108
+                ['<div class="message">Hello <div class="inside">World<div>! <div/> </div></div></div>'],
109
+                '<div class="message">Hello <div class="inside">World<div>! <div/> </div></div></div>',
110
+                'div',
111
+            ],
112
+            'div_3_et_autofermante_2' => [
113
+                ['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div></div>'],
114
+                '<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div></div>',
115
+                'div',
116
+            ],
117
+            'div_3_et_autofermante_3' => [
118
+                ['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>'],
119
+                '<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>',
120
+                'div',
121
+            ],
122
+            'div_3_et_autofermante_4' => [
123
+                ['<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>', '<div/>'],
124
+                '<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
125
+                'div',
126
+            ],
127
+            'div_3_et_autofermante_5' => [
128
+                [
129
+                    '<div/>',
130
+                    '<div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div>',
131
+                    '<div/>',
132
+                ],
133
+                '<div/><div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
134
+                'div',
135
+            ],
136
+            'div_3_et_autofermante_5_nbmax' => [
137
+                ['<div/>'],
138
+                '<div/><div class="message">Hello <div class="inside">World<div>!<div/></div><div/></div><div/></div><div/>',
139
+                'div',
140
+                ['nb_max' => 1],
141
+            ],
142
+            'div_3_et_autofermante_5_profondeur_2' => [
143
+                ['<div class="hello">Hello</div>', '<div class="world">World</div>', '<div>!</div>', '<div/>'],
144
+                '<div class="message"><div class="hello">Hello</div> <div class="world">World</div><div>!</div> <div/></div>',
145
+                'div',
146
+                ['profondeur' => '2'],
147
+            ],
148
+            'div_3_et_autofermante_5_profondeur_3' => [
149
+                [],
150
+                '<div class="message"><div class="hello">Hello</div> <div class="world">World</div><div>!</div> <div/></div>',
151
+                'div',
152
+                ['profondeur' => '3'],
153
+            ],
154
+            'div_3_et_autofermante_5_profondeur_3_2' => [
155
+                ['<div>lo</div>'],
156
+                '<div class="message"><div class="hello">Hel<div>lo</div></div> <div class="world">World</div><div>!</div> <div/></div>',
157
+                'div',
158
+                ['profondeur' => '3'],
159
+            ],
160
+        ];
161
+    }
162 162
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	}
49 49
 
50 50
 	public function testFiltresExtraireBalisesMediaRss(): void {
51
-		$rss = file_get_contents(dirname(__DIR__) . '/Fixtures/data/dailymotion.rss');
51
+		$rss = file_get_contents(dirname(__DIR__).'/Fixtures/data/dailymotion.rss');
52 52
 		if (empty($rss)) {
53 53
 			$this->markTestSkipped();
54 54
 		}
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 		return [
63 63
 			[['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>'],
64 64
 			[['<a href="truc" />'], 'allo <a href="truc" />'],
65
-			[["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />"],
65
+			[["<a\nhref='truc' />"], 'allo'."\n"." <a\nhref='truc' />"],
66 66
 			[[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">']],
67 67
 			[['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin'],
68 68
 			[
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 			[['<a>chose</a>'], '<a>chose</a>'],
75 75
 			[['<a href="truc">chose</a>'], 'allo <a href="truc">chose</a>', 'a'],
76 76
 			[['<a href="truc" />'], 'allo <a href="truc" />', 'a'],
77
-			[["<a\nhref='truc' />"], 'allo' . "\n" . " <a\nhref='truc' />", 'a'],
77
+			[["<a\nhref='truc' />"], 'allo'."\n"." <a\nhref='truc' />", 'a'],
78 78
 			[[['<a href="1">'], ['<a href="2">']], ['allo <a href="1">', 'allo <a href="2">'], 'a'],
79 79
 			[['<a href="truc">chose</a>'], 'bonjour <a href="truc">chose</a> machin', 'a'],
80 80
 			[
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 			[['<a>chose</a>'], '<a>chose</a>', 'a'],
88 88
 			[[], 'allo <a href="truc">chose</a>', 'b'],
89 89
 			[[], 'allo <a href="truc" />', 'b'],
90
-			[[], 'allo' . "\n" . " <a\nhref='truc' />", 'b'],
90
+			[[], 'allo'."\n"." <a\nhref='truc' />", 'b'],
91 91
 			[[[], []], ['allo <a href="1">', 'allo <a href="2">'], 'b'],
92 92
 			[[], 'bonjour <a href="truc">chose</a> machin', 'b'],
93 93
 			[[], 'bonjour <a href="truc">chose</a> machin <A href="truc">machin</a>', 'b'],
Please login to merge, or discard this patch.
ecrire/tests/Filtre/IdentifiantSlugTest.php 1 patch
Indentation   +668 added lines, -668 removed lines patch added patch discarded remove patch
@@ -13,683 +13,683 @@
 block discarded – undo
13 13
 
14 14
 class IdentifiantSlugTest extends TestCase
15 15
 {
16
-	public static function setUpBeforeClass(): void {
17
-		find_in_path('./inc/filtres.php', '', true);
18
-	}
16
+    public static function setUpBeforeClass(): void {
17
+        find_in_path('./inc/filtres.php', '', true);
18
+    }
19 19
 
20
-	#[DataProvider('providerFiltresIdentifiantSlug')]
21
-	public function testFiltresIdentifiantSlug($expected, ...$args): void {
22
-		$actual = identifiant_slug(...$args);
23
-		$this->assertSame($expected, $actual);
24
-	}
20
+    #[DataProvider('providerFiltresIdentifiantSlug')]
21
+    public function testFiltresIdentifiantSlug($expected, ...$args): void {
22
+        $actual = identifiant_slug(...$args);
23
+        $this->assertSame($expected, $actual);
24
+    }
25 25
 
26
-	public static function providerFiltresIdentifiantSlug(): array {
27
-		return [
28
-			0 => [
29
-				0 => '1',
30
-				1 => true,
31
-			],
32
-			1 => [
33
-				0 => '',
34
-				1 => false,
35
-			],
36
-			2 => [
37
-				0 => '0',
38
-				1 => 0,
39
-			],
40
-			3 => [
41
-				0 => '1',
42
-				1 => -1,
43
-			],
44
-			4 => [
45
-				0 => '1',
46
-				1 => 1,
47
-			],
48
-			5 => [
49
-				0 => '2',
50
-				1 => 2,
51
-			],
52
-			6 => [
53
-				0 => '3',
54
-				1 => 3,
55
-			],
56
-			7 => [
57
-				0 => '4',
58
-				1 => 4,
59
-			],
60
-			8 => [
61
-				0 => '5',
62
-				1 => 5,
63
-			],
64
-			9 => [
65
-				0 => '6',
66
-				1 => 6,
67
-			],
68
-			10 => [
69
-				0 => '7',
70
-				1 => 7,
71
-			],
72
-			11 => [
73
-				0 => '10',
74
-				1 => 10,
75
-			],
76
-			12 => [
77
-				0 => '20',
78
-				1 => 20,
79
-			],
80
-			13 => [
81
-				0 => '30',
82
-				1 => 30,
83
-			],
84
-			14 => [
85
-				0 => '50',
86
-				1 => 50,
87
-			],
88
-			15 => [
89
-				0 => '100',
90
-				1 => 100,
91
-			],
92
-			16 => [
93
-				0 => '1000',
94
-				1 => 1000,
95
-			],
96
-			17 => [
97
-				0 => '10000',
98
-				1 => 10000,
99
-			],
100
-			18 => [
101
-				0 => '0',
102
-				1 => 0.0,
103
-			],
104
-			19 => [
105
-				0 => '0_25',
106
-				1 => 0.25,
107
-			],
108
-			20 => [
109
-				0 => '0_5',
110
-				1 => 0.5,
111
-			],
112
-			21 => [
113
-				0 => '0_75',
114
-				1 => 0.75,
115
-			],
116
-			22 => [
117
-				0 => '1',
118
-				1 => 1.0,
119
-			],
120
-			23 => [
121
-				0 => '',
122
-				1 => '',
123
-			],
124
-			24 => [
125
-				0 => '0',
126
-				1 => '0',
127
-			],
128
-			25 => [
129
-				0 => 'un_texte_avec_des_liens_article_1_art1_spip_https_www_spip_n',
130
-				1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->https://www.spip.net] https://www.spip.net',
131
-			],
132
-			26 => [
133
-				0 => 'un_texte_avec_des_entites',
134
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
135
-			],
136
-			27 => [
137
-				0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp',
138
-				1 => 'Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot;',
139
-			],
140
-			28 => [
141
-				0 => 'un_texte_avec_des_entites_numeriques_38_60_62',
142
-				1 => 'Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot;',
143
-			],
144
-			29 => [
145
-				0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62',
146
-				1 => 'Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot;',
147
-			],
148
-			30 => [
149
-				0 => 'un_texte_sans_entites',
150
-				1 => 'Un texte sans entites &<>"\'',
151
-			],
152
-			31 => [
153
-				0 => 'des_raccourcis_italique_gras_du_code',
154
-				1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
155
-			],
156
-			32 => [
157
-				0 => 'un_modele_https_www_spip_net',
158
-				1 => 'Un modele <modeleinexistant|lien=[->https://www.spip.net]>',
159
-			],
160
-			33 => [
161
-				0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes',
162
-				1 => 'Un texte avec des retour
26
+    public static function providerFiltresIdentifiantSlug(): array {
27
+        return [
28
+            0 => [
29
+                0 => '1',
30
+                1 => true,
31
+            ],
32
+            1 => [
33
+                0 => '',
34
+                1 => false,
35
+            ],
36
+            2 => [
37
+                0 => '0',
38
+                1 => 0,
39
+            ],
40
+            3 => [
41
+                0 => '1',
42
+                1 => -1,
43
+            ],
44
+            4 => [
45
+                0 => '1',
46
+                1 => 1,
47
+            ],
48
+            5 => [
49
+                0 => '2',
50
+                1 => 2,
51
+            ],
52
+            6 => [
53
+                0 => '3',
54
+                1 => 3,
55
+            ],
56
+            7 => [
57
+                0 => '4',
58
+                1 => 4,
59
+            ],
60
+            8 => [
61
+                0 => '5',
62
+                1 => 5,
63
+            ],
64
+            9 => [
65
+                0 => '6',
66
+                1 => 6,
67
+            ],
68
+            10 => [
69
+                0 => '7',
70
+                1 => 7,
71
+            ],
72
+            11 => [
73
+                0 => '10',
74
+                1 => 10,
75
+            ],
76
+            12 => [
77
+                0 => '20',
78
+                1 => 20,
79
+            ],
80
+            13 => [
81
+                0 => '30',
82
+                1 => 30,
83
+            ],
84
+            14 => [
85
+                0 => '50',
86
+                1 => 50,
87
+            ],
88
+            15 => [
89
+                0 => '100',
90
+                1 => 100,
91
+            ],
92
+            16 => [
93
+                0 => '1000',
94
+                1 => 1000,
95
+            ],
96
+            17 => [
97
+                0 => '10000',
98
+                1 => 10000,
99
+            ],
100
+            18 => [
101
+                0 => '0',
102
+                1 => 0.0,
103
+            ],
104
+            19 => [
105
+                0 => '0_25',
106
+                1 => 0.25,
107
+            ],
108
+            20 => [
109
+                0 => '0_5',
110
+                1 => 0.5,
111
+            ],
112
+            21 => [
113
+                0 => '0_75',
114
+                1 => 0.75,
115
+            ],
116
+            22 => [
117
+                0 => '1',
118
+                1 => 1.0,
119
+            ],
120
+            23 => [
121
+                0 => '',
122
+                1 => '',
123
+            ],
124
+            24 => [
125
+                0 => '0',
126
+                1 => '0',
127
+            ],
128
+            25 => [
129
+                0 => 'un_texte_avec_des_liens_article_1_art1_spip_https_www_spip_n',
130
+                1 => 'Un texte avec des <a href="http://spip.net">liens</a> [Article 1->art1] [spip->https://www.spip.net] https://www.spip.net',
131
+            ],
132
+            26 => [
133
+                0 => 'un_texte_avec_des_entites',
134
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot;',
135
+            ],
136
+            27 => [
137
+                0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp',
138
+                1 => 'Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot;',
139
+            ],
140
+            28 => [
141
+                0 => 'un_texte_avec_des_entites_numeriques_38_60_62',
142
+                1 => 'Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot;',
143
+            ],
144
+            29 => [
145
+                0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62',
146
+                1 => 'Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot;',
147
+            ],
148
+            30 => [
149
+                0 => 'un_texte_sans_entites',
150
+                1 => 'Un texte sans entites &<>"\'',
151
+            ],
152
+            31 => [
153
+                0 => 'des_raccourcis_italique_gras_du_code',
154
+                1 => '{{{Des raccourcis}}} {italique} {{gras}} <code>du code</code>',
155
+            ],
156
+            32 => [
157
+                0 => 'un_modele_https_www_spip_net',
158
+                1 => 'Un modele <modeleinexistant|lien=[->https://www.spip.net]>',
159
+            ],
160
+            33 => [
161
+                0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes',
162
+                1 => 'Un texte avec des retour
163 163
 a la ligne et meme des
164 164
 
165 165
 paragraphes',
166
-			],
167
-			34 => [
168
-				0 => 'un_texte_avec_des_liens_avec_des_accents_iso_a_e_i_o_u_artic',
169
-				1 => "Un texte avec des <a href=\"http://spip.net\">liens avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC</a> [Article 1 avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->art1] [spip avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->https://www.spip.net] https://www.spip.net",
170
-			],
171
-			35 => [
172
-				0 => 'un_texte_avec_des_entites_et_avec_des_accents_iso_a_e_i_o_u',
173
-				1 => "Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
174
-			],
175
-			36 => [
176
-				0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp_et_avec_de',
177
-				1 => "Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
178
-			],
179
-			37 => [
180
-				0 => 'un_texte_avec_des_entites_numeriques_38_60_62_et_avec_des_ac',
181
-				1 => "Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
182
-			],
183
-			38 => [
184
-				0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62_et_av',
185
-				1 => "Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
186
-			],
187
-			39 => [
188
-				0 => 'un_texte_sans_entites_et_avec_des_accents_iso_a_e_i_o_u',
189
-				1 => "Un texte sans entites &<>\"' et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
190
-			],
191
-			40 => [
192
-				0 => 'des_raccourcis_avec_des_accents_iso_a_e_i_o_u_italique_avec_',
193
-				1 => "{{{Des raccourcis avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC}}} {italique avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC} {{gras avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC}} <code>du code avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC</code>",
194
-			],
195
-			41 => [
196
-				0 => 'un_modele_avec_des_accents_iso_a_e_i_o_u_https_www_spip_net',
197
-				1 => "Un modele avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC <modeleinexistant|lien=[avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->https://www.spip.net]>",
198
-			],
199
-			42 => [
200
-				0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes_',
201
-				1 => 'Un texte avec des retour
166
+            ],
167
+            34 => [
168
+                0 => 'un_texte_avec_des_liens_avec_des_accents_iso_a_e_i_o_u_artic',
169
+                1 => "Un texte avec des <a href=\"http://spip.net\">liens avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC</a> [Article 1 avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->art1] [spip avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->https://www.spip.net] https://www.spip.net",
170
+            ],
171
+            35 => [
172
+                0 => 'un_texte_avec_des_entites_et_avec_des_accents_iso_a_e_i_o_u',
173
+                1 => "Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
174
+            ],
175
+            36 => [
176
+                0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp_et_avec_de',
177
+                1 => "Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
178
+            ],
179
+            37 => [
180
+                0 => 'un_texte_avec_des_entites_numeriques_38_60_62_et_avec_des_ac',
181
+                1 => "Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
182
+            ],
183
+            38 => [
184
+                0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62_et_av',
185
+                1 => "Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot; et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
186
+            ],
187
+            39 => [
188
+                0 => 'un_texte_sans_entites_et_avec_des_accents_iso_a_e_i_o_u',
189
+                1 => "Un texte sans entites &<>\"' et avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC",
190
+            ],
191
+            40 => [
192
+                0 => 'des_raccourcis_avec_des_accents_iso_a_e_i_o_u_italique_avec_',
193
+                1 => "{{{Des raccourcis avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC}}} {italique avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC} {{gras avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC}} <code>du code avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC</code>",
194
+            ],
195
+            41 => [
196
+                0 => 'un_modele_avec_des_accents_iso_a_e_i_o_u_https_www_spip_net',
197
+                1 => "Un modele avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC <modeleinexistant|lien=[avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC->https://www.spip.net]>",
198
+            ],
199
+            42 => [
200
+                0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes_',
201
+                1 => 'Un texte avec des retour
202 202
 a la ligne et meme des
203 203
 
204 204
 paragraphes avec des accents ISO a\xE0\xE2\xE4 e\xE9\xE8\xEA\xEB i\xEE\xEF o\xF4 u\xF9\xFC',
205
-			],
206
-			43 => [
207
-				0 => 'un_texte_avec_des_liens_avec_des_accents_utf_8_aaaa_eeeee_ii',
208
-				1 => 'Un texte avec des <a href="http://spip.net">liens avec des accents UTF-8 aàâä eéèêë iîï oô uùü</a> [Article 1 avec des accents UTF-8 aàâä eéèêë iîï oô uùü->art1] [spip avec des accents UTF-8 aàâä eéèêë iîï oô uùü->https://www.spip.net] https://www.spip.net',
209
-			],
210
-			44 => [
211
-				0 => 'un_texte_avec_des_entites_et_avec_des_accents_utf_8_aaaa_eee',
212
-				1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
213
-			],
214
-			45 => [
215
-				0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp_et_avec_de',
216
-				1 => 'Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
217
-			],
218
-			46 => [
219
-				0 => 'un_texte_avec_des_entites_numeriques_38_60_62_et_avec_des_ac',
220
-				1 => 'Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
221
-			],
222
-			47 => [
223
-				0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62_et_av',
224
-				1 => 'Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
225
-			],
226
-			48 => [
227
-				0 => 'un_texte_sans_entites_et_avec_des_accents_utf_8_aaaa_eeeee_i',
228
-				1 => 'Un texte sans entites &<>"\' et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
229
-			],
230
-			49 => [
231
-				0 => 'des_raccourcis_avec_des_accents_utf_8_aaaa_eeeee_iii_oo_uuu_',
232
-				1 => '{{{Des raccourcis avec des accents UTF-8 aàâä eéèêë iîï oô uùü}}} {italique avec des accents UTF-8 aàâä eéèêë iîï oô uùü} {{gras avec des accents UTF-8 aàâä eéèêë iîï oô uùü}} <code>du code avec des accents UTF-8 aàâä eéèêë iîï oô uùü</code>',
233
-			],
234
-			50 => [
235
-				0 => 'un_modele_avec_des_accents_utf_8_aaaa_eeeee_iii_oo_uuu_https',
236
-				1 => 'Un modele avec des accents UTF-8 aàâä eéèêë iîï oô uùü <modeleinexistant|lien=[avec des accents UTF-8 aàâä eéèêë iîï oô uùü->https://www.spip.net]>',
237
-			],
238
-			51 => [
239
-				0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes_',
240
-				1 => 'Un texte avec des retour
205
+            ],
206
+            43 => [
207
+                0 => 'un_texte_avec_des_liens_avec_des_accents_utf_8_aaaa_eeeee_ii',
208
+                1 => 'Un texte avec des <a href="http://spip.net">liens avec des accents UTF-8 aàâä eéèêë iîï oô uùü</a> [Article 1 avec des accents UTF-8 aàâä eéèêë iîï oô uùü->art1] [spip avec des accents UTF-8 aàâä eéèêë iîï oô uùü->https://www.spip.net] https://www.spip.net',
209
+            ],
210
+            44 => [
211
+                0 => 'un_texte_avec_des_entites_et_avec_des_accents_utf_8_aaaa_eee',
212
+                1 => 'Un texte avec des entit&eacute;s &amp;&lt;&gt;&quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
213
+            ],
214
+            45 => [
215
+                0 => 'un_texte_avec_des_entit_eacute_s_echap_eacute_amp_et_avec_de',
216
+                1 => 'Un texte avec des entit&amp;eacute;s echap&amp;eacute; &amp;amp;&amp;lt;&amp;gt;&amp;quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
217
+            ],
218
+            46 => [
219
+                0 => 'un_texte_avec_des_entites_numeriques_38_60_62_et_avec_des_ac',
220
+                1 => 'Un texte avec des entit&#233;s num&#233;riques &#38;&#60;&#62;&quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
221
+            ],
222
+            47 => [
223
+                0 => 'un_texte_avec_des_entites_numeriques_echapees_38_60_62_et_av',
224
+                1 => 'Un texte avec des entit&amp;#233;s num&amp;#233;riques echap&amp;#233;es &amp;#38;&amp;#60;&amp;#62;&amp;quot; et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
225
+            ],
226
+            48 => [
227
+                0 => 'un_texte_sans_entites_et_avec_des_accents_utf_8_aaaa_eeeee_i',
228
+                1 => 'Un texte sans entites &<>"\' et avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
229
+            ],
230
+            49 => [
231
+                0 => 'des_raccourcis_avec_des_accents_utf_8_aaaa_eeeee_iii_oo_uuu_',
232
+                1 => '{{{Des raccourcis avec des accents UTF-8 aàâä eéèêë iîï oô uùü}}} {italique avec des accents UTF-8 aàâä eéèêë iîï oô uùü} {{gras avec des accents UTF-8 aàâä eéèêë iîï oô uùü}} <code>du code avec des accents UTF-8 aàâä eéèêë iîï oô uùü</code>',
233
+            ],
234
+            50 => [
235
+                0 => 'un_modele_avec_des_accents_utf_8_aaaa_eeeee_iii_oo_uuu_https',
236
+                1 => 'Un modele avec des accents UTF-8 aàâä eéèêë iîï oô uùü <modeleinexistant|lien=[avec des accents UTF-8 aàâä eéèêë iîï oô uùü->https://www.spip.net]>',
237
+            ],
238
+            51 => [
239
+                0 => 'un_texte_avec_des_retour_a_la_ligne_et_meme_des_paragraphes_',
240
+                1 => 'Un texte avec des retour
241 241
 a la ligne et meme des
242 242
 
243 243
 paragraphes avec des accents UTF-8 aàâä eéèêë iîï oô uùü',
244
-			],
245
-			52 => [
246
-				0 => 'c0',
247
-				1 => 0,
248
-				2 => 'class',
249
-			],
250
-			53 => [
251
-				0 => 'c1',
252
-				1 => -1,
253
-				2 => 'class',
254
-			],
255
-			54 => [
256
-				0 => 'c1',
257
-				1 => 1,
258
-				2 => 'class',
259
-			],
260
-			55 => [
261
-				0 => 'c2',
262
-				1 => 2,
263
-				2 => 'class',
264
-			],
265
-			56 => [
266
-				0 => 'c3',
267
-				1 => 3,
268
-				2 => 'class',
269
-			],
270
-			57 => [
271
-				0 => 'c4',
272
-				1 => 4,
273
-				2 => 'class',
274
-			],
275
-			58 => [
276
-				0 => 'c5',
277
-				1 => 5,
278
-				2 => 'class',
279
-			],
280
-			59 => [
281
-				0 => 'c6',
282
-				1 => 6,
283
-				2 => 'class',
284
-			],
285
-			60 => [
286
-				0 => 'c7',
287
-				1 => 7,
288
-				2 => 'class',
289
-			],
290
-			61 => [
291
-				0 => 'c10',
292
-				1 => 10,
293
-				2 => 'class',
294
-			],
295
-			62 => [
296
-				0 => 'c20',
297
-				1 => 20,
298
-				2 => 'class',
299
-			],
300
-			63 => [
301
-				0 => 'c30',
302
-				1 => 30,
303
-				2 => 'class',
304
-			],
305
-			64 => [
306
-				0 => 'c50',
307
-				1 => 50,
308
-				2 => 'class',
309
-			],
310
-			65 => [
311
-				0 => 'c100',
312
-				1 => 100,
313
-				2 => 'class',
314
-			],
315
-			66 => [
316
-				0 => 'c1000',
317
-				1 => 1000,
318
-				2 => 'class',
319
-			],
320
-			67 => [
321
-				0 => 'c10000',
322
-				1 => 10000,
323
-				2 => 'class',
324
-			],
325
-			68 => [
326
-				0 => 'i0',
327
-				1 => 0,
328
-				2 => 'id',
329
-			],
330
-			69 => [
331
-				0 => 'i1',
332
-				1 => -1,
333
-				2 => 'id',
334
-			],
335
-			70 => [
336
-				0 => 'i1',
337
-				1 => 1,
338
-				2 => 'id',
339
-			],
340
-			71 => [
341
-				0 => 'i2',
342
-				1 => 2,
343
-				2 => 'id',
344
-			],
345
-			72 => [
346
-				0 => 'i3',
347
-				1 => 3,
348
-				2 => 'id',
349
-			],
350
-			73 => [
351
-				0 => 'i4',
352
-				1 => 4,
353
-				2 => 'id',
354
-			],
355
-			74 => [
356
-				0 => 'i5',
357
-				1 => 5,
358
-				2 => 'id',
359
-			],
360
-			75 => [
361
-				0 => 'i6',
362
-				1 => 6,
363
-				2 => 'id',
364
-			],
365
-			76 => [
366
-				0 => 'i7',
367
-				1 => 7,
368
-				2 => 'id',
369
-			],
370
-			77 => [
371
-				0 => 'i10',
372
-				1 => 10,
373
-				2 => 'id',
374
-			],
375
-			78 => [
376
-				0 => 'i20',
377
-				1 => 20,
378
-				2 => 'id',
379
-			],
380
-			79 => [
381
-				0 => 'i30',
382
-				1 => 30,
383
-				2 => 'id',
384
-			],
385
-			80 => [
386
-				0 => 'i50',
387
-				1 => 50,
388
-				2 => 'id',
389
-			],
390
-			81 => [
391
-				0 => 'i100',
392
-				1 => 100,
393
-				2 => 'id',
394
-			],
395
-			82 => [
396
-				0 => 'i1000',
397
-				1 => 1000,
398
-				2 => 'id',
399
-			],
400
-			83 => [
401
-				0 => 'i10000',
402
-				1 => 10000,
403
-				2 => 'id',
404
-			],
405
-			84 => [
406
-				0 => 'a0',
407
-				1 => 0,
408
-				2 => 'anchor',
409
-			],
410
-			85 => [
411
-				0 => 'a1',
412
-				1 => -1,
413
-				2 => 'anchor',
414
-			],
415
-			86 => [
416
-				0 => 'a1',
417
-				1 => 1,
418
-				2 => 'anchor',
419
-			],
420
-			87 => [
421
-				0 => 'a2',
422
-				1 => 2,
423
-				2 => 'anchor',
424
-			],
425
-			88 => [
426
-				0 => 'a3',
427
-				1 => 3,
428
-				2 => 'anchor',
429
-			],
430
-			89 => [
431
-				0 => 'a4',
432
-				1 => 4,
433
-				2 => 'anchor',
434
-			],
435
-			90 => [
436
-				0 => 'a5',
437
-				1 => 5,
438
-				2 => 'anchor',
439
-			],
440
-			91 => [
441
-				0 => 'a6',
442
-				1 => 6,
443
-				2 => 'anchor',
444
-			],
445
-			92 => [
446
-				0 => 'a7',
447
-				1 => 7,
448
-				2 => 'anchor',
449
-			],
450
-			93 => [
451
-				0 => 'a10',
452
-				1 => 10,
453
-				2 => 'anchor',
454
-			],
455
-			94 => [
456
-				0 => 'a20',
457
-				1 => 20,
458
-				2 => 'anchor',
459
-			],
460
-			95 => [
461
-				0 => 'a30',
462
-				1 => 30,
463
-				2 => 'anchor',
464
-			],
465
-			96 => [
466
-				0 => 'a50',
467
-				1 => 50,
468
-				2 => 'anchor',
469
-			],
470
-			97 => [
471
-				0 => 'a100',
472
-				1 => 100,
473
-				2 => 'anchor',
474
-			],
475
-			98 => [
476
-				0 => 'a1000',
477
-				1 => 1000,
478
-				2 => 'anchor',
479
-			],
480
-			99 => [
481
-				0 => 'a10000',
482
-				1 => 10000,
483
-				2 => 'anchor',
484
-			],
485
-			100 => [
486
-				0 => '0',
487
-				1 => 0,
488
-				2 => 'name',
489
-			],
490
-			101 => [
491
-				0 => '1',
492
-				1 => -1,
493
-				2 => 'name',
494
-			],
495
-			102 => [
496
-				0 => '1',
497
-				1 => 1,
498
-				2 => 'name',
499
-			],
500
-			103 => [
501
-				0 => '2',
502
-				1 => 2,
503
-				2 => 'name',
504
-			],
505
-			104 => [
506
-				0 => '3',
507
-				1 => 3,
508
-				2 => 'name',
509
-			],
510
-			105 => [
511
-				0 => '4',
512
-				1 => 4,
513
-				2 => 'name',
514
-			],
515
-			106 => [
516
-				0 => '5',
517
-				1 => 5,
518
-				2 => 'name',
519
-			],
520
-			107 => [
521
-				0 => '6',
522
-				1 => 6,
523
-				2 => 'name',
524
-			],
525
-			108 => [
526
-				0 => '7',
527
-				1 => 7,
528
-				2 => 'name',
529
-			],
530
-			109 => [
531
-				0 => '10',
532
-				1 => 10,
533
-				2 => 'name',
534
-			],
535
-			110 => [
536
-				0 => '20',
537
-				1 => 20,
538
-				2 => 'name',
539
-			],
540
-			111 => [
541
-				0 => '30',
542
-				1 => 30,
543
-				2 => 'name',
544
-			],
545
-			112 => [
546
-				0 => '50',
547
-				1 => 50,
548
-				2 => 'name',
549
-			],
550
-			113 => [
551
-				0 => '100',
552
-				1 => 100,
553
-				2 => 'name',
554
-			],
555
-			114 => [
556
-				0 => '1000',
557
-				1 => 1000,
558
-				2 => 'name',
559
-			],
560
-			115 => [
561
-				0 => '10000',
562
-				1 => 10000,
563
-				2 => 'name',
564
-			],
565
-			116 => [
566
-				0 => 's0_cfcd208',
567
-				1 => 0,
568
-				2 => '',
569
-				3 => [
570
-					'longueur_mini' => 10,
571
-				],
572
-			],
573
-			117 => [
574
-				0 => 's1_6bb61e3',
575
-				1 => -1,
576
-				2 => '',
577
-				3 => [
578
-					'longueur_mini' => 10,
579
-				],
580
-			],
581
-			118 => [
582
-				0 => 's1_c4ca423',
583
-				1 => 1,
584
-				2 => '',
585
-				3 => [
586
-					'longueur_mini' => 10,
587
-				],
588
-			],
589
-			119 => [
590
-				0 => 's2_c81e728',
591
-				1 => 2,
592
-				2 => '',
593
-				3 => [
594
-					'longueur_mini' => 10,
595
-				],
596
-			],
597
-			120 => [
598
-				0 => 's3_eccbc87',
599
-				1 => 3,
600
-				2 => '',
601
-				3 => [
602
-					'longueur_mini' => 10,
603
-				],
604
-			],
605
-			121 => [
606
-				0 => 's4_a87ff67',
607
-				1 => 4,
608
-				2 => '',
609
-				3 => [
610
-					'longueur_mini' => 10,
611
-				],
612
-			],
613
-			122 => [
614
-				0 => 's5_e4da3b7',
615
-				1 => 5,
616
-				2 => '',
617
-				3 => [
618
-					'longueur_mini' => 10,
619
-				],
620
-			],
621
-			123 => [
622
-				0 => 's6_1679091',
623
-				1 => 6,
624
-				2 => '',
625
-				3 => [
626
-					'longueur_mini' => 10,
627
-				],
628
-			],
629
-			124 => [
630
-				0 => 's7_8f14e45',
631
-				1 => 7,
632
-				2 => '',
633
-				3 => [
634
-					'longueur_mini' => 10,
635
-				],
636
-			],
637
-			125 => [
638
-				0 => 's10_d3d944',
639
-				1 => 10,
640
-				2 => '',
641
-				3 => [
642
-					'longueur_mini' => 10,
643
-				],
644
-			],
645
-			126 => [
646
-				0 => 's20_98f137',
647
-				1 => 20,
648
-				2 => '',
649
-				3 => [
650
-					'longueur_mini' => 10,
651
-				],
652
-			],
653
-			127 => [
654
-				0 => 's30_34173c',
655
-				1 => 30,
656
-				2 => '',
657
-				3 => [
658
-					'longueur_mini' => 10,
659
-				],
660
-			],
661
-			128 => [
662
-				0 => 's50_c0c7c7',
663
-				1 => 50,
664
-				2 => '',
665
-				3 => [
666
-					'longueur_mini' => 10,
667
-				],
668
-			],
669
-			129 => [
670
-				0 => 's100_f8991',
671
-				1 => 100,
672
-				2 => '',
673
-				3 => [
674
-					'longueur_mini' => 10,
675
-				],
676
-			],
677
-			130 => [
678
-				0 => 's1000_a9b7',
679
-				1 => 1000,
680
-				2 => '',
681
-				3 => [
682
-					'longueur_mini' => 10,
683
-				],
684
-			],
685
-			131 => [
686
-				0 => 's10000_b7a',
687
-				1 => 10000,
688
-				2 => '',
689
-				3 => [
690
-					'longueur_mini' => 10,
691
-				],
692
-			],
693
-		];
694
-	}
244
+            ],
245
+            52 => [
246
+                0 => 'c0',
247
+                1 => 0,
248
+                2 => 'class',
249
+            ],
250
+            53 => [
251
+                0 => 'c1',
252
+                1 => -1,
253
+                2 => 'class',
254
+            ],
255
+            54 => [
256
+                0 => 'c1',
257
+                1 => 1,
258
+                2 => 'class',
259
+            ],
260
+            55 => [
261
+                0 => 'c2',
262
+                1 => 2,
263
+                2 => 'class',
264
+            ],
265
+            56 => [
266
+                0 => 'c3',
267
+                1 => 3,
268
+                2 => 'class',
269
+            ],
270
+            57 => [
271
+                0 => 'c4',
272
+                1 => 4,
273
+                2 => 'class',
274
+            ],
275
+            58 => [
276
+                0 => 'c5',
277
+                1 => 5,
278
+                2 => 'class',
279
+            ],
280
+            59 => [
281
+                0 => 'c6',
282
+                1 => 6,
283
+                2 => 'class',
284
+            ],
285
+            60 => [
286
+                0 => 'c7',
287
+                1 => 7,
288
+                2 => 'class',
289
+            ],
290
+            61 => [
291
+                0 => 'c10',
292
+                1 => 10,
293
+                2 => 'class',
294
+            ],
295
+            62 => [
296
+                0 => 'c20',
297
+                1 => 20,
298
+                2 => 'class',
299
+            ],
300
+            63 => [
301
+                0 => 'c30',
302
+                1 => 30,
303
+                2 => 'class',
304
+            ],
305
+            64 => [
306
+                0 => 'c50',
307
+                1 => 50,
308
+                2 => 'class',
309
+            ],
310
+            65 => [
311
+                0 => 'c100',
312
+                1 => 100,
313
+                2 => 'class',
314
+            ],
315
+            66 => [
316
+                0 => 'c1000',
317
+                1 => 1000,
318
+                2 => 'class',
319
+            ],
320
+            67 => [
321
+                0 => 'c10000',
322
+                1 => 10000,
323
+                2 => 'class',
324
+            ],
325
+            68 => [
326
+                0 => 'i0',
327
+                1 => 0,
328
+                2 => 'id',
329
+            ],
330
+            69 => [
331
+                0 => 'i1',
332
+                1 => -1,
333
+                2 => 'id',
334
+            ],
335
+            70 => [
336
+                0 => 'i1',
337
+                1 => 1,
338
+                2 => 'id',
339
+            ],
340
+            71 => [
341
+                0 => 'i2',
342
+                1 => 2,
343
+                2 => 'id',
344
+            ],
345
+            72 => [
346
+                0 => 'i3',
347
+                1 => 3,
348
+                2 => 'id',
349
+            ],
350
+            73 => [
351
+                0 => 'i4',
352
+                1 => 4,
353
+                2 => 'id',
354
+            ],
355
+            74 => [
356
+                0 => 'i5',
357
+                1 => 5,
358
+                2 => 'id',
359
+            ],
360
+            75 => [
361
+                0 => 'i6',
362
+                1 => 6,
363
+                2 => 'id',
364
+            ],
365
+            76 => [
366
+                0 => 'i7',
367
+                1 => 7,
368
+                2 => 'id',
369
+            ],
370
+            77 => [
371
+                0 => 'i10',
372
+                1 => 10,
373
+                2 => 'id',
374
+            ],
375
+            78 => [
376
+                0 => 'i20',
377
+                1 => 20,
378
+                2 => 'id',
379
+            ],
380
+            79 => [
381
+                0 => 'i30',
382
+                1 => 30,
383
+                2 => 'id',
384
+            ],
385
+            80 => [
386
+                0 => 'i50',
387
+                1 => 50,
388
+                2 => 'id',
389
+            ],
390
+            81 => [
391
+                0 => 'i100',
392
+                1 => 100,
393
+                2 => 'id',
394
+            ],
395
+            82 => [
396
+                0 => 'i1000',
397
+                1 => 1000,
398
+                2 => 'id',
399
+            ],
400
+            83 => [
401
+                0 => 'i10000',
402
+                1 => 10000,
403
+                2 => 'id',
404
+            ],
405
+            84 => [
406
+                0 => 'a0',
407
+                1 => 0,
408
+                2 => 'anchor',
409
+            ],
410
+            85 => [
411
+                0 => 'a1',
412
+                1 => -1,
413
+                2 => 'anchor',
414
+            ],
415
+            86 => [
416
+                0 => 'a1',
417
+                1 => 1,
418
+                2 => 'anchor',
419
+            ],
420
+            87 => [
421
+                0 => 'a2',
422
+                1 => 2,
423
+                2 => 'anchor',
424
+            ],
425
+            88 => [
426
+                0 => 'a3',
427
+                1 => 3,
428
+                2 => 'anchor',
429
+            ],
430
+            89 => [
431
+                0 => 'a4',
432
+                1 => 4,
433
+                2 => 'anchor',
434
+            ],
435
+            90 => [
436
+                0 => 'a5',
437
+                1 => 5,
438
+                2 => 'anchor',
439
+            ],
440
+            91 => [
441
+                0 => 'a6',
442
+                1 => 6,
443
+                2 => 'anchor',
444
+            ],
445
+            92 => [
446
+                0 => 'a7',
447
+                1 => 7,
448
+                2 => 'anchor',
449
+            ],
450
+            93 => [
451
+                0 => 'a10',
452
+                1 => 10,
453
+                2 => 'anchor',
454
+            ],
455
+            94 => [
456
+                0 => 'a20',
457
+                1 => 20,
458
+                2 => 'anchor',
459
+            ],
460
+            95 => [
461
+                0 => 'a30',
462
+                1 => 30,
463
+                2 => 'anchor',
464
+            ],
465
+            96 => [
466
+                0 => 'a50',
467
+                1 => 50,
468
+                2 => 'anchor',
469
+            ],
470
+            97 => [
471
+                0 => 'a100',
472
+                1 => 100,
473
+                2 => 'anchor',
474
+            ],
475
+            98 => [
476
+                0 => 'a1000',
477
+                1 => 1000,
478
+                2 => 'anchor',
479
+            ],
480
+            99 => [
481
+                0 => 'a10000',
482
+                1 => 10000,
483
+                2 => 'anchor',
484
+            ],
485
+            100 => [
486
+                0 => '0',
487
+                1 => 0,
488
+                2 => 'name',
489
+            ],
490
+            101 => [
491
+                0 => '1',
492
+                1 => -1,
493
+                2 => 'name',
494
+            ],
495
+            102 => [
496
+                0 => '1',
497
+                1 => 1,
498
+                2 => 'name',
499
+            ],
500
+            103 => [
501
+                0 => '2',
502
+                1 => 2,
503
+                2 => 'name',
504
+            ],
505
+            104 => [
506
+                0 => '3',
507
+                1 => 3,
508
+                2 => 'name',
509
+            ],
510
+            105 => [
511
+                0 => '4',
512
+                1 => 4,
513
+                2 => 'name',
514
+            ],
515
+            106 => [
516
+                0 => '5',
517
+                1 => 5,
518
+                2 => 'name',
519
+            ],
520
+            107 => [
521
+                0 => '6',
522
+                1 => 6,
523
+                2 => 'name',
524
+            ],
525
+            108 => [
526
+                0 => '7',
527
+                1 => 7,
528
+                2 => 'name',
529
+            ],
530
+            109 => [
531
+                0 => '10',
532
+                1 => 10,
533
+                2 => 'name',
534
+            ],
535
+            110 => [
536
+                0 => '20',
537
+                1 => 20,
538
+                2 => 'name',
539
+            ],
540
+            111 => [
541
+                0 => '30',
542
+                1 => 30,
543
+                2 => 'name',
544
+            ],
545
+            112 => [
546
+                0 => '50',
547
+                1 => 50,
548
+                2 => 'name',
549
+            ],
550
+            113 => [
551
+                0 => '100',
552
+                1 => 100,
553
+                2 => 'name',
554
+            ],
555
+            114 => [
556
+                0 => '1000',
557
+                1 => 1000,
558
+                2 => 'name',
559
+            ],
560
+            115 => [
561
+                0 => '10000',
562
+                1 => 10000,
563
+                2 => 'name',
564
+            ],
565
+            116 => [
566
+                0 => 's0_cfcd208',
567
+                1 => 0,
568
+                2 => '',
569
+                3 => [
570
+                    'longueur_mini' => 10,
571
+                ],
572
+            ],
573
+            117 => [
574
+                0 => 's1_6bb61e3',
575
+                1 => -1,
576
+                2 => '',
577
+                3 => [
578
+                    'longueur_mini' => 10,
579
+                ],
580
+            ],
581
+            118 => [
582
+                0 => 's1_c4ca423',
583
+                1 => 1,
584
+                2 => '',
585
+                3 => [
586
+                    'longueur_mini' => 10,
587
+                ],
588
+            ],
589
+            119 => [
590
+                0 => 's2_c81e728',
591
+                1 => 2,
592
+                2 => '',
593
+                3 => [
594
+                    'longueur_mini' => 10,
595
+                ],
596
+            ],
597
+            120 => [
598
+                0 => 's3_eccbc87',
599
+                1 => 3,
600
+                2 => '',
601
+                3 => [
602
+                    'longueur_mini' => 10,
603
+                ],
604
+            ],
605
+            121 => [
606
+                0 => 's4_a87ff67',
607
+                1 => 4,
608
+                2 => '',
609
+                3 => [
610
+                    'longueur_mini' => 10,
611
+                ],
612
+            ],
613
+            122 => [
614
+                0 => 's5_e4da3b7',
615
+                1 => 5,
616
+                2 => '',
617
+                3 => [
618
+                    'longueur_mini' => 10,
619
+                ],
620
+            ],
621
+            123 => [
622
+                0 => 's6_1679091',
623
+                1 => 6,
624
+                2 => '',
625
+                3 => [
626
+                    'longueur_mini' => 10,
627
+                ],
628
+            ],
629
+            124 => [
630
+                0 => 's7_8f14e45',
631
+                1 => 7,
632
+                2 => '',
633
+                3 => [
634
+                    'longueur_mini' => 10,
635
+                ],
636
+            ],
637
+            125 => [
638
+                0 => 's10_d3d944',
639
+                1 => 10,
640
+                2 => '',
641
+                3 => [
642
+                    'longueur_mini' => 10,
643
+                ],
644
+            ],
645
+            126 => [
646
+                0 => 's20_98f137',
647
+                1 => 20,
648
+                2 => '',
649
+                3 => [
650
+                    'longueur_mini' => 10,
651
+                ],
652
+            ],
653
+            127 => [
654
+                0 => 's30_34173c',
655
+                1 => 30,
656
+                2 => '',
657
+                3 => [
658
+                    'longueur_mini' => 10,
659
+                ],
660
+            ],
661
+            128 => [
662
+                0 => 's50_c0c7c7',
663
+                1 => 50,
664
+                2 => '',
665
+                3 => [
666
+                    'longueur_mini' => 10,
667
+                ],
668
+            ],
669
+            129 => [
670
+                0 => 's100_f8991',
671
+                1 => 100,
672
+                2 => '',
673
+                3 => [
674
+                    'longueur_mini' => 10,
675
+                ],
676
+            ],
677
+            130 => [
678
+                0 => 's1000_a9b7',
679
+                1 => 1000,
680
+                2 => '',
681
+                3 => [
682
+                    'longueur_mini' => 10,
683
+                ],
684
+            ],
685
+            131 => [
686
+                0 => 's10000_b7a',
687
+                1 => 10000,
688
+                2 => '',
689
+                3 => [
690
+                    'longueur_mini' => 10,
691
+                ],
692
+            ],
693
+        ];
694
+    }
695 695
 }
Please login to merge, or discard this patch.