commit a4b44d18b6a49ac5bbcc153b999c3932b6c9c2c5 Author: Joel Pittet Date: Wed May 27 23:17:23 2015 -0700 typo and items diff --git a/core/modules/book/src/BookManager.php b/core/modules/book/src/BookManager.php index 4015c4b..03d8a54 100644 --- a/core/modules/book/src/BookManager.php +++ b/core/modules/book/src/BookManager.php @@ -528,7 +528,7 @@ public function build(array $tree) { * Helper function for ::build(). * * @param array $tree - * A data structure representing the tree.. + * A data structure representing the tree. * * @return array * The value to use for the #items property of a renderable menu. @@ -536,7 +536,7 @@ public function build(array $tree) { * @throws \DomainException */ protected function buildItems(array $tree) { - $items = array(); + $items = []; foreach ($tree as $data) { $class = ['menu-item']; diff --git a/core/modules/book/src/BookManagerInterface.php b/core/modules/book/src/BookManagerInterface.php index 96269c0..e45f4e4 100644 --- a/core/modules/book/src/BookManagerInterface.php +++ b/core/modules/book/src/BookManagerInterface.php @@ -255,7 +255,7 @@ public function deleteFromBook($nid); * @return array * A structured array to be rendered by drupal_render(). */ - public function build(array $tree, $level = 0); + public function build(array $tree); /** * Checks access and performs dynamic operations for each link in the tree.