Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit 9c3576b

Browse files
committed
Removes the module option from DocBlocks
1 parent d4b8bf0 commit 9c3576b

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

src/Helper/Navigation/Breadcrumbs.php

+4-8
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ public function renderStraight($container = null)
145145
* script. Default is to use the container registered in the helper.
146146
* @param null|string|array $partial [optional] partial view script to use.
147147
* Default is to use the partial registered in the helper. If an array
148-
* is given, it is expected to contain two values; the partial view
149-
* script to use, and the module where the script can be found.
148+
* is given, the first value is used for the partial view script.
150149
* @return string
151150
* @throws Exception\RuntimeException if no partial provided
152151
* @throws Exception\InvalidArgumentException if partial is invalid array
@@ -169,8 +168,7 @@ public function renderPartial($container = null, $partial = null)
169168
* script. Default is to use the container registered in the helper.
170169
* @param null|string|array $partial [optional] partial view script to use.
171170
* Default is to use the partial registered in the helper. If an array
172-
* is given, it is expected to contain two values; the partial view
173-
* script to use, and the module where the script can be found.
171+
* is given, the first value is used for the partial view script.
174172
* @return string
175173
* @throws Exception\RuntimeException if no partial provided
176174
* @throws Exception\InvalidArgumentException if partial is invalid array
@@ -206,8 +204,7 @@ public function getLinkLast()
206204
* Sets which partial view script to use for rendering menu.
207205
*
208206
* @param string|array $partial partial view script or null. If an array is
209-
* given, it is expected to contain two values; the partial view script
210-
* to use, and the module where the script can be found.
207+
* given, the first value is used for the partial view script.
211208
* @return Breadcrumbs
212209
*/
213210
public function setPartial($partial)
@@ -303,8 +300,7 @@ protected function renderPartialModel(array $params, $container, $partial)
303300
if (count($partial) != 2) {
304301
throw new Exception\InvalidArgumentException(
305302
'Unable to render breadcrumbs: A view partial supplied as '
306-
. 'an array must contain two values: partial view '
307-
. 'script and module where script can be found'
303+
. 'an array must contain one value: the partial view script'
308304
);
309305
}
310306

src/Helper/Navigation/Menu.php

+4-8
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ protected function renderNormalMenu(
381381
* script. Default is to use the container registered in the helper.
382382
* @param null|string|array $partial [optional] partial view script to use.
383383
* Default is to use the partial registered in the helper. If an array
384-
* is given, it is expected to contain two values; the partial view
385-
* script to use, and the module where the script can be found.
384+
* is given, the first value is used for the partial view script.
386385
* @return string
387386
* @throws Exception\RuntimeException if no partial provided
388387
* @throws Exception\InvalidArgumentException if partial is invalid array
@@ -405,8 +404,7 @@ public function renderPartial($container = null, $partial = null)
405404
* script. Default is to use the container registered in the helper.
406405
* @param null|string|array $partial [optional] partial view script to use.
407406
* Default is to use the partial registered in the helper. If an array
408-
* is given, it is expected to contain two values; the partial view
409-
* script to use, and the module where the script can be found.
407+
* is given, the first value is used for the partial view script.
410408
* @return string
411409
* @throws Exception\RuntimeException if no partial provided
412410
* @throws Exception\InvalidArgumentException if partial is invalid array
@@ -641,8 +639,7 @@ public function getOnlyActiveBranch()
641639
* Sets which partial view script to use for rendering menu.
642640
*
643641
* @param string|array $partial partial view script or null. If an array
644-
* is given, it is expected to contain two values; the partial view script
645-
* to use, and the module where the script can be found.
642+
* is given, the first value is used for the partial view script.
646643
* @return self
647644
*/
648645
public function setPartial($partial)
@@ -773,8 +770,7 @@ protected function renderPartialModel(array $params, $container, $partial)
773770
if (count($partial) != 2) {
774771
throw new Exception\InvalidArgumentException(
775772
'Unable to render menu: A view partial supplied as '
776-
. 'an array must contain two values: partial view '
777-
. 'script and module where script can be found'
773+
. 'an array must contain one value: the partial view script'
778774
);
779775
}
780776

0 commit comments

Comments
 (0)