@@ -24,8 +24,8 @@ |
||
24 | 24 | $this->assertEquals(2, $count); |
25 | 25 | |
26 | 26 | // assert root level pages |
27 | - for ($i=1; $i <= 4; $i++) { |
|
28 | - $row = '<li><a href="page-' . $i . '" title="Go to the Page ' . $i . ' page">Page ' . $i . '</a>'; |
|
27 | + for ($i = 1; $i <= 4; $i++) { |
|
28 | + $row = '<li><a href="page-'.$i.'" title="Go to the Page '.$i.' page">Page '.$i.'</a>'; |
|
29 | 29 | $this->assertContains($row, $body); |
30 | 30 | $positions["{$i}"] = strpos($body, $row); |
31 | 31 | } |
@@ -9,14 +9,14 @@ |
||
9 | 9 | class SiteMapController extends \PageController |
10 | 10 | { |
11 | 11 | /** |
12 | - * This function will return a unordered list of all pages on the site. |
|
13 | - * Watch for the switch between $page and $child in the second line of the |
|
14 | - * foreach(). |
|
15 | - * |
|
16 | - * Note that this will only skip ErrorPage's at the top/root level of the site. |
|
17 | - * If you have an ErrorPage class somewhere else in the hierarchy, it will be |
|
18 | - * displayed. |
|
19 | - */ |
|
12 | + * This function will return a unordered list of all pages on the site. |
|
13 | + * Watch for the switch between $page and $child in the second line of the |
|
14 | + * foreach(). |
|
15 | + * |
|
16 | + * Note that this will only skip ErrorPage's at the top/root level of the site. |
|
17 | + * If you have an ErrorPage class somewhere else in the hierarchy, it will be |
|
18 | + * displayed. |
|
19 | + */ |
|
20 | 20 | public function SiteMap() |
21 | 21 | { |
22 | 22 | // Pages at the root level only |