Skip to content

Commit c84de4c

Browse files
Fix typos in the "Code style guide" post
1 parent b3e32a6 commit c84de4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_posts/02-01-01-Code-Style-Guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ anchor: code_style_guide
55
# Code Style Guide {#code_style_guide_title}
66

77
The PHP community is large and diverse, composed of innumerable libraries, frameworks, and components. It is common for
8-
PHP developers to choose several of these and combine them into a single project. It is important that PHP code adhere
8+
PHP developers to choose several of these and combine them into a single project. It is important that PHP code adheres
99
(as close as possible) to a common code style to make it easy for developers to mix and match various libraries for
1010
their projects.
1111

12-
The [Framework Interop Group][fig] has proposed and approved a series of style recommendations. Not all of them related
12+
The [Framework Interop Group][fig] has proposed and approved a series of style recommendations. Not all of them relate
1313
to code-style, but those that do are [PSR-1][psr1], [PSR-12][psr12] and [PSR-4][psr4]. These
1414
recommendations are merely a set of rules that many projects like Drupal, Zend, Symfony, Laravel, CakePHP, phpBB, AWS SDK,
15-
FuelPHP, Lithium, etc are adopting. You can use them for your own projects, or continue to use your own
15+
FuelPHP, Lithium, etc. are adopting. You can use them for your own projects, or continue to use your own
1616
personal style.
1717

1818
Ideally, you should write PHP code that adheres to a known standard. This could be any combination of PSRs, or one
@@ -48,7 +48,7 @@ If you have PHP_CodeSniffer, then you can fix the code layout problems reported
4848
phpcbf -w --standard=PSR1 file.php
4949

5050
Another option is to use the [PHP Coding Standards Fixer][phpcsfixer].
51-
It will show which kind of errors the code structure had before it fixed them.
51+
It will show what kind of errors the code structure had before it fixed them.
5252

5353
php-cs-fixer fix -v --rules=@PSR1 file.php
5454

0 commit comments

Comments
 (0)