Bump phpunit/phpunit from 10.1.3 to 10.3.5 #512
Annotations
6 warnings
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);
|
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;
|
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);
|
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);
|
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);
|
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
|
The logs for this run have expired and are no longer available.
Loading