Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Mar 1, 2024
1 parent 569be33 commit 7b7c4c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 0 additions & 3 deletions inc/afterburner/class-qm-collector.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?php
/**
* Altis Afterburner data collector for the Query Monitor plugin.
*
*/

namespace Altis\Cloud\Afterburner;


/**
* Altis Config Qm Collector.
*
*/
class QM_Collector extends \QM_Collector {

Expand Down
4 changes: 3 additions & 1 deletion inc/afterburner/class-qm-output-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class QM_Output_Html extends \QM_Output_Html {

/**
* Altis Config QM Panel Constructor.
*
* @param QM_Collector $collector Collector object.
*/
public function __construct( QM_Collector $collector ) {
parent::__construct( $collector );
Expand Down Expand Up @@ -71,7 +73,7 @@ public function output() {
</tr>
<tr>
<td><?php echo esc_html__( 'All stats for this PHP worker', 'altis' ); ?></td>
<td><pre><?php echo esc_html( print_r( $stats, true ) ) ?></pre></td>
<td><pre><?php echo esc_html( print_r( $stats, true ) ) // phpcs:ignore ?></pre></td>
</tbody>

<?php
Expand Down
8 changes: 7 additions & 1 deletion inc/afterburner/namespace.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
<?php
/**
* Altis Afterburner namespace bootstrap file.
*/

namespace Altis\Cloud\Afterburner;

/**
* Bootstrap function.
*/
function bootstrap() : void {
add_filter( 'qm/outputter/html', __NAMESPACE__ . '\\register_qm_output_html' );
}

/**
* Register the HTML outputter for the Xray panel
*
* @param array $output
* @param array $output The HTML output for the collector
* @return array
*/
function register_qm_output_html( array $output ) : array {
Expand Down

0 comments on commit 7b7c4c8

Please sign in to comment.