From 040691ca994f7571d889876e08ffcf253ccac3f6 Mon Sep 17 00:00:00 2001 From: = Date: Mon, 16 Jul 2012 08:11:59 -0400 Subject: [PATCH] Wrap Coding Style to 120 chars --- _posts/02-01-01-Code-Style-Guide.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/_posts/02-01-01-Code-Style-Guide.md b/_posts/02-01-01-Code-Style-Guide.md index 6e88653..5196c9d 100644 --- a/_posts/02-01-01-Code-Style-Guide.md +++ b/_posts/02-01-01-Code-Style-Guide.md @@ -1,10 +1,18 @@ # Code Style Guide -The PHP community is large and diverse, composed of innumerable libraries, frameworks, and components. It is common for PHP developers to choose several of these and combine them into a single project. It is important that PHP code adhere (as close as possible) to a common code style to make it easy for developers to mix and match various libraries for their projects. +The PHP community is large and diverse, composed of innumerable libraries, frameworks, and components. It is common for +PHP developers to choose several of these and combine them into a single project. It is important that PHP code adhere +(as close as possible) to a common code style to make it easy for developers to mix and match various libraries for +their projects. -The [Framework Interop Group][fig] (formerly known as the 'PHP Standards Group') has proposed and approved a series of style recommendations, known as [PSR-0][psr0], [PSR-1][psr1] and [PSR-2][psr2]. Don't let the funny names confuse you, these recommendations are merely a set of rules that some projects like Drupal, Zend, CakePHP, phpBB, AWS SDK, FuelPHP, Lithium, etc are starting to adopt. You can use them for your own projects, or continue to use your own personal style. +The [Framework Interop Group][fig] (formerly known as the 'PHP Standards Group') has proposed and approved a series of +style recommendations, known as [PSR-0][psr0], [PSR-1][psr1] and [PSR-2][psr2]. Don't let the funny names confuse you, +these recommendations are merely a set of rules that some projects like Drupal, Zend, CakePHP, phpBB, AWS SDK, FuelPHP, +Lithium, etc are starting to adopt. You can use them for your own projects, or continue to use your own personal style. -Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily read and work with your code. They all add on to the recommendation before, so using PSR-1 requires PSR-0, but does not require PSR-2. +Ideally you should write PHP code that adheres to one or more of these standards so that other developers can easily +read and work with your code. They all add on to the recommendation before, so using PSR-1 requires PSR-0, but does +not require PSR-2. * [Read about PSR-0][psr0] * [Read about PSR-1][psr1]