@@ -20,7 +20,7 @@ |
||
| 20 | 20 | <input type="hidden" id="enabled" name="<?= $id; ?>[enabled]" value="<?= wp_validate_boolean( $settings->enabled ) ? 0 : 1; ?>"> |
| 21 | 21 | <input type="submit" name="submit" id="submit" class="button button-primary" value="<?= wp_validate_boolean( $settings->enabled ) ? __( 'Disable Logging', 'logger' ) : __( 'Enable Logging', 'logger' ); ?>"> |
| 22 | 22 | </form> |
| 23 | - <?php if( wp_validate_boolean( $settings->enabled )) : ?> |
|
| 23 | + <?php if( wp_validate_boolean( $settings->enabled ) ) : ?> |
|
| 24 | 24 | <br> |
| 25 | 25 | <form method="post"> |
| 26 | 26 | <textarea class="large-text code" rows="20" id="log-file" onclick="this.select()" readonly><?= $log; ?></textarea> |
@@ -17,11 +17,11 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | defined( 'WPINC' ) || die; |
| 19 | 19 | |
| 20 | -if( !class_exists( 'GL_Plugin_Check' )) { |
|
| 21 | - require_once __DIR__.'/activate.php'; |
|
| 20 | +if( !class_exists( 'GL_Plugin_Check' ) ) { |
|
| 21 | + require_once __DIR__ . '/activate.php'; |
|
| 22 | 22 | } |
| 23 | -require_once __DIR__.'/autoload.php'; |
|
| 24 | -if( GL_Plugin_Check::shouldDeactivate( __FILE__ ))return; |
|
| 23 | +require_once __DIR__ . '/autoload.php'; |
|
| 24 | +if( GL_Plugin_Check::shouldDeactivate( __FILE__ ) )return; |
|
| 25 | 25 | GeminiLabs\Logger\Application::load()->init(); |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -31,6 +31,6 @@ discard block |
||
| 31 | 31 | function gllog( $message = null ) { |
| 32 | 32 | $logger = GeminiLabs\Logger\Application::load()->log->logger(); |
| 33 | 33 | return func_num_args() > 0 |
| 34 | - ? $logger->debug( func_get_arg(0) ) |
|
| 34 | + ? $logger->debug( func_get_arg( 0 ) ) |
|
| 35 | 35 | : $logger; |
| 36 | 36 | } |
@@ -21,14 +21,17 @@ |
||
| 21 | 21 | require_once __DIR__.'/activate.php'; |
| 22 | 22 | } |
| 23 | 23 | require_once __DIR__.'/autoload.php'; |
| 24 | -if( GL_Plugin_Check::shouldDeactivate( __FILE__ ))return; |
|
| 24 | +if( GL_Plugin_Check::shouldDeactivate( __FILE__ )) { |
|
| 25 | + return; |
|
| 26 | +} |
|
| 25 | 27 | GeminiLabs\Logger\Application::load()->init(); |
| 26 | 28 | |
| 27 | 29 | /** |
| 28 | 30 | * @param mixed $message |
| 29 | 31 | * @return GeminiLabs\Logger\Log |
| 30 | 32 | */ |
| 31 | -function gllog( $message = null ) { |
|
| 33 | +function gllog( $message = null ) |
|
| 34 | +{ |
|
| 32 | 35 | $logger = GeminiLabs\Logger\Application::load()->log->logger(); |
| 33 | 36 | return func_num_args() > 0 |
| 34 | 37 | ? $logger->debug( func_get_arg(0) ) |