Skip to content

Commit 969f98c

Browse files
authoredJan 18, 2024
Merge pull request #106 from alleyinteractive/dependabot/composer/alleyinteractive/alley-coding-standards-2.0.1
Bump alleyinteractive/alley-coding-standards from 1.0.0 to 2.0.1
2 parents 339c49a + ac5df89 commit 969f98c

8 files changed

+209
-56
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ vendor/
1010
.phpunit.cache
1111
coverage/
1212
.vscode
13+
.idea

‎composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"psr/log": "^1.0|^2.0|^3.0"
1818
},
1919
"require-dev": {
20-
"alleyinteractive/alley-coding-standards": "^1.0",
20+
"alleyinteractive/alley-coding-standards": "^2.0",
2121
"mantle-framework/testkit": "^0.10",
2222
"mockery/mockery": "^1.3",
2323
"phpunit/phpunit": "^9.3.3"

‎composer.lock

+203-50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎inc/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
add_action(
1515
'after_setup_theme',
16-
function() {
16+
function () {
1717
/**
1818
* Flag if Javascript logging is enabled.
1919
*

‎inc/class-cli.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function display( $args, $assoc_args ) {
6161
WP_CLI\Utils\format_items(
6262
'table',
6363
array_map(
64-
function( $log ) {
64+
function ( $log ) {
6565
return [
6666
'level' => $log[0],
6767
'message' => $log[1],

‎inc/class-data-structures.php

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function __construct() {
4040
\add_action( 'init', [ $this, 'create_taxonomy' ] );
4141
\add_action( 'add_meta_boxes', [ $this, 'add_meta_boxes' ] );
4242
\add_action( 'restrict_manage_posts', [ $this, 'add_taxonomy_filters' ] );
43-
4443
}
4544

4645
/**

‎inc/handler/class-exception-handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ protected function write( array $record ): void {
4242
'message' => $message,
4343
] = $record;
4444

45-
throw new Handler_Exception( $message, $context, $record );
45+
throw new Handler_Exception( $message, $context, $record ); // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped
4646
}
4747
}

‎logger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
if ( ! class_exists( Logger::class ) ) {
3131
\add_action(
3232
'admin_notices',
33-
function() {
33+
function () {
3434
?>
3535
<div class="notice notice-error">
3636
<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>

0 commit comments

Comments
 (0)
Please sign in to comment.