@@ -22,7 +22,7 @@ public function testCanGenerateTableOfContents()
2222 {
2323 $ markdown = "# Level 1 \n## Level 2 \n## Level 2B \n### Level 3 \n" ;
2424 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
25-
25+
2626 $ this ->assertSame ([
2727 [
2828 'title ' => 'Level 2 ' ,
@@ -50,9 +50,9 @@ public function testReturnStringContainsExpectedContent()
5050 ## Level 2
5151 ### Level 3
5252 MARKDOWN;
53-
53+
5454 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
55-
55+
5656 $ this ->assertSame ([
5757 [
5858 'title ' => 'Level 2 ' ,
@@ -153,9 +153,9 @@ public function testWithNoLevelOneHeading()
153153 ## Level 2
154154 ### Level 3
155155 MARKDOWN;
156-
156+
157157 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
158-
158+
159159 $ this ->assertSame ([
160160 [
161161 'title ' => 'Level 2 ' ,
@@ -187,9 +187,9 @@ public function testWithMultipleNestedHeadings()
187187 ## Level 2C
188188 ### Level 3D
189189 MARKDOWN;
190-
190+
191191 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
192-
192+
193193 $ this ->assertSame ([
194194 [
195195 'title ' => 'Level 2 ' ,
@@ -248,9 +248,9 @@ public function testWithMultipleLevelOneHeadings()
248248 ## Level 2B
249249 ### Level 3B
250250 MARKDOWN;
251-
251+
252252 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
253-
253+
254254 $ this ->assertSame ([
255255 [
256256 'title ' => 'Level 2 ' ,
@@ -299,9 +299,9 @@ public function testRespectsMinHeadingLevelConfig()
299299 ### Level 3
300300 #### Level 4
301301 MARKDOWN;
302-
302+
303303 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
304-
304+
305305 $ this ->assertSame ([
306306 [
307307 'title ' => 'Level 3 ' ,
@@ -329,9 +329,9 @@ public function testRespectsMaxHeadingLevelConfig()
329329 ### Level 3
330330 #### Level 4
331331 MARKDOWN;
332-
332+
333333 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
334-
334+
335335 $ this ->assertSame ([
336336 [
337337 'title ' => 'Level 2 ' ,
@@ -355,9 +355,9 @@ public function testRespectsMinAndMaxHeadingLevelConfig()
355355 #### Level 4
356356 ##### Level 5
357357 MARKDOWN;
358-
358+
359359 $ result = (new GeneratesTableOfContents ($ markdown ))->execute ();
360-
360+
361361 $ this ->assertSame ([
362362 [
363363 'title ' => 'Level 2 ' ,
@@ -437,7 +437,7 @@ public function testHandlesInvalidConfigLevels()
437437 'docs.sidebar.table_of_contents.min_heading_level ' => -1 ,
438438 'docs.sidebar.table_of_contents.max_heading_level ' => -2 ,
439439 ]);
440-
440+
441441 $ markdown = "## Level 2 \n### Level 3 " ;
442442 $ this ->assertSame ([], (new GeneratesTableOfContents ($ markdown ))->execute ());
443443
@@ -446,15 +446,15 @@ public function testHandlesInvalidConfigLevels()
446446 'docs.sidebar.table_of_contents.min_heading_level ' => 7 ,
447447 'docs.sidebar.table_of_contents.max_heading_level ' => 8 ,
448448 ]);
449-
449+
450450 $ this ->assertSame ([], (new GeneratesTableOfContents ($ markdown ))->execute ());
451451
452452 // Test swapped levels (min > max)
453453 self ::mockConfig ([
454454 'docs.sidebar.table_of_contents.min_heading_level ' => 4 ,
455455 'docs.sidebar.table_of_contents.max_heading_level ' => 2 ,
456456 ]);
457-
457+
458458 $ this ->assertSame ([], (new GeneratesTableOfContents ($ markdown ))->execute ());
459459 }
460460
@@ -477,15 +477,15 @@ public function testSetextHeadersWithDifferentConfigLevels()
477477
478478 $ this ->assertSame ([
479479 [
480- " title " => " Level 1 " ,
481- " slug " => " level-1 " ,
482- " children " => [
480+ ' title ' => ' Level 1 ' ,
481+ ' slug ' => ' level-1 ' ,
482+ ' children ' => [
483483 [
484- " title " => " Level 2 " ,
485- " slug " => " level-2 " ,
486- " children " => [],
487- ]
488- ]
484+ ' title ' => ' Level 2 ' ,
485+ ' slug ' => ' level-2 ' ,
486+ ' children ' => [],
487+ ],
488+ ],
489489 ],
490490 ], $ result );
491491
0 commit comments