Skip to content

Commit 7c24fcb

Browse files
Update PHP coding standards.
1 parent 562ec03 commit 7c24fcb

File tree

7 files changed

+13
-6
lines changed

7 files changed

+13
-6
lines changed

app/class-integration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ public function is_active() {
125125
* Load inline CSS if any output controls are defined.
126126
*
127127
* @since 1.16.0
128+
*
129+
* @param array $configs Output configurations.
130+
* @return array $configs Output configurations with additional integration configurations.
128131
*/
129132
public function inline_css_configs( $configs ) {
130133
if ( empty( $this->inline_css_configs ) ) {

app/integrations/gutenberg/class-gutenberg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public function inline_editor_css( $settings ) {
161161

162162
$config = [];
163163

164-
// Base
164+
// Base.
165165
$config[] = [
166166
'selectors' => [
167167
'body',

app/theme/nav-menus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function bigbox_add_mobile_parent_nav_menu_items( $sorted_menu_items, $args ) {
135135
* @return array
136136
*/
137137
function bigbox_nav_menu_link_attributes( $atts, $item ) {
138-
// Add [aria-haspopup] and [aria-expanded] to menu items that have children
138+
// Add [aria-haspopup] and [aria-expanded] to menu items that have children.
139139
$item_has_children = in_array( 'menu-item-has-children', $item->classes );
140140

141141
if ( $item_has_children ) {

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"install-codestandards": [
1717
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
1818
],
19-
"lint": "vendor/bin/phpcs",
20-
"lint:fix": "vendor/bin/phpcbf"
19+
"lint": "vendor/bin/phpcs --standard=phpcs.xml.dist",
20+
"lint:fix": "vendor/bin/phpcbf --standard=phpcs.xml.dist --report-summary --report-source"
2121
},
2222
"require": {
2323
"a5hleyrich/wp-background-processing": "^1.0",
File renamed without changes.

resources/views/integrations/woocommerce-bookings/booking-form/number.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
* @author Automattic
1515
* @version 1.8.0
1616
* @since 1.0.0
17+
*
18+
* @package BigBox
1719
*/
1820

1921
if ( ! defined( 'ABSPATH' ) ) {
20-
exit; // Exit if accessed directly
22+
exit; // Exit if accessed directly.
2123
}
2224

2325
$after = isset( $field['after'] ) ? $field['after'] : null;

resources/views/integrations/woocommerce-bookings/booking-form/select.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
* @author Automattic
1515
* @version 1.8.0
1616
* @since 1.0.0
17+
*
18+
* @package BigBox
1719
*/
1820

1921
if ( ! defined( 'ABSPATH' ) ) {
20-
exit; // Exit if accessed directly
22+
exit; // Exit if accessed directly.
2123
}
2224

2325
$class = $field['class'];

0 commit comments

Comments
 (0)