Skip to content

Commit 62cd522

Browse files
committed
Various typos
1 parent 0b44f1c commit 62cd522

26 files changed

+32
-32
lines changed

src/Fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public function revertToken($stackPtr)
638638
*
639639
* @param int $stackPtr The position of the token in the token stack.
640640
* @param int $start The first character to keep.
641-
* @param int $length The number of chacters to keep. If NULL, the content of
641+
* @param int $length The number of characters to keep. If NULL, the content of
642642
* the token from $start to the end of the content is kept.
643643
*
644644
* @return bool If the change was accepted.

src/Runner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function init()
308308
}
309309

310310
// Saves passing the Config object into other objects that only need
311-
// the verbostity flag for deubg output.
311+
// the verbosity flag for debug output.
312312
if (defined('PHP_CODESNIFFER_VERBOSITY') === false) {
313313
define('PHP_CODESNIFFER_VERBOSITY', $this->config->verbosity);
314314
}

src/Sniffs/AbstractArraySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Processes single and mutli-line arrays.
3+
* Processes single and multi-line arrays.
44
*
55
* @author Greg Sherwood <gsherwood@squiz.net>
66
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)

src/Standards/Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function process(File $phpcsFile, $stackPtr)
110110
$constName = substr($constName, ($splitPos + 2));
111111
}
112112

113-
// Strip namesspace from constant like /foo/bar/CONSTANT.
113+
// Strip namespace from constant like /foo/bar/CONSTANT.
114114
$splitPos = strrpos($constName, '\\');
115115
if ($splitPos !== false) {
116116
$prefix = substr($constName, 0, ($splitPos + 1));

src/Standards/Generic/Tests/CodeAnalysis/ForLoopShouldBeWhileLoopUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ for (; $it->valid();) {
77
$it->next();
88
}
99

10-
for (;(($it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ingored*/) {
10+
for (;(($it1->valid() && $foo) || (!$it2->value && ($bar || false)));/*Could be ignored*/) {
1111
$it1->next();
1212
$it2->next();
1313
}

src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* Short description
100100
* over multiple lines.
101101
*
102-
* Long descrption.
102+
* Long description.
103103
*
104104
* @param
105105
*

src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.inc.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
* Short description
9595
* over multiple lines.
9696
*
97-
* Long descrption.
97+
* Long description.
9898
*
9999
* @param
100100
*

src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* Short description
100100
* over multiple lines.
101101
*
102-
* Long descrption.
102+
* Long description.
103103
*
104104
* @param
105105
*

src/Standards/Generic/Tests/Commenting/DocCommentUnitTest.js.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
* Short description
9595
* over multiple lines.
9696
*
97-
* Long descrption.
97+
* Long description.
9898
*
9999
* @param
100100
*

src/Standards/Generic/Tests/Formatting/MultipleStatementAlignmentUnitTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var buttonWidget = WidgetStore.get(buttonid);
8383
var spinButtonid = [this.id, '-positionFormats-spinButton'].join('');
8484
var spinButtonWidget = WidgetStore.get(spinButtonid);
8585
var position = spinButtonWidget.getValue();
86-
var posForamatsList = WidgetStore.get([self.id, '-positionFormats-list'].join(''));
86+
var posFormatsList = WidgetStore.get([self.id, '-positionFormats-list'].join(''));
8787

8888
dfx.stripTags = function(content, allowedTags)
8989
{

0 commit comments

Comments
 (0)