Skip to content

Commit 3757f9b

Browse files
committed
phpcbf fix
1 parent b88dde6 commit 3757f9b

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

admin/class-shifter-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function shifter_heartbert_on_sitepreview_write_script() {
115115
<script>
116116
function shifter_heartbert_getajax() {
117117
var xhr= new XMLHttpRequest();
118-
xhr.open("GET","<?php echo esc_url(add_query_arg('action','nopriv_heartbeat',site_url('/wp-admin/admin-ajax.php')));?>");
118+
xhr.open("GET","<?php echo esc_url( add_query_arg( 'action', 'nopriv_heartbeat', site_url( '/wp-admin/admin-ajax.php' ) ) ); ?>");
119119
xhr.send();
120120
}
121121
var shifterHB = setInterval("shifter_heartbert_getajax()", 30000);
@@ -139,7 +139,7 @@ public function shifter_mail_from( $email_address ) {
139139
/**
140140
* @param string $url URL strings
141141
* @return string Replaced URL from Shifter WP to Shifter CDN
142-
*
142+
*
143143
* @since 1.1.0
144144
*/
145145
private function _replace_url_to_public_domain( $url ) {

api/class-shifter-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ private function refresh_token() {
154154
'body' => wp_json_encode( array( 'refreshToken' => $this->refresh_token ) ),
155155
);
156156
$response = wp_remote_request( $this->refresh_url, $args );
157-
$body = $response[ 'body' ];
157+
$body = $response['body'];
158158
$body_array = json_decode( $body );
159159
// phpcs:disable
160160
$this->access_token = $body_array->AccessToken;

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "wordpress-plugin",
44
"description": "",
55
"require": {
6-
"wp-coding-standards/wpcs": "^2.0",
7-
"squizlabs/php_codesniffer": "^3.4",
6+
"wp-coding-standards/wpcs": "*",
7+
"squizlabs/php_codesniffer": "*",
88
"dealerdirect/phpcodesniffer-composer-installer": "*"
99
},
1010
"scripts": {
@@ -15,7 +15,7 @@
1515
"\"vendor/bin/phpcs\" --config-set installed_paths vendor/wp-coding-standards/wpcs"
1616
],
1717
"cs-fix": [
18-
"phpcbf . -pwv --ignore=vendor,node_modules --extensions=php --standard=WordPress || git diff"
18+
"phpcbf . -pwv --ignore=vendor,node_modules,volume --extensions=php --standard=WordPress || git diff"
1919
],
2020
"cs-lint": [
2121
"phpcs . -p --ignore=vendor,node_modules --extensions=php --standard=WordPress"

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

global/class-shifter-global.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public function shifter_admin_bar_items() {
154154
);
155155

156156
$wp_admin_bar->add_menu( $shifter_support_back_to_shifter_dashboard );
157-
if (!getenv( 'SHIFTER_DISABLE_GENERATE' )) {
157+
if ( ! getenv( 'SHIFTER_DISABLE_GENERATE' ) ) {
158158
$wp_admin_bar->add_menu( $shifter_support_generate );
159159
}
160160
$wp_admin_bar->add_menu( $shifter_support_terminate );

0 commit comments

Comments
 (0)