Bump symfony/console from 6.4.1 to 6.4.4 #592
Annotations
7 warnings
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L40
Escaped Mutant for Mutator "UnwrapStrToLower":
--- Original
+++ New
@@ @@
$entries = $this->contetful->getEntries()->getItems();
foreach ($entries as $entry) {
$filesystem = new Filesystem();
- $contentType = strtolower($entry->getSystemProperties()->getContentType()->getName());
+ $contentType = $entry->getSystemProperties()->getContentType()->getName();
$filePath = $this->createPath($contentType, $entry['date'], $entry['title']);
$filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown']));
$output->writeln("Created file: " . $filePath);
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L43
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$filesystem = new Filesystem();
$contentType = strtolower($entry->getSystemProperties()->getContentType()->getName());
$filePath = $this->createPath($contentType, $entry['date'], $entry['title']);
- $filesystem->dumpFile($filePath, $this->createContent($entry['language'], $entry['date'], $entry['title'], $entry['contentMarkdown']));
+
$output->writeln("Created file: " . $filePath);
}
return self::SUCCESS;
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
private function normalizeTitle($title) : string
{
- $currentLocale = setlocale(LC_ALL, 0);
+ $currentLocale = setlocale(LC_ALL, -1);
setlocale(LC_ALL, 'en_US.utf8');
$cleanTitle = strtolower($title);
$cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L74
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
private function normalizeTitle($title) : string
{
- $currentLocale = setlocale(LC_ALL, 0);
+ $currentLocale = setlocale(LC_ALL, 1);
setlocale(LC_ALL, 'en_US.utf8');
$cleanTitle = strtolower($title);
$cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L75
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
private function normalizeTitle($title) : string
{
$currentLocale = setlocale(LC_ALL, 0);
- setlocale(LC_ALL, 'en_US.utf8');
+
$cleanTitle = strtolower($title);
$cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
$cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle);
|
Run Infection:
src/Command/SculpinContentfulCommand.php#L81
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
$cleanTitle = strtolower($title);
$cleanTitle = iconv('UTF-8', 'ASCII//IGNORE', $cleanTitle);
$cleanTitle = preg_replace("/[^a-z0-9]+/", "-", $cleanTitle);
- setlocale(LC_ALL, $currentLocale);
+
return $cleanTitle;
}
public function setContentfulClient(Client\ClientInterface $client) : self
|
Loading