Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jul 11, 2019
1 parent 3ef2728 commit 2643c13
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions debug.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ class WPBP_Debug {
*/
public function __construct( $title ) {
if ( class_exists( 'QM_Collectors' ) ) {
if ( !class_exists( 'QM_Collector_WPBP_Debug' ) ) {
include 'QM_Collector_WPBP_Debug.php';
}
if ( !class_exists( 'QM_Collector_WPBP_Debug' ) ) {
include 'QM_Collector_WPBP_Debug.php';
}

$this->title = $title;
$this->output = array();

Expand All @@ -42,9 +43,10 @@ public function __construct( $title ) {
* @return array
*/
public function load (array $output, QM_Collectors $collectors ) {
if( !class_exists('QM_Collector_WPBP_Debug_Output') ) {
include 'QM_Collector_WPBP_Debug_Output.php';
}
if( !class_exists('QM_Collector_WPBP_Debug_Output') ) {
include 'QM_Collector_WPBP_Debug_Output.php';
}

$id = strtolower( str_replace( ' ', '_', $this->title ) );
if ( $collector = QM_Collectors::get( $id ) ) {
$output[ $id ] = new QM_Collector_WPBP_Debug_Output( $collector, $this->output, $this->title );
Expand Down

0 comments on commit 2643c13

Please sign in to comment.