Skip to content

Commit

Permalink
Merge pull request #106 from alleyinteractive/dependabot/composer/all…
Browse files Browse the repository at this point in the history
…eyinteractive/alley-coding-standards-2.0.1

Bump alleyinteractive/alley-coding-standards from 1.0.0 to 2.0.1
  • Loading branch information
vancoder authored Jan 18, 2024
2 parents 339c49a + ac5df89 commit 969f98c
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 56 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ vendor/
.phpunit.cache
coverage/
.vscode
.idea
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"psr/log": "^1.0|^2.0|^3.0"
},
"require-dev": {
"alleyinteractive/alley-coding-standards": "^1.0",
"alleyinteractive/alley-coding-standards": "^2.0",
"mantle-framework/testkit": "^0.10",
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^9.3.3"
Expand Down
253 changes: 203 additions & 50 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inc/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

add_action(
'after_setup_theme',
function() {
function () {
/**
* Flag if Javascript logging is enabled.
*
Expand Down
2 changes: 1 addition & 1 deletion inc/class-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function display( $args, $assoc_args ) {
WP_CLI\Utils\format_items(
'table',
array_map(
function( $log ) {
function ( $log ) {
return [
'level' => $log[0],
'message' => $log[1],
Expand Down
1 change: 0 additions & 1 deletion inc/class-data-structures.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function __construct() {
\add_action( 'init', [ $this, 'create_taxonomy' ] );
\add_action( 'add_meta_boxes', [ $this, 'add_meta_boxes' ] );
\add_action( 'restrict_manage_posts', [ $this, 'add_taxonomy_filters' ] );

}

/**
Expand Down
2 changes: 1 addition & 1 deletion inc/handler/class-exception-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ protected function write( array $record ): void {
'message' => $message,
] = $record;

throw new Handler_Exception( $message, $context, $record );
throw new Handler_Exception( $message, $context, $record ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
}
}
2 changes: 1 addition & 1 deletion logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
if ( ! class_exists( Logger::class ) ) {
\add_action(
'admin_notices',
function() {
function () {
?>
<div class="notice notice-error">
<p><?php esc_html_e( 'AI Logger: Composer is not installed and the plugin cannot load. Try using the `develop-built` branch or a `*-built` tag.', 'ai-logger' ); ?></p>
Expand Down

0 comments on commit 969f98c

Please sign in to comment.