| @@ -1,39 +1,39 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | 3 | <div id="glbb-debug-bar"> | 
| 4 | -	<a href="#" class="glbb-toggle glbb-off"><?= __('Toggle', 'blackbar'); ?></a> | |
| 4 | + <a href="#" class="glbb-toggle glbb-off"><?= __( 'Toggle', 'blackbar' ); ?></a> | |
| 5 | 5 | |
| 6 | 6 |  	<a href="javascript:Blackbar.switchPanel('glbb-console')" class="glbb-console"><?= $consoleLabel; ?></a> | 
| 7 | 7 | <div id="glbb-console" class="glbb-debug-panel"> | 
| 8 | -		<?php $blackbar->render('panels/console', array('entries' => $consoleEntries)); ?> | |
| 8 | + <?php $blackbar->render( 'panels/console', array( 'entries' => $consoleEntries ) ); ?> | |
| 9 | 9 | </div> | 
| 10 | 10 | |
| 11 | 11 |  	<a href="javascript:Blackbar.switchPanel('glbb-profiler')" class="glbb-profiler"><?= $profilerLabel; ?></a> | 
| 12 | 12 | <div id="glbb-profiler" class="glbb-debug-panel"> | 
| 13 | -		<?php $blackbar->render('panels/profiler', array('profiler' => $profiler)); ?> | |
| 13 | + <?php $blackbar->render( 'panels/profiler', array( 'profiler' => $profiler ) ); ?> | |
| 14 | 14 | </div> | 
| 15 | 15 | |
| 16 | 16 |  	<a href="javascript:Blackbar.switchPanel('glbb-queries')" class="glbb-queries"><?= $queriesLabel; ?></a> | 
| 17 | 17 | <div id="glbb-queries" class="glbb-debug-panel"> | 
| 18 | -		<?php $blackbar->render('panels/queries', array('queries' => $queries)); ?> | |
| 18 | + <?php $blackbar->render( 'panels/queries', array( 'queries' => $queries ) ); ?> | |
| 19 | 19 | </div> | 
| 20 | 20 | |
| 21 | 21 |  	<a href="javascript:Blackbar.switchPanel('glbb-actions')" class="glbb-actions"><?= $actionsLabel; ?></a> | 
| 22 | 22 | <div id="glbb-actions" class="glbb-debug-panel"> | 
| 23 | -		<?php $blackbar->render('panels/actions', array('actions' => $actions)); ?> | |
| 23 | + <?php $blackbar->render( 'panels/actions', array( 'actions' => $actions ) ); ?> | |
| 24 | 24 | </div> | 
| 25 | 25 | |
| 26 | - <?php if (!is_admin()) : ?> | |
| 27 | -	<a href="javascript:Blackbar.switchPanel('glbb-templates')" class="glbb-templates"><?= __('Templates', 'blackbar'); ?></a> | |
| 26 | + <?php if( !is_admin() ) : ?> | |
| 27 | +	<a href="javascript:Blackbar.switchPanel('glbb-templates')" class="glbb-templates"><?= __( 'Templates', 'blackbar' ); ?></a> | |
| 28 | 28 | <div id="glbb-templates" class="glbb-debug-panel"> | 
| 29 | -		<?php $blackbar->render('panels/templates', array('templates' => $templates)); ?> | |
| 29 | + <?php $blackbar->render( 'panels/templates', array( 'templates' => $templates ) ); ?> | |
| 30 | 30 | </div> | 
| 31 | 31 | <?php endif; ?> | 
| 32 | 32 | |
| 33 | -	<a href="javascript:Blackbar.switchPanel('glbb-globals')" class="glbb-globals"><?= __('Globals', 'blackbar'); ?></a> | |
| 33 | +	<a href="javascript:Blackbar.switchPanel('glbb-globals')" class="glbb-globals"><?= __( 'Globals', 'blackbar' ); ?></a> | |
| 34 | 34 | <div id="glbb-globals" class="glbb-debug-panel"> | 
| 35 | -		<?php $blackbar->render('panels/globals'); ?> | |
| 35 | + <?php $blackbar->render( 'panels/globals' ); ?> | |
| 36 | 36 | </div> | 
| 37 | 37 | |
| 38 | -	<a href="javascript:Blackbar.close()" class="glbb-close"><?= __('Close', 'blackbar'); ?></a> | |
| 38 | + <a href="javascript:Blackbar.close()" class="glbb-close"><?= __( 'Close', 'blackbar' ); ?></a> | |
| 39 | 39 | </div> | 
| @@ -1,16 +1,16 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | 3 | <table> | 
| 4 | 4 | <tbody> | 
| 5 | - <?php if (empty($entries)) : ?> | |
| 5 | + <?php if( empty( $entries ) ) : ?> | |
| 6 | 6 | <tr> | 
| 7 | -			<td><?= __('No entries found.', 'blackbar'); ?></td> | |
| 7 | + <td><?= __( 'No entries found.', 'blackbar' ); ?></td> | |
| 8 | 8 | </tr> | 
| 9 | 9 | <?php else : ?> | 
| 10 | - <?php foreach ($entries as $entry) : ?> | |
| 10 | + <?php foreach( $entries as $entry ) : ?> | |
| 11 | 11 | <tr> | 
| 12 | - <td class="glbb-small"><?= $entry['name']; ?></td> | |
| 13 | - <td><pre><?= $entry['message']; ?></pre></td> | |
| 12 | + <td class="glbb-small"><?= $entry[ 'name' ]; ?></td> | |
| 13 | + <td><pre><?= $entry[ 'message' ]; ?></pre></td> | |
| 14 | 14 | </tr> | 
| 15 | 15 | <?php endforeach; ?> | 
| 16 | 16 | <?php endif; ?> | 
| @@ -6,10 +6,13 @@ | ||
| 6 | 6 | <tr> | 
| 7 | 7 |  			<td><?= __('No entries found.', 'blackbar'); ?></td> | 
| 8 | 8 | </tr> | 
| 9 | - <?php else : ?> | |
| 9 | +		<?php else { | |
| 10 | + : ?> | |
| 10 | 11 | <?php foreach ($entries as $entry) : ?> | 
| 11 | 12 | <tr> | 
| 12 | - <td class="glbb-small"><?= $entry['name']; ?></td> | |
| 13 | + <td class="glbb-small"><?= $entry['name']; | |
| 14 | +} | |
| 15 | +?></td> | |
| 13 | 16 | <td><pre><?= $entry['message']; ?></pre></td> | 
| 14 | 17 | </tr> | 
| 15 | 18 | <?php endforeach; ?> | 
| @@ -1,13 +1,13 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | 3 | <table> | 
| 4 | 4 | <tbody> | 
| 5 | - <?php if (empty($actions->getMeasure())) : ?> | |
| 5 | + <?php if( empty( $actions->getMeasure() ) ) : ?> | |
| 6 | 6 | <tr> | 
| 7 | -			<td><?= __('No entries found.', 'blackbar'); ?></td> | |
| 7 | + <td><?= __( 'No entries found.', 'blackbar' ); ?></td> | |
| 8 | 8 | </tr> | 
| 9 | 9 | <?php else : ?> | 
| 10 | - <?php foreach ($actions->getMeasure() as $hook => $flow) : ?> | |
| 10 | + <?php foreach( $actions->getMeasure() as $hook => $flow ) : ?> | |
| 11 | 11 | <tr> | 
| 12 | 12 | <td class="glbb-smalls"><?php | 
| 13 | 13 | // glsr_log($flow); | 
| @@ -6,14 +6,17 @@ | ||
| 6 | 6 | <tr> | 
| 7 | 7 |  			<td><?= __('No entries found.', 'blackbar'); ?></td> | 
| 8 | 8 | </tr> | 
| 9 | - <?php else : ?> | |
| 9 | +		<?php else { | |
| 10 | + : ?> | |
| 10 | 11 | <?php foreach ($actions->getMeasure() as $hook => $flow) : ?> | 
| 11 | 12 | <tr> | 
| 12 | 13 | <td class="glbb-smalls"><?php | 
| 13 | 14 | // glsr_log($flow); | 
| 14 | 15 | ?></td> | 
| 15 | 16 | </tr> | 
| 16 | - <?php endforeach; ?> | |
| 17 | + <?php endforeach; | |
| 18 | +} | |
| 19 | +?> | |
| 17 | 20 | <?php endif; ?> | 
| 18 | 21 | </tbody> | 
| 19 | 22 | </table> | 
| @@ -1,24 +1,24 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | -<?php if (!SAVEQUERIES) : ?> | |
| 3 | +<?php if( !SAVEQUERIES ) : ?> | |
| 4 | 4 | <table> | 
| 5 | 5 | <tbody> | 
| 6 | 6 | <tr> | 
| 7 | -			<td><a href="https://codex.wordpress.org/Debugging_in_WordPress#SAVEQUERIES">SAVEQUERIES</a> <?= __('must be enabled to view SQL queries', 'blackbar'); ?>.</td> | |
| 7 | + <td><a href="https://codex.wordpress.org/Debugging_in_WordPress#SAVEQUERIES">SAVEQUERIES</a> <?= __( 'must be enabled to view SQL queries', 'blackbar' ); ?>.</td> | |
| 8 | 8 | </tr> | 
| 9 | 9 | </tbody> | 
| 10 | 10 | </table> | 
| 11 | 11 | <?php else : ?> | 
| 12 | 12 | <form method="get" class="glbb-queries-filter"> | 
| 13 | -	<input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __('Find queries containing', 'blackbar'); ?>"> | |
| 14 | -	<input type="text" name="glbb_query_min_time" id="glbb_query_min_time" placeholder="<?= __('Minimum Execution Time', 'blackbar'); ?>"> | |
| 13 | + <input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __( 'Find queries containing', 'blackbar' ); ?>"> | |
| 14 | + <input type="text" name="glbb_query_min_time" id="glbb_query_min_time" placeholder="<?= __( 'Minimum Execution Time', 'blackbar' ); ?>"> | |
| 15 | 15 | </form> | 
| 16 | 16 | <table class="glbb-queries-table"> | 
| 17 | 17 | <tbody> | 
| 18 | - <?php foreach ($queries as $query) : ?> | |
| 18 | + <?php foreach( $queries as $query ) : ?> | |
| 19 | 19 | <tr> | 
| 20 | - <td class="glbb-small"><?= $query['ms']; ?></td> | |
| 21 | - <td><pre><code class="sql"><?= $query['sql']; ?></code></pre></td> | |
| 20 | + <td class="glbb-small"><?= $query[ 'ms' ]; ?></td> | |
| 21 | + <td><pre><code class="sql"><?= $query[ 'sql' ]; ?></code></pre></td> | |
| 22 | 22 | </tr> | 
| 23 | 23 | <?php endforeach; ?> | 
| 24 | 24 | </tbody> | 
| @@ -8,9 +8,12 @@ | ||
| 8 | 8 | </tr> | 
| 9 | 9 | </tbody> | 
| 10 | 10 | </table> | 
| 11 | -<?php else : ?> | |
| 11 | +<?php else { | |
| 12 | + : ?> | |
| 12 | 13 | <form method="get" class="glbb-queries-filter"> | 
| 13 | -	<input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __('Find queries containing', 'blackbar'); ?>"> | |
| 14 | +	<input type="text" name="glbb_query_filter" id="glbb_query_filter" placeholder="<?= __('Find queries containing', 'blackbar'); | |
| 15 | +} | |
| 16 | +?>"> | |
| 14 | 17 |  	<input type="text" name="glbb_query_min_time" id="glbb_query_min_time" placeholder="<?= __('Minimum Execution Time', 'blackbar'); ?>"> | 
| 15 | 18 | </form> | 
| 16 | 19 | <table class="glbb-queries-table"> | 
| @@ -1,7 +1,7 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | -<pre><code class="php">$_GET = <?= esc_html(var_export($_GET, true)); ?>;</code></pre><br/> | |
| 4 | -<pre><code class="php">$_POST = <?= esc_html(var_export($_POST, true)); ?>;</code></pre><br/> | |
| 5 | -<pre><code class="php">$_COOKIE = <?= esc_html(var_export($_COOKIE, true)); ?>;</code></pre><br/> | |
| 6 | -<pre><code class="php">$_SESSION = <?= esc_html(var_export(isset($_SESSION) ? $_SESSION : [], true)); ?>;</code></pre><br/> | |
| 7 | -<pre><code class="php">$_SERVER = <?= esc_html(var_export($_SERVER, true)); ?>;</code></pre><br/> | |
| 3 | +<pre><code class="php">$_GET = <?= esc_html( var_export( $_GET, true ) ); ?>;</code></pre><br/> | |
| 4 | +<pre><code class="php">$_POST = <?= esc_html( var_export( $_POST, true ) ); ?>;</code></pre><br/> | |
| 5 | +<pre><code class="php">$_COOKIE = <?= esc_html( var_export( $_COOKIE, true ) ); ?>;</code></pre><br/> | |
| 6 | +<pre><code class="php">$_SESSION = <?= esc_html( var_export( isset( $_SESSION ) ? $_SESSION : [ ], true ) ); ?>;</code></pre><br/> | |
| 7 | +<pre><code class="php">$_SERVER = <?= esc_html( var_export( $_SERVER, true ) ); ?>;</code></pre><br/> | |
| @@ -1,17 +1,17 @@ | ||
| 1 | -<?php defined('WPINC') || die; ?> | |
| 1 | +<?php defined( 'WPINC' ) || die; ?> | |
| 2 | 2 | |
| 3 | 3 | <table> | 
| 4 | 4 | <tbody> | 
| 5 | - <?php if (empty($profiler->getMeasure())) : ?> | |
| 5 | + <?php if( empty( $profiler->getMeasure() ) ) : ?> | |
| 6 | 6 | <tr> | 
| 7 | -			<td><?= __('No entries found.', 'blackbar'); ?></td> | |
| 7 | + <td><?= __( 'No entries found.', 'blackbar' ); ?></td> | |
| 8 | 8 | </tr> | 
| 9 | 9 | <?php else : ?> | 
| 10 | - <?php foreach ($profiler->getMeasure() as $timer) : ?> | |
| 10 | + <?php foreach( $profiler->getMeasure() as $timer ) : ?> | |
| 11 | 11 | <tr> | 
| 12 | - <td><?= $profiler->getNameString($timer); ?></td> | |
| 13 | - <td class="glbb-medium"><?= $profiler->getTimeString($timer); ?></td> | |
| 14 | - <td class="glbb-medium"><?= $profiler->getMemoryString($timer); ?></td> | |
| 12 | + <td><?= $profiler->getNameString( $timer ); ?></td> | |
| 13 | + <td class="glbb-medium"><?= $profiler->getTimeString( $timer ); ?></td> | |
| 14 | + <td class="glbb-medium"><?= $profiler->getMemoryString( $timer ); ?></td> | |
| 15 | 15 | </tr> | 
| 16 | 16 | <?php endforeach; ?> | 
| 17 | 17 | <?php endif; ?> | 
| @@ -6,10 +6,13 @@ | ||
| 6 | 6 | <tr> | 
| 7 | 7 |  			<td><?= __('No entries found.', 'blackbar'); ?></td> | 
| 8 | 8 | </tr> | 
| 9 | - <?php else : ?> | |
| 9 | +		<?php else { | |
| 10 | + : ?> | |
| 10 | 11 | <?php foreach ($profiler->getMeasure() as $timer) : ?> | 
| 11 | 12 | <tr> | 
| 12 | - <td><?= $profiler->getNameString($timer); ?></td> | |
| 13 | + <td><?= $profiler->getNameString($timer); | |
| 14 | +} | |
| 15 | +?></td> | |
| 13 | 16 | <td class="glbb-medium"><?= $profiler->getTimeString($timer); ?></td> | 
| 14 | 17 | <td class="glbb-medium"><?= $profiler->getMemoryString($timer); ?></td> | 
| 15 | 18 | </tr> | 
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -defined('WPINC') || die; | |
| 3 | +defined( 'WPINC' ) || die; | |
| 4 | 4 | |
| 5 | 5 | echo $templates; | 
| @@ -7,8 +7,8 @@ discard block | ||
| 7 | 7 | * @see https://docs.gravityforms.com/gform_noconflict_scripts/ | 
| 8 | 8 | */ | 
| 9 | 9 |  add_filter('gform_noconflict_scripts', function (array $scripts) { | 
| 10 | - $scripts[] = 'blackbar'; | |
| 11 | - return $scripts; | |
| 10 | + $scripts[] = 'blackbar'; | |
| 11 | + return $scripts; | |
| 12 | 12 | }); | 
| 13 | 13 | |
| 14 | 14 | /* | 
| @@ -16,7 +16,7 @@ discard block | ||
| 16 | 16 | * @see https://docs.gravityforms.com/gform_noconflict_styles/ | 
| 17 | 17 | */ | 
| 18 | 18 |  add_filter('gform_noconflict_styles', function (array $styles) { | 
| 19 | - $styles[] = 'blackbar'; | |
| 20 | - $styles[] = 'blackbar-syntax'; | |
| 21 | - return $styles; | |
| 19 | + $styles[] = 'blackbar'; | |
| 20 | + $styles[] = 'blackbar-syntax'; | |
| 21 | + return $styles; | |
| 22 | 22 | }); | 
| @@ -1,13 +1,13 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -defined('WPINC') || die; | |
| 3 | +defined( 'WPINC' ) || die; | |
| 4 | 4 | |
| 5 | 5 | /* | 
| 6 | 6 | * @return array | 
| 7 | 7 | * @see https://docs.gravityforms.com/gform_noconflict_scripts/ | 
| 8 | 8 | */ | 
| 9 | -add_filter('gform_noconflict_scripts', function (array $scripts) { | |
| 10 | - $scripts[] = 'blackbar'; | |
| 9 | +add_filter( 'gform_noconflict_scripts', function( array $scripts ) { | |
| 10 | + $scripts[ ] = 'blackbar'; | |
| 11 | 11 | return $scripts; | 
| 12 | 12 | }); | 
| 13 | 13 | |
| @@ -15,8 +15,8 @@ discard block | ||
| 15 | 15 | * @return array | 
| 16 | 16 | * @see https://docs.gravityforms.com/gform_noconflict_styles/ | 
| 17 | 17 | */ | 
| 18 | -add_filter('gform_noconflict_styles', function (array $styles) { | |
| 19 | - $styles[] = 'blackbar'; | |
| 20 | - $styles[] = 'blackbar-syntax'; | |
| 18 | +add_filter( 'gform_noconflict_styles', function( array $styles ) { | |
| 19 | + $styles[ ] = 'blackbar'; | |
| 20 | + $styles[ ] = 'blackbar-syntax'; | |
| 21 | 21 | return $styles; | 
| 22 | 22 | }); | 
| @@ -6,7 +6,8 @@ discard block | ||
| 6 | 6 | * @return array | 
| 7 | 7 | * @see https://docs.gravityforms.com/gform_noconflict_scripts/ | 
| 8 | 8 | */ | 
| 9 | -add_filter('gform_noconflict_scripts', function (array $scripts) { | |
| 9 | +add_filter('gform_noconflict_scripts', function (array $scripts) | |
| 10 | +{ | |
| 10 | 11 | $scripts[] = 'blackbar'; | 
| 11 | 12 | return $scripts; | 
| 12 | 13 | }); | 
| @@ -15,7 +16,8 @@ discard block | ||
| 15 | 16 | * @return array | 
| 16 | 17 | * @see https://docs.gravityforms.com/gform_noconflict_styles/ | 
| 17 | 18 | */ | 
| 18 | -add_filter('gform_noconflict_styles', function (array $styles) { | |
| 19 | +add_filter('gform_noconflict_styles', function (array $styles) | |
| 20 | +{ | |
| 19 | 21 | $styles[] = 'blackbar'; | 
| 20 | 22 | $styles[] = 'blackbar-syntax'; | 
| 21 | 23 | return $styles; | 
| @@ -3,20 +3,20 @@ | ||
| 3 | 3 |  defined('WPINC') || die; | 
| 4 | 4 | |
| 5 | 5 |  spl_autoload_register(function ($className) { | 
| 6 | - $namespaces = [ | |
| 7 | - 'GeminiLabs\\BlackBar\\' => __DIR__.'/plugin/', | |
| 8 | - 'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/', | |
| 9 | - ]; | |
| 10 | -    foreach ($namespaces as $prefix => $baseDir) { | |
| 11 | - $len = strlen($prefix); | |
| 12 | -        if (0 !== strncmp($prefix, $className, $len)) { | |
| 13 | - continue; | |
| 14 | - } | |
| 15 | -        $file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php'; | |
| 16 | -        if (!file_exists($file)) { | |
| 17 | - continue; | |
| 18 | - } | |
| 19 | - require $file; | |
| 20 | - break; | |
| 21 | - } | |
| 6 | + $namespaces = [ | |
| 7 | + 'GeminiLabs\\BlackBar\\' => __DIR__.'/plugin/', | |
| 8 | + 'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/', | |
| 9 | + ]; | |
| 10 | +	foreach ($namespaces as $prefix => $baseDir) { | |
| 11 | + $len = strlen($prefix); | |
| 12 | +		if (0 !== strncmp($prefix, $className, $len)) { | |
| 13 | + continue; | |
| 14 | + } | |
| 15 | +		$file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php'; | |
| 16 | +		if (!file_exists($file)) { | |
| 17 | + continue; | |
| 18 | + } | |
| 19 | + require $file; | |
| 20 | + break; | |
| 21 | + } | |
| 22 | 22 | }); | 
| @@ -1,19 +1,19 @@ | ||
| 1 | 1 | <?php | 
| 2 | 2 | |
| 3 | -defined('WPINC') || die; | |
| 3 | +defined( 'WPINC' ) || die; | |
| 4 | 4 | |
| 5 | -spl_autoload_register(function ($className) { | |
| 5 | +spl_autoload_register( function( $className ) { | |
| 6 | 6 | $namespaces = [ | 
| 7 | - 'GeminiLabs\\BlackBar\\' => __DIR__.'/plugin/', | |
| 8 | - 'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/', | |
| 7 | + 'GeminiLabs\\BlackBar\\' => __DIR__ . '/plugin/', | |
| 8 | + 'GeminiLabs\\BlackBar\\Tests\\' => __DIR__ . '/tests/', | |
| 9 | 9 | ]; | 
| 10 | -    foreach ($namespaces as $prefix => $baseDir) { | |
| 11 | - $len = strlen($prefix); | |
| 12 | -        if (0 !== strncmp($prefix, $className, $len)) { | |
| 10 | +    foreach( $namespaces as $prefix => $baseDir ) { | |
| 11 | + $len = strlen( $prefix ); | |
| 12 | +        if( 0 !== strncmp( $prefix, $className, $len ) ) { | |
| 13 | 13 | continue; | 
| 14 | 14 | } | 
| 15 | -        $file = $baseDir.str_replace('\\', '/', substr($className, $len)).'.php'; | |
| 16 | -        if (!file_exists($file)) { | |
| 15 | + $file = $baseDir . str_replace( '\\', '/', substr( $className, $len ) ) . '.php'; | |
| 16 | +        if( !file_exists( $file ) ) { | |
| 17 | 17 | continue; | 
| 18 | 18 | } | 
| 19 | 19 | require $file; | 
| @@ -2,7 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 |  defined('WPINC') || die; | 
| 4 | 4 | |
| 5 | -spl_autoload_register(function ($className) { | |
| 5 | +spl_autoload_register(function ($className) | |
| 6 | +{ | |
| 6 | 7 | $namespaces = [ | 
| 7 | 8 | 'GeminiLabs\\BlackBar\\' => __DIR__.'/plugin/', | 
| 8 | 9 | 'GeminiLabs\\BlackBar\\Tests\\' => __DIR__.'/tests/', |