Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 1b83f1c

Browse files
committed
Fix typos in exception messages and code comments
Done with codespell's dictionary. No impact is expected unless callers directly check exception messages.
1 parent 72c16e4 commit 1b83f1c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/Pattern/CaptureCache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ protected function createDirectoryStructure($pathname)
297297
ErrorHandler::start();
298298

299299
if ($perm === false) {
300-
// build-in mkdir function is enough
300+
// built-in mkdir function is enough
301301

302302
$umask = ($umask !== false) ? umask($umask) : false;
303303
$res = mkdir($pathname, ($perm !== false) ? $perm : 0775, true);
@@ -318,7 +318,7 @@ protected function createDirectoryStructure($pathname)
318318
throw new Exception\RuntimeException("chmod('{$pathname}', 0{$oct}) failed", 0, $err);
319319
}
320320
} else {
321-
// build-in mkdir function sets permission together with current umask
321+
// built-in mkdir function sets permission together with current umask
322322
// which doesn't work well on multo threaded webservers
323323
// -> create directories one by one and set permissions
324324

src/Pattern/PatternOptions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function setFilePermission($filePermission)
446446
);
447447
} elseif ($filePermission & 0111) {
448448
throw new Exception\InvalidArgumentException(
449-
"Invalid file permission: Files shoudn't be executable"
449+
"Invalid file permission: Files shouldn't be executable"
450450
);
451451
}
452452
}

src/Storage/Adapter/Filesystem.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ protected function prepareDirectoryStructure($file)
14511451
ErrorHandler::start();
14521452

14531453
if ($perm === false || $level == 1) {
1454-
// build-in mkdir function is enough
1454+
// built-in mkdir function is enough
14551455

14561456
$umask = ($umask !== false) ? umask($umask) : false;
14571457
$res = mkdir($pathname, ($perm !== false) ? $perm : 0775, true);
@@ -1480,7 +1480,7 @@ protected function prepareDirectoryStructure($file)
14801480
throw new Exception\RuntimeException("chmod('{$pathname}', 0{$oct}) failed", 0, $err);
14811481
}
14821482
} else {
1483-
// build-in mkdir function sets permission together with current umask
1483+
// built-in mkdir function sets permission together with current umask
14841484
// which doesn't work well on multo threaded webservers
14851485
// -> create directories one by one and set permissions
14861486

src/Storage/Adapter/FilesystemOptions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public function setFilePermission($filePermission)
322322
);
323323
} elseif ($filePermission & 0111) {
324324
throw new Exception\InvalidArgumentException(
325-
"Invalid file permission: Cache files shoudn't be executable"
325+
"Invalid file permission: Cache files shouldn't be executable"
326326
);
327327
}
328328
}

src/Storage/Adapter/RedisResourceManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ protected function connect(array & $resource)
299299
}
300300

301301
if (! $success) {
302-
throw new Exception\RuntimeException('Could not estabilish connection with Redis instance');
302+
throw new Exception\RuntimeException('Could not establish connection with Redis instance');
303303
}
304304

305305
$resource['initialized'] = true;

src/Storage/Capabilities.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class Capabilities
122122
protected $supportedDatatypes;
123123

124124
/**
125-
* Supported metdata
125+
* Supported metadata
126126
*
127127
* If it's NULL the capability isn't set and the getter
128128
* returns the base capability or the default value.

0 commit comments

Comments
 (0)