Index: trunk/extensions/Validator/includes/ParameterInput.php |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | } |
189 | 189 | |
190 | 190 | /** |
191 | | - * Gets a select menue for the provided values. |
| 191 | + * Gets a select menu for the provided values. |
192 | 192 | * |
193 | 193 | * @since 0.4.6 |
194 | 194 | * |
Index: trunk/extensions/Validator/includes/ValidationError.php |
— | — | @@ -12,9 +12,9 @@ |
13 | 13 | */ |
14 | 14 | class ValidationError { |
15 | 15 | |
16 | | - const SEVERITY_MINOR = 0; // Minor error. ie a decapriation notice |
| 16 | + const SEVERITY_MINOR = 0; // Minor error. ie a deprecation notice |
17 | 17 | const SEVERITY_LOW = 1; // Lower-then-normal severity. ie an unknown parameter |
18 | | - const SEVERITY_NORMAL = 2; // Normal severiry. ie an invalid value provided |
| 18 | + const SEVERITY_NORMAL = 2; // Normal severity. ie an invalid value provided |
19 | 19 | const SEVERITY_HIGH = 3; // Higher-then-normal severity. ie an invalid value for a significant parameter |
20 | 20 | const SEVERITY_FATAL = 4; // Fatal error. Either a missing or an invalid required parameter |
21 | 21 | |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | public $severity; |
30 | 30 | |
31 | 31 | /** |
32 | | - * List of 'tags' for the error. This is mainly ment for indicating an error |
| 32 | + * List of 'tags' for the error. This is mainly meant for indicating an error |
33 | 33 | * type, such as 'missing parameter' or 'invalid value', but allows for multiple |
34 | 34 | * such indications. |
35 | 35 | * |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | protected $tags; |
41 | 41 | |
42 | 42 | /** |
43 | | - * Where the error occured. |
| 43 | + * Where the error occurred. |
44 | 44 | * |
45 | 45 | * @since 0.4 |
46 | 46 | * |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | | - * Returns the element this error occured at, or 'unknown' when i's unknown. |
| 88 | + * Returns the element this error occurred at, or 'unknown' when i's unknown. |
89 | 89 | * |
90 | 90 | * @since 0.4 |
91 | 91 | * |
Index: trunk/extensions/Validator/includes/ListParameter.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
199 | | - * Handles any validation errors that occured for a single criterion. |
| 199 | + * Handles any validation errors that occurred for a single criterion. |
200 | 200 | * |
201 | 201 | * @since 0.4 |
202 | 202 | * |
Index: trunk/extensions/Validator/includes/ParserHook.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Class for out of the box parser hook functionality inetgrated with the validation |
| 5 | + * Class for out of the box parser hook functionality integrated with the validation |
6 | 6 | * provided by Validator. |
7 | 7 | * |
8 | 8 | * @since 0.4 |
— | — | @@ -431,7 +431,7 @@ |
432 | 432 | } |
433 | 433 | |
434 | 434 | /** |
435 | | - * Returns if the current render request is comming from a tag extension. |
| 435 | + * Returns if the current render request is coming from a tag extension. |
436 | 436 | * |
437 | 437 | * @since 0.4.4 |
438 | 438 | * |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | } |
444 | 444 | |
445 | 445 | /** |
446 | | - * Returns if the current render request is comming from a parser function. |
| 446 | + * Returns if the current render request is coming from a parser function. |
447 | 447 | * |
448 | 448 | * @since 0.4.4 |
449 | 449 | * |
Index: trunk/extensions/Validator/includes/ItemParameterCriterion.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Item parameter criterion definition class. This is for criteria |
6 | | - * that apply to individial values, which can either be the whole value |
| 6 | + * that apply to indivudial values, which can either be the whole value |
7 | 7 | * of a non-list parameter, or a single item of a list parameter. |
8 | 8 | * |
9 | 9 | * @since 0.4 |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | |
32 | 32 | /** |
33 | 33 | * Gets an internationalized error message to construct a ValidationError with |
34 | | - * when the criterions validation failed. (for non-list values) |
| 34 | + * when the criteria validation failed. (for non-list values) |
35 | 35 | * |
36 | 36 | * @param Parameter $parameter |
37 | 37 | * |
— | — | @@ -112,7 +112,7 @@ |
113 | 113 | |
114 | 114 | /** |
115 | 115 | * Gets an internationalized error message to construct a ValidationError with |
116 | | - * when the criterions validation failed. (for list values) |
| 116 | + * when the criteria validation failed. (for list values) |
117 | 117 | * |
118 | 118 | * @param Parameter $parameter |
119 | 119 | * @param array $invalidItems |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | |
135 | 135 | /** |
136 | 136 | * Gets an internationalized error message to construct a ValidationError with |
137 | | - * when the criterions validation failed. (for list values when all values are invalid) |
| 137 | + * when the criteria validation failed. (for list values when all values are invalid) |
138 | 138 | * |
139 | 139 | * @param Parameter $parameter |
140 | 140 | * |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | |
149 | 149 | /** |
150 | 150 | * Gets an internationalized error message to construct a ValidationError with |
151 | | - * when the criterions validation failed. (for list values when only some values are invalid) |
| 151 | + * when the criteria validation failed. (for list values when only some values are invalid) |
152 | 152 | * |
153 | 153 | * @param Parameter $parameter |
154 | 154 | * @param array $invalidItems |
Index: trunk/extensions/Validator/includes/ItemParameterManipulation.php |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | /** |
5 | 5 | * Item parameter manipulation base class. This is for manipulations |
6 | | - * that apply to individial values, which can either be the whole value |
| 6 | + * that apply to individual values, which can either be the whole value |
7 | 7 | * of a non-list parameter, or a single item of a list parameter. |
8 | 8 | * |
9 | 9 | * @since 0.4 |
Index: trunk/extensions/Validator/includes/Parameter.php |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | protected $errors = array(); |
162 | 162 | |
163 | 163 | /** |
164 | | - * Indicates if the parameter manipualations should be applied to the default value. |
| 164 | + * Indicates if the parameter manipulations should be applied to the default value. |
165 | 165 | * |
166 | 166 | * @since 0.4 |
167 | 167 | * |
— | — | @@ -423,7 +423,7 @@ |
424 | 424 | } |
425 | 425 | |
426 | 426 | /** |
427 | | - * Handles any validation errors that occured for a single criterion. |
| 427 | + * Handles any validation errors that occurred for a single criterion. |
428 | 428 | * |
429 | 429 | * @since 0.4 |
430 | 430 | * |
— | — | @@ -526,7 +526,7 @@ |
527 | 527 | } |
528 | 528 | |
529 | 529 | /** |
530 | | - * Returns all validation errors that occured so far. |
| 530 | + * Returns all validation errors that occurred so far. |
531 | 531 | * |
532 | 532 | * @since 0.4 |
533 | 533 | * |
— | — | @@ -738,7 +738,7 @@ |
739 | 739 | } |
740 | 740 | |
741 | 741 | /** |
742 | | - * Set if the parameter manipualations should be applied to the default value. |
| 742 | + * Set if the parameter manipulations should be applied to the default value. |
743 | 743 | * |
744 | 744 | * @since 0.4 |
745 | 745 | * |
Index: trunk/extensions/Validator/includes/Validator.php |
— | — | @@ -24,9 +24,9 @@ |
25 | 25 | protected $parameters; |
26 | 26 | |
27 | 27 | /** |
28 | | - * Asscoaitive array containing parameter names (keys) and their user-provided data (values). |
29 | | - * This list is needed because adittional parameter definitions can be added to the $parameters |
30 | | - * feild during validation, so we can't determine in advance if a parameter is unknown. |
| 28 | + * Associative array containing parameter names (keys) and their user-provided data (values). |
| 29 | + * This list is needed because additional parameter definitions can be added to the $parameters |
| 30 | + * field during validation, so we can't determine in advance if a parameter is unknown. |
31 | 31 | * |
32 | 32 | * @since 0.4 |
33 | 33 | * |
— | — | @@ -74,7 +74,7 @@ |
75 | 75 | /** |
76 | 76 | * Constructor. |
77 | 77 | * |
78 | | - * @param srting $element |
| 78 | + * @param string $element |
79 | 79 | * @param boolean $unknownInvalid Should unknown parameter be regarded as invalid (or, if not, just be ignored) |
80 | 80 | * |
81 | 81 | * @since 0.4 |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | * for unknown parameters and optionally for parameter overriding. |
157 | 157 | * |
158 | 158 | * @param array $parameters Parameter name as key, parameter value as value |
159 | | - * @param array $parameterInfo Main parameter name as key, parameter meta data as valu |
| 159 | + * @param array $parameterInfo Main parameter name as key, parameter meta data as value |
160 | 160 | * @param boolean $toLower Indicates if the parameter values should be put to lower case. Defaults to true. |
161 | 161 | */ |
162 | 162 | public function setParameters( array $parameters, array $parameterInfo, $toLower = true ) { |
— | — | @@ -163,7 +163,7 @@ |
164 | 164 | |
165 | 165 | $this->parameters = $parameterInfo; |
166 | 166 | |
167 | | - // Loop through all the user provided parameters, and destinguise between those that are allowed and those that are not. |
| 167 | + // Loop through all the user provided parameters, and distinguish between those that are allowed and those that are not. |
168 | 168 | foreach ( $parameters as $paramName => $paramData ) { |
169 | 169 | $paramName = trim( strtolower( $paramName ) ); |
170 | 170 | $paramValue = is_array( $paramData ) ? $paramData['original-value'] : trim( $paramData ); |
— | — | @@ -337,7 +337,7 @@ |
338 | 338 | } |
339 | 339 | |
340 | 340 | /** |
341 | | - * Tries to find a matching user provided value and, when found, assingns it |
| 341 | + * Tries to find a matching user provided value and, when found, assigns it |
342 | 342 | * to the parameter, and removes it from the raw values. Returns a boolean |
343 | 343 | * indicating if there was any user value set or not. |
344 | 344 | * |
— | — | @@ -390,7 +390,7 @@ |
391 | 391 | |
392 | 392 | /** |
393 | 393 | * Returns an associative array with the parameter names as key and their |
394 | | - * correspinding values as value. |
| 394 | + * corresponding values as value. |
395 | 395 | * |
396 | 396 | * @since 0.4 |
397 | 397 | * |