Skip to content

Commit 3d26d32

Browse files
committed
typo and spelling fixes
1 parent 51a3619 commit 3d26d32

13 files changed

+21
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## 9.0.2
2-
##### 04 march 2022
2+
##### 04 March 2022
33
- __Core__
44
- Updated CacheContract::__invoke() signature
55
- Added new option to allow EventManager override + improved EventManager tests (EventManager::setInstance())
@@ -9,7 +9,7 @@
99
- Fixed typo and some types hint
1010

1111
## 9.0.1
12-
##### 14 november 2021
12+
##### 14 November 2021
1313
- __Core__
1414
- Added `\Phpfastcache\Event\Event` class for centralizing event name with reusable constants.
1515
- __Item__
@@ -18,7 +18,7 @@
1818
- Fixed typos in [README.md](./README.md)
1919

2020
## 9.0.0
21-
##### 31 october 2021
21+
##### 31 October 2021
2222
- __Migration guide__
2323
- Read the [migration guide](./docs/migration/MigratingFromV8ToV9.md) to upgrade from V8 to V9
2424
- __PSR-6__

bin/ci/scripts/install_couchdb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "# Running Docker couchdb image"
1010
docker run -d -p $COUCHDB_PORT:$COUCHDB_PORT couchdb:$COUCHDB_VERSION --with-haproxy --with-admin-party-please -n 1
1111

1212
check_db() {
13-
# Allow 4xx errors not to break the connexion check
13+
# Allow 4xx errors not to break the connection check
1414
curl --silent http://$COUCHDB_HOST:$COUCHDB_PORT > /dev/null
1515
echo $?
1616
}

docs/migration/MigratingFromV4ToV5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Cache extends phpFastCacheAbstractProxy
3232
}
3333
```
3434

35-
See examples/extendedPhpFastCache.php for more informations
35+
See examples/extendedPhpFastCache.php for more information
3636

3737

3838

docs/migration/MigratingFromV5ToV6.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ $instance = CacheManager::getInstance('Files');
124124
try{
125125
$item = $instance->getItem(array());
126126
}catch(\InvalidArgumentException $e){
127-
//Catched exception code
127+
//Caught exception code
128128
}
129129

130130
```
@@ -140,7 +140,7 @@ $instance = CacheManager::getInstance('Files');
140140
try{
141141
$item = $instance->getItem(array());
142142
}catch(\phpFastCache\Exceptions\phpFastCacheInvalidArgumentException $e){
143-
//Catched exception code
143+
//Caught exception code
144144
}
145145

146146
```
@@ -159,7 +159,7 @@ $instance = CacheManager::getInstance('Files');
159159
try{
160160
$item = $instance->getItem(array());
161161
}catch(\LogicException $e){
162-
//Catched exception code
162+
//Caught exception code
163163
}
164164

165165
```
@@ -175,7 +175,7 @@ $instance = CacheManager::getInstance('Files');
175175
try{
176176
$item = $instance->getItem(array());
177177
}catch(\phpFastCache\Exceptions\phpFastCacheLogicException $e){
178-
//Catched exception code
178+
//Caught exception code
179179
}
180180

181181
```

docs/migration/MigratingFromV6ToV7.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $cacheInstace = CacheManager::getInstance('Files', new Config([
107107
```
108108
#### For non-global option you MUST use the specific Config object provided for each drivers
109109
```php
110-
// The recommanded way is to use an alias to not confuse yourself
110+
// The recommended way is to use an alias to not confuse yourself
111111
use Phpfastcache\Drivers\Files\Config as FilesConfig;
112112

113113
$config = new FilesConfig();

lib/Phpfastcache/CacheManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public static function getInstance(string $driver, ?ConfigurationOptionInterface
120120
);
121121
} else {
122122
throw new PhpfastcacheDriverNotFoundException(sprintf(
123-
'The driver "%s" does not exists or does not implements %s',
123+
'The driver "%s" does not exist or does not implement %s',
124124
$driver,
125125
ExtendedCacheItemPoolInterface::class
126126
));
@@ -293,7 +293,7 @@ public static function addCustomDriver(string $driverName, string $className): v
293293

294294
if (!\class_exists($className)) {
295295
throw new PhpfastcacheInvalidArgumentException(
296-
\sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className)
296+
\sprintf("Can't add '%s' because the class '%s' does not exist", $driverName, $className)
297297
);
298298
}
299299

@@ -366,7 +366,7 @@ public static function removeCustomDriver(string $driverName): void
366366
}
367367

368368
if (!isset(self::$driverCustoms[$driverName])) {
369-
throw new PhpfastcacheLogicException(\sprintf("Driver '%s' does not exists", $driverName));
369+
throw new PhpfastcacheLogicException(\sprintf("Driver '%s' does not exist", $driverName));
370370
}
371371

372372
unset(self::$driverCustoms[$driverName]);
@@ -390,7 +390,7 @@ public static function addCoreDriverOverride(string $driverName, string $classNa
390390

391391
if (!\class_exists($className)) {
392392
throw new PhpfastcacheInvalidArgumentException(
393-
\sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className)
393+
\sprintf("Can't override '%s' because the class '%s' does not exist", $driverName, $className)
394394
);
395395
}
396396

lib/Phpfastcache/Core/Pool/ExtendedCacheItemPoolInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function attachItem(CacheItemInterface $item): static;
167167
/**
168168
* Returns true if the item exists, is attached and the Spl Hash matches
169169
* Returns false if the item exists, is attached and the Spl Hash mismatches
170-
* Returns null if the item does not exists
170+
* Returns null if the item does not exist
171171
*
172172
* @param CacheItemInterface $item
173173
* @return bool

lib/Phpfastcache/Core/Pool/TaggableCacheItemPoolTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function getItemsByTags(array $tagNames, int $strategy = TaggableCacheIte
7474
if (\is_string($tagName)) {
7575
$items[] = $this->fetchItemsByTagFromBackend($tagName);
7676
} else {
77-
throw new PhpfastcacheInvalidArgumentException('$tagName must be a a string');
77+
throw new PhpfastcacheInvalidArgumentException('$tagName must be a string');
7878
}
7979
}
8080

lib/Phpfastcache/Drivers/Couchdb/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected function encodeDocument(array $data): array
249249

250250
/**
251251
* Specific document decoder for Couchdb
252-
* since we dont store encoded version
252+
* since we don't store encoded version
253253
* for performance purposes
254254
*
255255
* @param $value

lib/Phpfastcache/Drivers/Memcache/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ protected function driverWrite(ExtendedCacheItemInterface $item): bool
175175

176176
/**
177177
* @param ExtendedCacheItemInterface $item
178-
* @retur n bool
178+
* @return bool
179179
* @throws PhpfastcacheInvalidArgumentException
180180
*/
181181
protected function driverDelete(ExtendedCacheItemInterface $item): bool

tests/CoreDriverOverride.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
|| !class_exists(Phpfastcache\DriverTest\Files2\Driver::class)
2929
|| !class_exists(Phpfastcache\DriverTest\Files2\Config::class)
3030
) {
31-
$testHelper->assertFail('The php classes of driver "Files2" does not exists');
31+
$testHelper->assertFail('The php classes of driver "Files2" does not exist');
3232
$testHelper->terminateTest();
3333
} else {
3434
$testHelper->assertPass('The php classes of driver "Files2" were found');

tests/CustomDriver.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
|| !class_exists(Phpfastcache\Drivers\Fakefiles\Driver::class)
2828
|| !class_exists(Phpfastcache\Drivers\Fakefiles\Config::class)
2929
) {
30-
$testHelper->assertFail('The php classes of driver "Fakefiles" does not exists');
30+
$testHelper->assertFail('The php classes of driver "Fakefiles" does not exist');
3131
$testHelper->terminateTest();
3232
} else {
3333
$testHelper->assertPass('The php classes of driver "Fakefiles" were found');

tests/DisabledStaticItemCaching.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
$testHelper->runSubProcess('DisabledStaticItemCaching');
4343
usleep(random_int(250000, 800000));
4444

45-
// We dont want to clear cache instance since we disabled the static item caching
45+
// We don't want to clear cache instance since we disabled the static item caching
4646
$item = $driverInstance->getItem('TestUseStaticItemCaching');
4747

4848
/**

0 commit comments

Comments
 (0)