diff --git a/proposed/psr-1-coding-style-guide/0500-variable-and-property-names.md b/proposed/psr-1-coding-style-guide/0500-variable-and-property-names.md index a1a78ae94..7d09aa36e 100644 --- a/proposed/psr-1-coding-style-guide/0500-variable-and-property-names.md +++ b/proposed/psr-1-coding-style-guide/0500-variable-and-property-names.md @@ -7,7 +7,7 @@ Some projects prefix function and method names with a single underscore to indic Whatever naming convention is used should be applied consistently within a reasonable scope. That scope may be vendor-level, package-level, class-level, or function-level. -Class properties should explictly note the visibility keyword. +Class properties should explicitly note the visibility keyword. longArrayPropertyName[$this->someOtherPropertyValue] = $object->getFunctionResult(ClassName::CONSTANT_VALUE); @@ -62,7 +62,7 @@ When assigning by reference, the `&` should be attached to the variable, not the Array Assignment ---------------- -Array assignemnts may be split across subsequent lines; they should be indented once per array, and should be aligned on the `=>` double arrow. The last value in each array should have a trailing comma; this is valid syntax and reduces the chance of syntax violations when adding new elements. +Array assignments may be split across subsequent lines; they should be indented once per array, and should be aligned on the `=>` double arrow. The last value in each array should have a trailing comma; this is valid syntax and reduces the chance of syntax violations when adding new elements. $an_array = [ 'foo' => 'bar', diff --git a/proposed/psr-1-coding-style-guide/0700-function-and-method-declarations.md b/proposed/psr-1-coding-style-guide/0700-function-and-method-declarations.md index 6c7be2342..f260e477d 100644 --- a/proposed/psr-1-coding-style-guide/0700-function-and-method-declarations.md +++ b/proposed/psr-1-coding-style-guide/0700-function-and-method-declarations.md @@ -25,7 +25,7 @@ Strongly consider using static class methods rather than functions; this will he Methods ------- -Class methods are always be prefixed with an explicit vsibility keyword: +Class methods are always be prefixed with an explicit visibility keyword: