Skip to content

Commit

Permalink
Merge pull request laravel#1498 from GrahamForks/cs
Browse files Browse the repository at this point in the history
Updated the coding style docs
  • Loading branch information
taylorotwell committed Jun 1, 2015
2 parents 33eb62a + 46fd212 commit 262a546
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions contributions.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,4 @@ If you discover a security vulnerability within Laravel, please send an e-mail t
<a name="coding-style"></a>
## Coding Style

Laravel follows the [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) and [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) coding standards. In addition to these standards, the following coding standards should be followed:

- The class namespace declaration must be on the same line as `<?php`.
- A class' opening `{` must be on the same line as the class name.
- Functions and control structures must use Allman style braces.
- Indent with tabs, align with spaces.
Laravel follows the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding standard and the [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) autoloading standard.

0 comments on commit 262a546

Please sign in to comment.