[suggestion] coding style

Home Forums Legacy Support Support queries Other issues [suggestion] coding style

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10737
    lainme
    Participant
    Sorry, I don't know where is the suitable area to post suggestion so I post here. I am writing my own WPLMS child theme and found the coding style in WPLMS source code is not consistent. For example, there are several different indention styles used in the source code, including tab, four spaces, two spaces, no indention, etc. And sometimes there is space between key/value pair and sometimes not, sometimes there is space between parenthesis and parameters and sometimes not, etc. Although this don't influence the great functionality WPLMS provides, but a consistent coding style could be better for futher development.
    #10940
    Anshuman Sahu
    Keymaster
    We use the sublime text editor for coding part.Can you please share which text edito you are using for coding?
    #11119
    lainme
    Participant
    I am using vim. Here are a few examples, in the lastest version of wplms-front-end/wplms-front-end.php, line 25-29: 4 spaces are used for indentation line 44-56: tab is used for indentation line 61-75: 8 spaces are used for indentation Also in wplms/css/style.css line 51-56: 2 spaces for indentation line 57-62: tab for indentation
    #11179
    Anshuman Sahu
    Keymaster
    Thanking you for pointing out this we will try getting these issues in next updates .
    #11227
    eggeno
    Spectator
    I will suggest using PhpStorm
    #11421
    Anshuman Sahu
    Keymaster
    Thanks for suggestion eggeno
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘[suggestion] coding style’ is closed to new replies.