Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/Helper/Navigation/Breadcrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public function renderStraight($container = null)
* script. Default is to use the container registered in the helper.
* @param null|string|array $partial [optional] partial view script to use.
* Default is to use the partial registered in the helper. If an array
* is given, it is expected to contain two values; the partial view
* script to use, and the module where the script can be found.
* is given, the first value is used for the partial view script.
* @return string
* @throws Exception\RuntimeException if no partial provided
* @throws Exception\InvalidArgumentException if partial is invalid array
Expand All @@ -169,8 +168,7 @@ public function renderPartial($container = null, $partial = null)
* script. Default is to use the container registered in the helper.
* @param null|string|array $partial [optional] partial view script to use.
* Default is to use the partial registered in the helper. If an array
* is given, it is expected to contain two values; the partial view
* script to use, and the module where the script can be found.
* is given, the first value is used for the partial view script.
* @return string
* @throws Exception\RuntimeException if no partial provided
* @throws Exception\InvalidArgumentException if partial is invalid array
Expand Down Expand Up @@ -206,8 +204,7 @@ public function getLinkLast()
* Sets which partial view script to use for rendering menu.
*
* @param string|array $partial partial view script or null. If an array is
* given, it is expected to contain two values; the partial view script
* to use, and the module where the script can be found.
* given, the first value is used for the partial view script.
* @return Breadcrumbs
*/
public function setPartial($partial)
Expand Down Expand Up @@ -303,8 +300,7 @@ protected function renderPartialModel(array $params, $container, $partial)
if (count($partial) != 2) {
throw new Exception\InvalidArgumentException(
'Unable to render breadcrumbs: A view partial supplied as '
. 'an array must contain two values: partial view '
. 'script and module where script can be found'
. 'an array must contain one value: the partial view script'
);
}

Expand Down
12 changes: 4 additions & 8 deletions src/Helper/Navigation/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,7 @@ protected function renderNormalMenu(
* script. Default is to use the container registered in the helper.
* @param null|string|array $partial [optional] partial view script to use.
* Default is to use the partial registered in the helper. If an array
* is given, it is expected to contain two values; the partial view
* script to use, and the module where the script can be found.
* is given, the first value is used for the partial view script.
* @return string
* @throws Exception\RuntimeException if no partial provided
* @throws Exception\InvalidArgumentException if partial is invalid array
Expand All @@ -405,8 +404,7 @@ public function renderPartial($container = null, $partial = null)
* script. Default is to use the container registered in the helper.
* @param null|string|array $partial [optional] partial view script to use.
* Default is to use the partial registered in the helper. If an array
* is given, it is expected to contain two values; the partial view
* script to use, and the module where the script can be found.
* is given, the first value is used for the partial view script.
* @return string
* @throws Exception\RuntimeException if no partial provided
* @throws Exception\InvalidArgumentException if partial is invalid array
Expand Down Expand Up @@ -641,8 +639,7 @@ public function getOnlyActiveBranch()
* Sets which partial view script to use for rendering menu.
*
* @param string|array $partial partial view script or null. If an array
* is given, it is expected to contain two values; the partial view script
* to use, and the module where the script can be found.
* is given, the first value is used for the partial view script.
* @return self
*/
public function setPartial($partial)
Expand Down Expand Up @@ -773,8 +770,7 @@ protected function renderPartialModel(array $params, $container, $partial)
if (count($partial) != 2) {
throw new Exception\InvalidArgumentException(
'Unable to render menu: A view partial supplied as '
. 'an array must contain two values: partial view '
. 'script and module where script can be found'
. 'an array must contain one value: the partial view script'
);
}

Expand Down