@@ -10,9 +10,9 @@ discard block |
||
10 | 10 | { |
11 | 11 | public function register(Fol $app) |
12 | 12 | { |
13 | - $app['middlewares'] = function ($app) { |
|
13 | + $app['middlewares'] = function($app) { |
|
14 | 14 | return [ |
15 | - Middleware::create(function () use ($app) { |
|
15 | + Middleware::create(function() use ($app) { |
|
16 | 16 | if ($app->has('users')) { |
17 | 17 | return Middleware::DigestAuthentication($app['users']); |
18 | 18 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | return false; |
21 | 21 | }), |
22 | 22 | |
23 | - Middleware::create(function () use ($app) { |
|
23 | + Middleware::create(function() use ($app) { |
|
24 | 24 | if ($app->has('cache')) { |
25 | 25 | return Middleware::cache($app['cache']); |
26 | 26 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | ->arguments($app) |
33 | 33 | ->catchExceptions(), |
34 | 34 | |
35 | - Middleware::create(function () { |
|
35 | + Middleware::create(function() { |
|
36 | 36 | return class_exists('Whoops\\Run') ? Middleware::whoops() : false; |
37 | 37 | }), |
38 | 38 |
@@ -47,10 +47,13 @@ |
||
47 | 47 | </footer> |
48 | 48 | <?php endif; ?> |
49 | 49 | |
50 | - <?php else: ?> |
|
50 | + <?php else { |
|
51 | + : ?> |
|
51 | 52 | <div class="page-list-noresults"> |
52 | 53 | <p>No items found</p> |
53 | 54 | </div> |
54 | - <?php endif; ?> |
|
55 | + <?php endif; |
|
56 | +} |
|
57 | +?> |
|
55 | 58 | </div> |
56 | 59 | </article> |