You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Robert Lu (JIRA)" <ji...@apache.org> on 2018/01/18 01:33:00 UTC

[jira] [Created] (THRIFT-4463) PHP generated code match PSR-2

Robert Lu created THRIFT-4463:
---------------------------------

             Summary: PHP generated code match PSR-2
                 Key: THRIFT-4463
                 URL: https://issues.apache.org/jira/browse/THRIFT-4463
             Project: Thrift
          Issue Type: Improvement
          Components: PHP - Compiler
    Affects Versions: 0.11.0
            Reporter: Robert Lu
            Assignee: Robert Lu


Whe use thrift compiler to generate PHP code, there are many issues doesn't match [PSR-2|[http://www.php-fig.org/psr/psr-2/]:]
 * indent by 2 spaces, PSR-2 require 4 spaces.
 * Opening brace should be on a new line (for function)
 * The static declaration must come after the visibility declaration
 * etc.

 

So, we can make generated code more readable, match PSR-2(almost).

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)