Skip to content

Commit 750e7bf

Browse files
committed
spellcheck fixes
1 parent 3eab526 commit 750e7bf

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

lib/cli/Notify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ abstract class Notify {
3535
protected $_speed = 0;
3636

3737
/**
38-
* Instatiates a Notification object.
38+
* Instantiates a Notification object.
3939
*
4040
* @param string $msg The text to display next to the Notifier.
4141
* @param int $interval The interval in milliseconds between updates.

lib/cli/Progress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function estimated() {
101101
}
102102

103103
/**
104-
* Forces the current tick count to the total ticks given at instatiation
104+
* Forces the current tick count to the total ticks given at instantiation
105105
* time before passing on to `cli\Notify::finish()`.
106106
*/
107107
public function finish() {

lib/cli/Streams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public static function choose( $question, $choice = 'yn', $default = 'n' ) {
193193

194194
// Make every choice character lowercase except the default
195195
$choice = str_ireplace( $default, strtoupper( $default ), strtolower( $choice ) );
196-
// Seperate each choice with a forward-slash
196+
// Separate each choice with a forward-slash
197197
$choices = trim( join( '/', preg_split( '//', $choice ) ), '/' );
198198

199199
while( true ) {

lib/cli/cli.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ function can_use_pcre_x() {
381381
static $can_use_pcre_x = null;
382382

383383
if ( null === $can_use_pcre_x ) {
384-
// '\X' introduced (as Unicde extended grapheme cluster) in PCRE 8.32 - see https://vcs.pcre.org/pcre/code/tags/pcre-8.32/ChangeLog?view=markup line 53.
384+
// '\X' introduced (as Unicode extended grapheme cluster) in PCRE 8.32 - see https://vcs.pcre.org/pcre/code/tags/pcre-8.32/ChangeLog?view=markup line 53.
385385
// Older versions of PCRE were bundled with PHP <= 5.3.23 & <= 5.4.13.
386386
$pcre_version = substr( PCRE_VERSION, 0, strspn( PCRE_VERSION, '0123456789.' ) ); // Remove any trailing date stuff.
387387
$can_use_pcre_x = version_compare( $pcre_version, '8.32', '>=' ) && false !== @preg_match( '/\X/u', '' );

lib/cli/notify/Dots.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
use cli\Streams;
1717

1818
/**
19-
* A Notifer that displays a string of periods.
19+
* A Notifier that displays a string of periods.
2020
*/
2121
class Dots extends Notify {
2222
protected $_dots;
2323
protected $_format = '{:msg}{:dots} ({:elapsed}, {:speed}/s)';
2424
protected $_iteration;
2525

2626
/**
27-
* Instatiates a Notification object.
27+
* Instantiates a Notification object.
2828
*
2929
* @param string $msg The text to display next to the Notifier.
3030
* @param int $dots The number of dots to iterate through.

typos.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[default]
2+
extend-ignore-re = [
3+
"(?Rm)^.*(#|//)\\s*spellchecker:disable-line$",
4+
"(?s)(#|//)\\s*spellchecker:off.*?\\n\\s*(#|//)\\s*spellchecker:on",
5+
"(#|//)\\s*spellchecker:ignore-next-line\\n.*"
6+
]

0 commit comments

Comments
 (0)