This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,11 @@ private function injectNamespacedResolver(AggregateResolver $aggregate) : void
269269 $ aggregate ->attach (new NamespacedPathStackResolver (), 0 );
270270 }
271271
272+ /**
273+ * @param AggregateResolver $aggregate
274+ *
275+ * @return bool
276+ */
272277 private function hasNamespacedResolver (AggregateResolver $ aggregate ) : bool
273278 {
274279 foreach ($ aggregate as $ resolver ) {
@@ -280,6 +285,11 @@ private function hasNamespacedResolver(AggregateResolver $aggregate) : bool
280285 return false ;
281286 }
282287
288+ /**
289+ * @param AggregateResolver $aggregate
290+ *
291+ * @return NamespacedPathStackResolver|null
292+ */
283293 private function getNamespacedResolver (AggregateResolver $ aggregate ) : ?NamespacedPathStackResolver
284294 {
285295 foreach ($ aggregate as $ resolver ) {
@@ -295,6 +305,8 @@ private function getNamespacedResolver(AggregateResolver $aggregate) : ?Namespac
295305 * Merge global/template parameters with provided view model.
296306 *
297307 * @param string $name Template name.
308+ *
309+ * @return ModelInterface
298310 */
299311 private function mergeViewModel (string $ name , ModelInterface $ model ) : ModelInterface
300312 {
Original file line number Diff line number Diff line change @@ -612,9 +612,6 @@ public function testChangeLayoutInTemplate()
612612 $ renderer = new ZendViewRenderer ();
613613 $ renderer ->addPath (__DIR__ . '/TestAsset ' );
614614
615- $ viewModelChild = new ViewModel ();
616- $ viewModelChild ->setTemplate ('zendview-change-layout ' );
617-
618615 $ result = $ renderer ->render ('zendview-change-layout ' , ['layout ' => 'zendview-layout ' ]);
619616
620617 $ contentChild = file_get_contents (__DIR__ . '/TestAsset/zendview-change-layout.phtml ' );
You can’t perform that action at this time.
0 commit comments