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
269
269
$ aggregate ->attach (new NamespacedPathStackResolver (), 0 );
270
270
}
271
271
272
+ /**
273
+ * @param AggregateResolver $aggregate
274
+ *
275
+ * @return bool
276
+ */
272
277
private function hasNamespacedResolver (AggregateResolver $ aggregate ) : bool
273
278
{
274
279
foreach ($ aggregate as $ resolver ) {
@@ -280,6 +285,11 @@ private function hasNamespacedResolver(AggregateResolver $aggregate) : bool
280
285
return false ;
281
286
}
282
287
288
+ /**
289
+ * @param AggregateResolver $aggregate
290
+ *
291
+ * @return NamespacedPathStackResolver|null
292
+ */
283
293
private function getNamespacedResolver (AggregateResolver $ aggregate ) : ?NamespacedPathStackResolver
284
294
{
285
295
foreach ($ aggregate as $ resolver ) {
@@ -295,6 +305,8 @@ private function getNamespacedResolver(AggregateResolver $aggregate) : ?Namespac
295
305
* Merge global/template parameters with provided view model.
296
306
*
297
307
* @param string $name Template name.
308
+ *
309
+ * @return ModelInterface
298
310
*/
299
311
private function mergeViewModel (string $ name , ModelInterface $ model ) : ModelInterface
300
312
{
Original file line number Diff line number Diff line change @@ -612,9 +612,6 @@ public function testChangeLayoutInTemplate()
612
612
$ renderer = new ZendViewRenderer ();
613
613
$ renderer ->addPath (__DIR__ . '/TestAsset ' );
614
614
615
- $ viewModelChild = new ViewModel ();
616
- $ viewModelChild ->setTemplate ('zendview-change-layout ' );
617
-
618
615
$ result = $ renderer ->render ('zendview-change-layout ' , ['layout ' => 'zendview-layout ' ]);
619
616
620
617
$ contentChild = file_get_contents (__DIR__ . '/TestAsset/zendview-change-layout.phtml ' );
You can’t perform that action at this time.
0 commit comments