Skip to content

Commit be04130

Browse files
committed
Simplify quote escapes
1 parent fc8b02b commit be04130

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/DetectPluginRedirects.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public static function detectRedirection(): \Iterator {
5858
$msg = PathInfo::pathErrorMessage( $uri );
5959
if ( $msg ) {
6060
WsLog::l(
61-
'Can\'t use path pattern from Redirection plugin: '
61+
"Can't use path pattern from Redirection plugin: "
6262
. $uri . ' - ' . $msg
6363
);
6464
continue;
@@ -109,7 +109,7 @@ public static function detectRedirectRedirection(): \Iterator {
109109
$msg = PathInfo::pathErrorMessage( $uri );
110110
if ( $msg ) {
111111
WsLog::l(
112-
'Can\'t use path pattern from Redirect Redirection plugin: '
112+
"Can't use path pattern from Redirect Redirection plugin: "
113113
. $uri . ' - ' . $msg
114114
);
115115
continue;

src/FilesHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public static function initFS(
159159
return $init_wpfs( true );
160160
}
161161
throw WsLog::ex(
162-
'Can\'t initialize WP_Filesystem without credentials',
162+
"Can't initialize WP_Filesystem without credentials",
163163
);
164164
}
165165

@@ -247,7 +247,7 @@ public static function writePathInfo(
247247
$directory = dirname( $full_path );
248248

249249
if ( ! is_dir( $directory ) && ! self::createDir( $directory ) ) {
250-
WsLog::w( 'Couldn\'t make directory: ' . $directory );
250+
WsLog::w( "Couldn't make directory: " . $directory );
251251
}
252252

253253
try {

src/Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ public static function optionSpecs(): array {
371371
'skipURLRewrite',
372372
'0',
373373
'Skip URL Rewrite',
374-
'Don\'t rewrite any URLs. This may give a slight speed-up when the'
375-
. ' deployment URL is the same as WordPress\'s URL.'
374+
"Don't rewrite any URLs. This may give a slight speed-up when the"
375+
. " deployment URL is the same as WordPress's URL."
376376
),
377377
];
378378

static-deploy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
&& file_exists( STATIC_DEPLOY_PATH . 'src/StaticDeployException.php' ) ) {
3434
require_once STATIC_DEPLOY_PATH . 'src/StaticDeployException.php';
3535
throw new StaticDeploy\StaticDeployException(
36-
'Looks like you\'re trying to activate Static Deploy from source code' .
36+
"Looks like you're trying to activate Static Deploy from source code" .
3737
', without compiling it first.'
3838
);
3939
}

0 commit comments

Comments
 (0)