auraphp/Aura.View — pull request #38 by belgianguy (2013-07-10 10:55:08+00:00)
Title: Experimental (better, branched it and fixed a PSR error)

Now I did a correct brannch so I don't soil my the develop branch with experimental tinkering.

Also fixed an PSR error in Checkboxes.php (the inline if statements in the for loop in invoke() )

Here are the other PSR errors that showed up, which supposedly were already in before the fork:

php scripts/phpcs --standard=PSR1 ~/Aura.View/src

FILE: Aura.View/src/Aura/View/AbstractTemplate.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
235 | ERROR | Method name "AbstractTemplate::__raw" is invalid; only PHP magic
| | methods should be prefixed with a double underscore
--------------------------------------------------------------------------------

FILE: Aura.View/src/Aura/View/Escaper/Object.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
167 | ERROR | Method name "Object::__raw" is invalid; only PHP magic methods
| | should be prefixed with a double underscore
184 | ERROR | Method name "Object::__escape" is invalid; only PHP magic
| | methods should be prefixed with a double underscore
--------------------------------------------------------------------------------

Time: 0 seconds, Memory: 4.00Mb

##########################################

php scripts/phpcs --standard=PSR2 ~/Aura.View/src

FILE: Aura.View/src/Aura/View/AbstractTemplate.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
85 | ERROR | Expected 1 space between type hint and argument
| | "$helper_locator"; 2 found
235 | ERROR | Method name "AbstractTemplate::__raw" is invalid; only PHP magic
| | methods should be prefixed with a double underscore
--------------------------------------------------------------------------------

FILE: Aura.View/src/Aura/View/Escaper/Object.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
167 | ERROR | Method name "Object::__raw" is invalid; only PHP magic methods
| | should be prefixed with a double underscore
184 | ERROR | Method name "Object::__escape" is invalid; only PHP magic
| | methods should be prefixed with a double underscore
--------------------------------------------------------------------------------

FILE: Aura.View/src/Aura/View/Helper/Form/Input/Value.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
38 | ERROR | Whitespace found at end of line
--------------------------------------------------------------------------------

Time: 0 seconds, Memory: 5.00Mb