Skip to content

fix: assets config should not be called via class #26

fix: assets config should not be called via class

fix: assets config should not be called via class #26

Triggered via pull request September 28, 2023 22:44
Status Success
Total duration 47s
Artifacts

infection.yml

on: pull_request
Mutation Testing
35s
Mutation Testing
Fit to window
Zoom out
Zoom in

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; }