From 6da76ffaae23827bd691e6afc38ce0f66c5581e4 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 3 Oct 2022 18:31:43 -0600 Subject: [PATCH] Typofixes --- src/Wallabag/CoreBundle/Helper/ContentProxy.php | 2 +- src/Wallabag/CoreBundle/Helper/CryptoProxy.php | 2 +- src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php | 2 +- src/Wallabag/CoreBundle/Helper/EntriesExport.php | 2 +- src/Wallabag/CoreBundle/Repository/EntryRepository.php | 2 +- src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php | 2 +- tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Wallabag/CoreBundle/Helper/ContentProxy.php b/src/Wallabag/CoreBundle/Helper/ContentProxy.php index d80bec87d..cb64b4b74 100644 --- a/src/Wallabag/CoreBundle/Helper/ContentProxy.php +++ b/src/Wallabag/CoreBundle/Helper/ContentProxy.php @@ -346,7 +346,7 @@ class ContentProxy * parse_url arrays. * * As array_diff_assoc only computes changes to go from the left array - * to the right one, we make two differents arrays to have both + * to the right one, we make two different arrays to have both * directions. We merge these two arrays and sort keys before passing * the result to the switch. * diff --git a/src/Wallabag/CoreBundle/Helper/CryptoProxy.php b/src/Wallabag/CoreBundle/Helper/CryptoProxy.php index 67d739156..5d73df70e 100644 --- a/src/Wallabag/CoreBundle/Helper/CryptoProxy.php +++ b/src/Wallabag/CoreBundle/Helper/CryptoProxy.php @@ -33,7 +33,7 @@ class CryptoProxy /** * Ensure the given value will be crypted. * - * @param string $secretValue Secret valye to crypt + * @param string $secretValue Secret value to crypt * * @return string */ diff --git a/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php b/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php index 9f90ee3e2..ec951be84 100644 --- a/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php +++ b/src/Wallabag/CoreBundle/Helper/DetectActiveTheme.php @@ -10,7 +10,7 @@ use Wallabag\UserBundle\Entity\User; * This class intend to detect the active theme for the logged in user. * It will retrieve the configured theme of the user. * - * If no user where logged in, it will returne the default theme + * If no user where logged in, it will return the default theme */ class DetectActiveTheme implements DeviceDetectionInterface { diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php index 62217079b..30727ba1f 100644 --- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php +++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php @@ -167,7 +167,7 @@ class EntriesExport $book->setAuthor($this->author, $this->author); - // I hope this is a non existant address :) + // I hope this is a non-existent address :) $book->setPublisher('wallabag', 'wallabag'); // Strictly not needed as the book date defaults to time(). $book->setDate(time()); diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 7d400b7dc..819579bf4 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -242,7 +242,7 @@ class EntryRepository extends EntityRepository $entryAlias = 'e' . $i; $tagAlias = 't' . $i; - // Complexe queries to ensure multiple tags are associated to an entry + // Complex queries to ensure multiple tags are associated to an entry // https://stackoverflow.com/a/6638146/569101 $qb->andWhere($qb->expr()->in( 'e.id', diff --git a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php index 25d065d79..015824f99 100644 --- a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php +++ b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php @@ -18,7 +18,7 @@ class RedisWorkerCommand extends ContainerAwareCommand ->setName('wallabag:import:redis-worker') ->setDescription('Launch Redis worker') ->addArgument('serviceName', InputArgument::REQUIRED, 'Service to use: wallabag_v1, wallabag_v2, pocket, readability, pinboard, delicious, firefox, chrome or instapaper') - ->addOption('maxIterations', '', InputOption::VALUE_OPTIONAL, 'Number of iterations before stoping', false) + ->addOption('maxIterations', '', InputOption::VALUE_OPTIONAL, 'Number of iterations before stopping', false) ; } diff --git a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php index 6b33cbc13..0732b4375 100644 --- a/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php +++ b/tests/Wallabag/CoreBundle/Helper/DownloadImagesTest.php @@ -202,7 +202,7 @@ class DownloadImagesTest extends TestCase $this->assertFalse($res); } - public function testEnsureOnlyFirstOccurenceIsReplaced() + public function testEnsureOnlyFirstOccurrenceIsReplaced() { $httpMockClient = new HttpMockClient(); $httpMockClient->addResponse(new Response(200, ['content-type' => 'image/png'], file_get_contents(__DIR__ . '/../fixtures/unnamed.png')));