Cancelled
Push — master ( 6dcc15...aeaab2 )
by Paul
03:02
created
plugin/Application.php 1 patch
Braces   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,8 @@  discard block
 block discarded – undo
39 39
 			'name' => 'Plugin Name',
40 40
 			'version' => 'Version',
41 41
 		], 'plugin' );
42
-		array_walk( $plugin, function( $value, $key ) {
42
+		array_walk( $plugin, function( $value, $key )
43
+		{
43 44
 			$this->$key = $value;
44 45
 		});
45 46
 	}
@@ -63,7 +64,9 @@  discard block
 block discarded – undo
63 64
 	public function initLogger()
64 65
 	{
65 66
 		$args = func_get_args() + ['', null, 'debug'];
66
-		if( $args[0] !== static::ID || is_null( $args[1] ))return;
67
+		if( $args[0] !== static::ID || is_null( $args[1] )) {
68
+			return;
69
+		}
67 70
 		return $this->log->log( $args[2], $args[1] );
68 71
 	}
69 72
 
@@ -73,7 +76,9 @@  discard block
 block discarded – undo
73 76
 	public function clearLog()
74 77
 	{
75 78
 		$request = filter_input( INPUT_POST, static::ID, FILTER_DEFAULT , FILTER_REQUIRE_ARRAY );
76
-		if( empty( $request['action'] ) || $request['action'] != 'clear-log' )return;
79
+		if( empty( $request['action'] ) || $request['action'] != 'clear-log' ) {
80
+			return;
81
+		}
77 82
 		check_admin_referer( $request['action'] );
78 83
 		$this->log->clear();
79 84
 		add_action( 'admin_notices', [$this, 'renderNotice'] );
@@ -130,7 +135,9 @@  discard block
 block discarded – undo
130 135
 	 */
131 136
 	public function render( $view, array $data = [] )
132 137
 	{
133
-		if( !file_exists( $file = $this->path( 'views/'.$view.'.php' )))return;
138
+		if( !file_exists( $file = $this->path( 'views/'.$view.'.php' ))) {
139
+			return;
140
+		}
134 141
 		extract( $data );
135 142
 		include $file;
136 143
 	}
Please login to merge, or discard this patch.
logger.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,13 +21,16 @@
 block discarded – undo
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
  * @return GeminiLabs\Logger\Log
29 31
  */
30
-function gllog() {
32
+function gllog()
33
+{
31 34
 	$app = GeminiLabs\Logger\Application::load();
32 35
 	return func_num_args() > 0
33 36
 		? call_user_func_array( [$app, 'initLogger'], ['logger', func_get_arg(0)] )
Please login to merge, or discard this patch.