@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | </span> |
43 | 43 | |
44 | 44 | <?php foreach ($collectors as $c) : ?> |
45 | - <?php if (! $c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?> |
|
45 | + <?php if (!$c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?> |
|
46 | 46 | <span class="blitzphp-label"> |
47 | 47 | <a href="javascript: void(0)" data-tab="blitzphp-<?= $c['key'] ?>"> |
48 | 48 | <img src="<?= $c['icon'] ?>"> |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | <!-- Collector-provided Tabs --> |
104 | 104 | <?php foreach ($collectors as $c) : ?> |
105 | - <?php if (! $c['isEmpty']) : ?> |
|
105 | + <?php if (!$c['isEmpty']) : ?> |
|
106 | 106 | <?php if ($c['hasTabContent']) : ?> |
107 | 107 | <div id="blitzphp-<?= $c['key'] ?>" class="tab"> |
108 | 108 | <h2><?= $c['title'] ?> <span><?= $c['titleDetails'] ?></span></h2> |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | </a> |
150 | 150 | |
151 | 151 | <?php if (isset($vars['session'])) : ?> |
152 | - <?php if (! empty($vars['session'])) : ?> |
|
152 | + <?php if (!empty($vars['session'])) : ?> |
|
153 | 153 | <table id="session_table"> |
154 | 154 | <tbody> |
155 | 155 | <?php foreach ($vars['session'] as $key => $value) : ?> |
@@ -40,17 +40,17 @@ discard block |
||
40 | 40 | */ |
41 | 41 | protected string $title = 'Routes'; |
42 | 42 | |
43 | - private DefinedRouteCollector $definedRouteCollector; |
|
44 | - private Router $router; |
|
43 | + private DefinedRouteCollector $definedRouteCollector; |
|
44 | + private Router $router; |
|
45 | 45 | private bool $isAutoRoute = false; |
46 | 46 | |
47 | - public function __construct() |
|
48 | - { |
|
47 | + public function __construct() |
|
48 | + { |
|
49 | 49 | $rawRoutes = Services::routes(true); |
50 | 50 | $this->router = Services::router($rawRoutes, null, true); |
51 | 51 | $this->definedRouteCollector = new DefinedRouteCollector($rawRoutes); |
52 | 52 | $this->isAutoRoute = $rawRoutes->shouldAutoRoute(); |
53 | - } |
|
53 | + } |
|
54 | 54 | |
55 | 55 | /** |
56 | 56 | * {@inheritDoc} |
@@ -103,16 +103,16 @@ discard block |
||
103 | 103 | // Routes définies |
104 | 104 | $routes = []; |
105 | 105 | |
106 | - foreach ($this->definedRouteCollector->collect(false) as $route) { |
|
106 | + foreach ($this->definedRouteCollector->collect(false) as $route) { |
|
107 | 107 | // filtre pour les chaînes, car les rappels ne sont pas affichable |
108 | - if ($route['handler'] !== '(Closure)') { |
|
109 | - $routes[] = [ |
|
110 | - 'method' => strtoupper($route['method']), |
|
111 | - 'route' => $route['route'], |
|
112 | - 'name' => $route['name'], |
|
113 | - 'handler' => $route['handler'], |
|
114 | - ]; |
|
115 | - } |
|
108 | + if ($route['handler'] !== '(Closure)') { |
|
109 | + $routes[] = [ |
|
110 | + 'method' => strtoupper($route['method']), |
|
111 | + 'route' => $route['route'], |
|
112 | + 'name' => $route['name'], |
|
113 | + 'handler' => $route['handler'], |
|
114 | + ]; |
|
115 | + } |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | return [ |
@@ -127,15 +127,15 @@ discard block |
||
127 | 127 | */ |
128 | 128 | public function getBadgeValue(): int |
129 | 129 | { |
130 | - $count = 0; |
|
130 | + $count = 0; |
|
131 | 131 | |
132 | - foreach ($this->definedRouteCollector->collect(false) as $route) { |
|
132 | + foreach ($this->definedRouteCollector->collect(false) as $route) { |
|
133 | 133 | if ($route['handler'] !== '(Closure)') { |
134 | - $count++; |
|
135 | - } |
|
134 | + $count++; |
|
135 | + } |
|
136 | 136 | } |
137 | 137 | |
138 | - return $count; |
|
138 | + return $count; |
|
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | </span> |
43 | 43 | |
44 | 44 | <?php foreach ($collectors as $c) : ?> |
45 | - <?php if (! $c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?> |
|
45 | + <?php if (!$c['isEmpty'] && ($c['hasTabContent'] || $c['hasLabel'])) : ?> |
|
46 | 46 | <span class="blitzphp-label"> |
47 | 47 | <a href="javascript: void(0)" data-tab="blitzphp-<?= $c['key'] ?>"> |
48 | 48 | <img src="<?= $c['icon'] ?>"> |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | |
103 | 103 | <!-- Collector-provided Tabs --> |
104 | 104 | <?php foreach ($collectors as $c) : ?> |
105 | - <?php if (! $c['isEmpty']) : ?> |
|
105 | + <?php if (!$c['isEmpty']) : ?> |
|
106 | 106 | <?php if ($c['hasTabContent']) : ?> |
107 | 107 | <div id="blitzphp-<?= $c['key'] ?>" class="tab"> |
108 | 108 | <h2><?= $c['title'] ?> <span><?= $c['titleDetails'] ?></span></h2> |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | </a> |
150 | 150 | |
151 | 151 | <?php if (isset($vars['session'])) : ?> |
152 | - <?php if (! empty($vars['session'])) : ?> |
|
152 | + <?php if (!empty($vars['session'])) : ?> |
|
153 | 153 | <table id="session_table"> |
154 | 154 | <tbody> |
155 | 155 | <?php foreach ($vars['session'] as $key => $value) : ?> |