1212use Zend \EventManager \ListenerAggregateInterface ;
1313
1414/**
15- * Event listener implementing page level caching for pages provided by the
15+ * Event listener implementing page level caching for pages provided by the
1616 * PageController.
1717 */
1818class PageCacheListener implements ListenerAggregateInterface
@@ -29,22 +29,22 @@ class PageCacheListener implements ListenerAggregateInterface
2929
3030 /**
3131 * Whether or not to cache this request
32- *
32+ *
3333 * @var bool
3434 */
3535 protected $ cacheThisRequest = false ;
3636
3737 /**
3838 * Key to use when caching
39- *
39+ *
4040 * @var string
4141 */
4242 protected $ cacheKey ;
4343
4444 /**
4545 * Constructor
46- *
47- * @param AbstractAdapter $cache
46+ *
47+ * @param AbstractAdapter $cache
4848 */
4949 public function __construct (AbstractAdapter $ cache )
5050 {
@@ -56,10 +56,10 @@ public function __construct(AbstractAdapter $cache)
5656 *
5757 * Registers two event listeners:
5858 *
59- * - route, at priority -99,
60- * - finish, at priority -10001,
61- *
62- * @param EventManagerInterface $events
59+ * - route, at priority -99,
60+ * - finish, at priority -10001,
61+ *
62+ * @param EventManagerInterface $events
6363 */
6464 public function attach (EventManagerInterface $ events )
6565 {
@@ -69,8 +69,8 @@ public function attach(EventManagerInterface $events)
6969
7070 /**
7171 * Detach any registered listeners from the given event manager instance.
72- *
73- * @param EventManagerInterface $events
72+ *
73+ * @param EventManagerInterface $events
7474 */
7575 public function detach (EventManagerInterface $ events )
7676 {
@@ -85,12 +85,12 @@ public function detach(EventManagerInterface $events)
8585 * "route" event listener
8686 *
8787 * Checks to see if (a) we have a controller we're interested in, (b) if
88- * a "template" was provided in the route matches, and (c) if we have a
89- * cache hit for that template name. If we do, we return a populated
88+ * a "template" was provided in the route matches, and (c) if we have a
89+ * cache hit for that template name. If we do, we return a populated
9090 * response; if not, we continue, but indicate that we should cache the
9191 * response on completion.
92- *
93- * @param \Zend\Mvc\MvcEvent $e
92+ *
93+ * @param \Zend\Mvc\MvcEvent $e
9494 * @return null|\Zend\Stdlib\ResponseInterface
9595 */
9696 public function onRoutePost ($ e )
@@ -117,7 +117,7 @@ public function onRoutePost($e)
117117 }
118118
119119 $ cacheKey = Module::normalizeCacheKey ($ template );
120-
120+
121121 $ result = $ this ->cache ->getItem ($ cacheKey , $ success );
122122 if (!$ success ) {
123123 // Not a cache hit; keep working, but indicate we should cache this
@@ -136,8 +136,8 @@ public function onRoutePost($e)
136136 * "finish" event listener
137137 *
138138 * Checks to see if we should cache the current request; if so, it does.
139- *
140- * @param \Zend\Mvc\MvcEvent $e
139+ *
140+ * @param \Zend\Mvc\MvcEvent $e
141141 */
142142 public function onFinishPost ($ e )
143143 {
0 commit comments