1 | <?php |
||
2 | /** |
||
3 | * ╔═╗╔═╗╔╦╗╦╔╗╔╦ ╦ ╔═╗╔╗ ╔═╗ |
||
4 | * ║ ╦║╣ ║║║║║║║║ ║ ╠═╣╠╩╗╚═╗ |
||
5 | * ╚═╝╚═╝╩ ╩╩╝╚╝╩ ╩═╝╩ ╩╚═╝╚═╝ |
||
6 | * |
||
7 | * Plugin Name: Logger |
||
8 | * Description: Provides a logger for WordPress development |
||
9 | * Version: 1.0.2 |
||
10 | * Author: Paul Ryley |
||
11 | * Author URI: https://profiles.wordpress.org/pryley#content-plugins |
||
12 | * License: GPL3 |
||
13 | * License URI: https://www.gnu.org/licenses/gpl-3.0.html |
||
14 | * Text Domain: logger |
||
15 | * Domain Path: languages |
||
16 | */ |
||
17 | |||
18 | defined( 'WPINC' ) || die; |
||
19 | |||
20 | if( !class_exists( 'GL_Plugin_Check' )) { |
||
21 | require_once __DIR__.'/activate.php'; |
||
22 | } |
||
23 | require_once __DIR__.'/autoload.php'; |
||
24 | if( GL_Plugin_Check::shouldDeactivate( __FILE__ ))return; |
||
25 | GeminiLabs\Logger\Application::load()->init(); |
||
26 | |||
27 | /** |
||
28 | * @param mixed $message |
||
29 | * @return GeminiLabs\Logger\Log |
||
30 | */ |
||
31 | function gllog( $message = null ) { |
||
1 ignored issue
–
show
|
|||
32 | $logger = GeminiLabs\Logger\Application::load()->log->logger(); |
||
33 | return func_num_args() > 0 |
||
34 | ? $logger->debug( func_get_arg(0) ) |
||
35 | : $logger; |
||
36 | } |
||
37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.