Bump phpunit/phpunit from 10.1.3 to 10.4.1 #518
Annotations
12 warnings
CI (8.2):
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);
|
CI (8.2):
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;
|
CI (8.2):
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);
|
CI (8.2):
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);
|
CI (8.2):
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);
|
CI (8.2):
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
|
CI (8.1):
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);
|
CI (8.1):
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;
|
CI (8.1):
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);
|
CI (8.1):
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);
|
CI (8.1):
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);
|
CI (8.1):
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
|