Intervention/image — pull request #31 by ericrjones1 (2013-09-20 19:20:13+00:00)
Title: Fix the code to be PSR-2 compliant

Made the appropriate adjustments to the code structure to bring it into compliance with PSR-2.

$> phpcs --standard=PSR2 .\src

FILE: ..\image\src\Intervention\Image\Image.php
--------------------------------------------------------------------------------
FOUND 49 ERROR(S) AND 4 WARNING(S) AFFECTING 34 LINE(S)
--------------------------------------------------------------------------------
98 | ERROR | Expected 0 spaces after opening bracket; 1 found
169 | ERROR | Expected 0 spaces after opening bracket; 1 found
188 | ERROR | Expected 0 spaces after opening bracket; 1 found
217 | ERROR | Expected 0 spaces after opening bracket; 1 found
268 | ERROR | Expected 0 spaces between argument "$dst_x" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$dst_y" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$src_x" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$src_y" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$dst_w" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$dst_h" and comma; 1
| | found
268 | ERROR | Expected 0 spaces between argument "$src_w" and comma; 1
| | found
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | ERROR | Space found before comma in function call
278 | WARNING | Line exceeds 120 characters; contains 123 characters
337 | ERROR | Expected 0 spaces after opening bracket; 1 found
350 | ERROR | PHP keywords must be lowercase; expected "or" but found "OR"
350 | WARNING | Line exceeds 120 characters; contains 130 characters
359 | ERROR | Expected 0 spaces after opening bracket; 1 found
362 | ERROR | Expected 0 spaces after opening bracket; 1 found
373 | ERROR | Expected 0 spaces after opening bracket; 1 found
567 | ERROR | Space found before comma in function call
567 | ERROR | Space found before comma in function call
567 | ERROR | Space found before comma in function call
567 | ERROR | Space found before comma in function call
567 | ERROR | Space found before comma in function call
606 | ERROR | Space found before comma in function call
628 | ERROR | Expected 0 spaces after opening bracket; 1 found
628 | ERROR | PHP keywords must be lowercase; expected "or" but found "OR"
641 | ERROR | Expected "if (...) {\n"; found "if(...) {\n"
1142 | ERROR | Whitespace found at end of line
1228 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1236 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1243 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1274 | WARNING | Line exceeds 120 characters; contains 143 characters
1317 | ERROR | Expected "} elseif (...) {\n"; found "} elseif(...) {\n"
1333 | ERROR | Expected "} elseif (...) {\n"; found "} elseif(...) {\n"
1342 | ERROR | Line indented incorrectly; expected at least 16 spaces, found
| | 12
1349 | ERROR | Line indented incorrectly; expected at least 16 spaces, found
| | 12
1350 | WARNING | Line exceeds 120 characters; contains 130 characters
1399 | ERROR | Expected 0 spaces after opening bracket; 1 found
1481 | ERROR | Inline control structures are not allowed
1520 | ERROR | Line indented incorrectly; expected at least 16 spaces, found
| | 12
1521 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1525 | ERROR | Line indented incorrectly; expected at least 16 spaces, found
| | 12
1526 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1530 | ERROR | Line indented incorrectly; expected at least 16 spaces, found
| | 12
1531 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
1534 | ERROR | Terminating statement must be indented to the same level as
| | the CASE body
--------------------------------------------------------------------------------

FILE: ..\image\src\Intervention\Image\ImageServiceProvider.php
--------------------------------------------------------------------------------
FOUND 3 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
34 | ERROR | Opening parenthesis of a multi-line function call must be the
| | last content on the line
34 | ERROR | Expected 1 space after FUNCTION keyword; 0 found
36 | ERROR | Closing parenthesis of a multi-line function call must be on a
| | line by itself
--------------------------------------------------------------------------------

Time: 2.82 seconds, Memory: 10.50Mb