Skip to content

Commit

Permalink
Fixed whitespace and inline documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed May 8, 2016
1 parent 64bb88c commit 47d79a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion php/class-admin-ajax-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ public function handle() {

return Handler::QUIT;
}
}
}
9 changes: 6 additions & 3 deletions php/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Plugin extends Container {

/**
* @param array $values
* @param array $values Optional arguments for container.
*/
public function __construct( $values = array() ) {

Expand Down Expand Up @@ -103,6 +103,9 @@ public function is_debug_display() {
return defined( 'WP_DEBUG_DISPLAY' ) && false !== WP_DEBUG_DISPLAY;
}

/**
* Execute run conditionally on debug configuration.
*/
public function run() {

if ( ! $this->is_debug() || ! $this->is_debug_display() ) {
Expand All @@ -112,6 +115,6 @@ public function run() {
/** @var Run $run */
$run = $this['run'];
$run->register();
ob_start(); // or we are going to be spitting out WP markup before whoops
ob_start(); // Or we are going to be spitting out WP markup before whoops.
}
}
}

0 comments on commit 47d79a8

Please sign in to comment.