fix: assets config should not be called via class #26
Annotations
11 warnings
Mutation Testing
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Mutation Testing:
src/Asset.php#L57
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
if (self::$config === null) {
self::$config = config('Assets');
// Standardize formats
- self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
+ self::$config->uri = self::$config->uri . '/';
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
|
Mutation Testing:
src/Asset.php#L57
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
if (self::$config === null) {
self::$config = config('Assets');
// Standardize formats
- self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
+ self::$config->uri = '/' . rtrim(self::$config->uri, '/\\');
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
|
Mutation Testing:
src/Asset.php#L57
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if (self::$config === null) {
self::$config = config('Assets');
// Standardize formats
- self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
+ self::$config->uri = '/';
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
|
Mutation Testing:
src/Asset.php#L57
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
if (self::$config === null) {
self::$config = config('Assets');
// Standardize formats
- self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
+ self::$config->uri = rtrim(self::$config->uri, '/\\');
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
|
Mutation Testing:
src/Asset.php#L58
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
self::$config = config('Assets');
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
- self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->directory = self::$config->directory . DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
return self::$config;
|
Mutation Testing:
src/Asset.php#L58
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
self::$config = config('Assets');
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
- self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->directory = DIRECTORY_SEPARATOR . rtrim(self::$config->directory, '/\\');
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
return self::$config;
|
Mutation Testing:
src/Asset.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
self::$config = config('Assets');
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
- self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->directory = DIRECTORY_SEPARATOR;
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
return self::$config;
|
Mutation Testing:
src/Asset.php#L58
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
self::$config = config('Assets');
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
- self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->directory = rtrim(self::$config->directory, '/\\');
self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
}
return self::$config;
|
Mutation Testing:
src/Asset.php#L59
Escaped Mutant for Mutator "UnwrapRtrim":
--- Original
+++ New
@@ @@
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
- self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->vendor = self::$config->vendor . DIRECTORY_SEPARATOR;
}
return self::$config;
}
|
Mutation Testing:
src/Asset.php#L59
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
// Standardize formats
self::$config->uri = rtrim(self::$config->uri, '/\\') . '/';
self::$config->directory = rtrim(self::$config->directory, '/\\') . DIRECTORY_SEPARATOR;
- self::$config->vendor = rtrim(self::$config->vendor, '/\\') . DIRECTORY_SEPARATOR;
+ self::$config->vendor = DIRECTORY_SEPARATOR . rtrim(self::$config->vendor, '/\\');
}
return self::$config;
}
|