diff --git a/README.md b/README.md index 17bcd29..0efa7ec 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ You should read the `CONTRIBUTING.md` file for precise instructions and tips. Bu ### Contributor Style Guide -1. Use American English spelling (*primary English repo only*) +1. Use American English spelling (*primary English repo only*). 2. Use four (4) spaces to indent text; do not use tabs. 3. Wrap all text to 120 characters. 4. Code samples should adhere to PSR-1 or higher. diff --git a/_posts/05-06-01-Internationalization-and-Localization.md b/_posts/05-06-01-Internationalization-and-Localization.md index 1fe2f02..b44ff34 100644 --- a/_posts/05-06-01-Internationalization-and-Localization.md +++ b/_posts/05-06-01-Internationalization-and-Localization.md @@ -32,7 +32,7 @@ don't try this if your project will contain more than a couple of pages. The most classic way and often taken as reference for i18n and l10n is a [Unix tool called `gettext`][gettext]. It dates back to 1995 and is still a complete implementation for translating software. It is easy enough to get running, while still sporting powerful supporting tools. It is about Gettext we will be talking here. Also, to help you not get messy -over the command-line, we will be presenting a great GUI application that can be used to easily update your l10n source +over the command-line, we will be presenting a great GUI application that can be used to easily update your l10n source. ### Other tools diff --git a/_posts/11-02-01-Test-Driven-Development.md b/_posts/11-02-01-Test-Driven-Development.md index 745f7f1..b4715ce 100644 --- a/_posts/11-02-01-Test-Driven-Development.md +++ b/_posts/11-02-01-Test-Driven-Development.md @@ -33,7 +33,7 @@ The other use for unit tests is contributing to open source. If you can write a which accepts pull requests then you should suggest this as a requirement. [PHPUnit](https://phpunit.de/) is the de-facto testing framework for writing unit tests for PHP applications, but there -are several alternatives +are several alternatives: * [atoum](https://github.com/atoum/atoum) * [Kahlan](https://github.com/crysalead/kahlan) diff --git a/_posts/16-08-01-Sites.md b/_posts/16-08-01-Sites.md index 6802431..80434df 100644 --- a/_posts/16-08-01-Sites.md +++ b/_posts/16-08-01-Sites.md @@ -9,7 +9,7 @@ title: Other Useful Resources ### Cheatsheets * [PHP Cheatsheets](http://phpcheatsheets.com/) - for variable comparisons, arithmetics and variable testing in various PHP versions. -* [Modern PHP Cheatsheet](https://github.com/smknstd/modern-php-cheatsheet) documents modern (PHP 7.0+) idioms in a unified document. +* [Modern PHP Cheatsheet](https://github.com/smknstd/modern-php-cheatsheet) - documents modern (PHP 7.0+) idioms in a unified document. * [OWASP Security Cheatsheets](https://www.owasp.org/index.php/OWASP_Cheat_Sheet_Series) - provides a concise collection of high value information on specific application security topics. ### More best practices diff --git a/pages/Design-Patterns.md b/pages/Design-Patterns.md index 6121dd0..5893555 100644 --- a/pages/Design-Patterns.md +++ b/pages/Design-Patterns.md @@ -142,8 +142,8 @@ add new output types without affecting the client code. You will see how each concrete 'output' class implements an OutputInterface - this serves two purposes, primarily it provides a simple contract which must be obeyed by any new concrete implementations. Secondly by implementing a common -interface you will see in the next section that you can now utilise [Type Hinting](http://php.net/language.oop5.typehinting) to ensure that the client which is utilising these behaviours is of the correct type in -this case 'OutputInterface'. +interface you will see in the next section that you can now utilise [Type Hinting](http://php.net/language.oop5.typehinting) to ensure that the client which is utilising these behaviours is of the correct type, +in this case 'OutputInterface'. The next snippet of code outlines how a calling client class might use one of these algorithms and even better set the behaviour required at runtime: diff --git a/pages/The-Basics.md b/pages/The-Basics.md index 11ae952..118e0c1 100644 --- a/pages/The-Basics.md +++ b/pages/The-Basics.md @@ -362,7 +362,7 @@ return ($a == 5) ? 'yay' : 'nope'; // this example will return 'yay' {% endhighlight %} It should be noted that you do not need to use a ternary operator for returning a boolean value. An example of this -would be. +would be: {% highlight php %}