Skip to content

Commit d0bed50

Browse files
authored
Merge pull request #926 from Xymph/fix-spelling-punc-etc
Fix spelling, grammar, punctuation, etc.
2 parents e7a7bae + 005ba52 commit d0bed50

12 files changed

+25
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You should read the `CONTRIBUTING.md` file for precise instructions and tips. Bu
2626

2727
### Contributor Style Guide
2828

29-
1. Use American English spelling (*primary English repo only*)
29+
1. Use American English spelling (*primary English repo only*).
3030
2. Use four (4) spaces to indent text; do not use tabs.
3131
3. Wrap all text to 120 characters.
3232
4. Code samples should adhere to PSR-1 or higher.

_posts/03-04-01-Standard-PHP-Library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ primarily of commonly needed datastructure classes (stack, queue, heap, and so o
1111
over these datastructures or your own classes which implement SPL interfaces.
1212

1313
* [Read about the SPL][spl]
14-
* [SPL video course on Lynda.com(Paid)][spllynda]
14+
* [SPL video course on Lynda.com (paid)][spllynda]
1515

1616

1717
[spl]: https://secure.php.net/book.spl

_posts/05-06-01-Internationalization-and-Localization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ don't try this if your project will contain more than a couple of pages.
3232
The most classic way and often taken as reference for i18n and l10n is a [Unix tool called `gettext`][gettext]. It dates
3333
back to 1995 and is still a complete implementation for translating software. It is easy enough to get running, while
3434
still sporting powerful supporting tools. It is about Gettext we will be talking here. Also, to help you not get messy
35-
over the command-line, we will be presenting a great GUI application that can be used to easily update your l10n source
35+
over the command-line, we will be presenting a great GUI application that can be used to easily update your l10n source.
3636

3737
### Other tools
3838

@@ -41,7 +41,7 @@ install or sport additional features or i18n file formats. In this document, we
4141
PHP core, but here we list others for completion:
4242

4343
- [aura/intl][aura-intl]: Provides internationalization (I18N) tools, specifically package-oriented per-locale message
44-
translation. It uses array formats for message. Does not provide a message extractor, but does provide advanced
44+
translation. It uses array formats for messages. Does not provide a message extractor, but does provide advanced
4545
message formatting via the `intl` extension (including pluralized messages).
4646
- [oscarotero/Gettext][oscarotero]: Gettext support with an OO interface; includes improved helper functions, powerful
4747
extractors for several file formats (some of them not supported natively by the `gettext` command), and can also export
@@ -248,7 +248,7 @@ the actual interface. Given that, let's tie together what we have discussed so f
248248
- [`gettext()`][func] simply translates a `msgid` into its corresponding `msgstr` for a given language. There's also
249249
the shorthand function `_()` that works the same way;
250250
- [`ngettext()`][n_func] does the same but with plural rules;
251-
- there's also [`dgettext()`][d_func] and [`dngettext()`][dn_func], that allows you to override the domain for a single
251+
- There are also [`dgettext()`][d_func] and [`dngettext()`][dn_func], that allow you to override the domain for a single
252252
call. More on domain configuration in the next example.
253253

254254
#### 2. A sample setup file (`i18n_setup.php` as used above), selecting the correct locale and configuring Gettext

_posts/06-04-01-Containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Locator in to your classes arguably creates a harder dependency on the container
1212
It also makes your code much less transparent and ultimately harder to test.
1313

1414
Most modern frameworks have their own Dependency Injection Container that allows you to wire your dependencies together
15-
through configuration. What this means in practice is that you can write application code that is as clean and de-
16-
coupled as the framework it is built on.
15+
through configuration. What this means in practice is that you can write application code that is as clean and
16+
de-coupled as the framework it is built on.

_posts/11-02-01-Test-Driven-Development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The other use for unit tests is contributing to open source. If you can write a
3333
which accepts pull requests then you should suggest this as a requirement.
3434

3535
[PHPUnit](https://phpunit.de/) is the de-facto testing framework for writing unit tests for PHP applications, but there
36-
are several alternatives
36+
are several alternatives:
3737

3838
* [atoum](https://github.com/atoum/atoum)
3939
* [Kahlan](https://github.com/crysalead/kahlan)

_posts/12-05-01-Building-your-Application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Managing and configuring servers can be a daunting task when faced with many ser
4949

5050
[Ansible] is a tool that manages your infrastructure through YAML files. It's simple to get started with and can manage complex and large scale applications. There is an API for managing cloud instances and it can manage them through a dynamic inventory using certain tools.
5151

52-
[Puppet] is a tool that has its own language and file types for managing servers and configurations. It can be used in a master/client setup or it can be used in a "master-less" mode. In the master/client mode the clients will poll the central master(s) for new configuration on set intervals and update itself if necessary. In the master-less mode you can push changes to your nodes.
52+
[Puppet] is a tool that has its own language and file types for managing servers and configurations. It can be used in a master/client setup or it can be used in a "master-less" mode. In the master/client mode the clients will poll the central master(s) for new configuration on set intervals and update themselves if necessary. In the master-less mode you can push changes to your nodes.
5353

5454
[Chef] is a powerful Ruby based system integration framework that you can build your whole server environment or virtual boxes with. It integrates well with Amazon Web Services through their service called OpsWorks.
5555

_posts/13-03-01-Docker.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A typical LAMP application might have three containers: a web server, a PHP-FPM
1111

1212
You can generate containers from the command line (see example below) or, for ease of maintenance, build a `docker-compose.yml` file for your project specifying which to create and how they communicate with one another.
1313

14-
Docker may help if you're developing multiple websites and want the separation that comes from installing each on it's own virtual machine, but don't have the necessary disk space or the time to keep everything up to date. It's efficient: the installation and downloads are quicker, you only need to store one copy of each image however often it's used, containers need less RAM and share the same OS kernel, so you can have more servers running simultaneously, and it takes a matter of seconds to stop and start them, no need to wait for a full server boot.
14+
Docker may help if you're developing multiple websites and want the separation that comes from installing each on its own virtual machine, but don't have the necessary disk space or the time to keep everything up to date. It's efficient: the installation and downloads are quicker, you only need to store one copy of each image however often it's used, containers need less RAM and share the same OS kernel, so you can have more servers running simultaneously, and it takes a matter of seconds to stop and start them, no need to wait for a full server boot.
1515

1616
### Example: Running your PHP Applications in Docker
1717

@@ -22,7 +22,7 @@ The following will download a fully functional Apache installation with the late
2222
docker run -d --name my-php-webserver -p 8080:80 -v /path/to/your/php/files:/var/www/html/ php:apache
2323
{% endhighlight %}
2424

25-
This will initialize and launch your container. `-d` makes it runs in the background. To stop and start it, simply run `docker stop my-php-webserver` and `docker start my-php-webserver` (the other parameters are not needed again).
25+
This will initialize and launch your container. `-d` makes it run in the background. To stop and start it, simply run `docker stop my-php-webserver` and `docker start my-php-webserver` (the other parameters are not needed again).
2626

2727
### Learn more about Docker
2828

_posts/16-08-01-Sites.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: Other Useful Resources
99
### Cheatsheets
1010

1111
* [PHP Cheatsheets](http://phpcheatsheets.com/) - for variable comparisons, arithmetics and variable testing in various PHP versions.
12-
* [Modern PHP Cheatsheet](https://github.com/smknstd/modern-php-cheatsheet) documents modern (PHP 7.0+) idioms in a unified document.
12+
* [Modern PHP Cheatsheet](https://github.com/smknstd/modern-php-cheatsheet) - documents modern (PHP 7.0+) idioms in a unified document.
1313
* [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.
1414

1515
### More best practices

_posts/16-10-01-Books.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ for modern, secure, and fast cryptography.
2121

2222
* [Build APIs You Won't Hate](https://apisyouwonthate.com/) - Everyone and their dog wants an API,
2323
so you should probably learn how to build them.
24-
* [Modern PHP](http://shop.oreilly.com/product/0636920033868.do) - covers modern PHP features, best practices, testing, tuning, deployment and setting up a dev environment.
24+
* [Modern PHP](http://shop.oreilly.com/product/0636920033868.do) - Covers modern PHP features, best practices, testing, tuning, deployment and setting up a dev environment.
2525
* [Building Secure PHP Apps](https://leanpub.com/buildingsecurephpapps) - Learn the security basics that a senior
2626
developer usually acquires over years of experience, all condensed down into one quick and easy handbook
2727
* [Modernizing Legacy Applications In PHP](https://leanpub.com/mlaphp) - Get your code under control in a series of

_posts/17-04-01-Elephpants.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ anchor: elephpants
55

66
## ElePHPants {#elephpants_title}
77

8-
[ElePHPant][elephpant] is that beautiful mascot of the PHP project with elephant in their design. It was originally designed for the PHP project in 1998 by [Vincent Pontier][vincent-pontier] - spiritual father of thousands of elePHPants around the world and 10 years later adorable plush elephant toy came to birth as well. Now elePHPants are present at many PHP conferences and with many PHP developers at their computers for fun and inspiration.
8+
[ElePHPant][elephpant] is that beautiful mascot of the PHP project with an elephant in its design. It was originally designed for the PHP project in 1998 by [Vincent Pontier][vincent-pontier] - spiritual father of thousands of elePHPants around the world - and ten years later adorable plush elephant toys came to birth as well. Now elePHPants are present at many PHP conferences and with many PHP developers at their computers for fun and inspiration.
99

1010
[Interview with Vincent Pontier][vincent-pontier-interview]
1111

0 commit comments

Comments
 (0)