Hi, first: greate work.

if i use drush coder-format
There are some problems with OOP
The keywords: const, interface, inplementes , throw new are handeld wrong

interface XX {
*will converted to*
interfacexx {

class xy extends abc inplementes XX {
*will converted to*
class xy extends abcinplementesXX {

class xy {
 const ABC = "x";
 const DEF = "x";
 const HIJ = "x";
*will converted to*
class xy {
 CONSTABC = "x";
 CONSTDEF = "x";
 CONSTHIJ = "x";

throw new Exeception("test");
*will converted to*
thrownew Exeception("test");

Comments

klausi’s picture

Project: » Coder
Version: » 7.x-1.x-dev
solotandem’s picture

If you run your code through the Grammar Parser, then the output code should be compliant with Drupal coding standards. You can do this at the upgrade site. To do this:
- select the "directories" menu item
- click on the "upgrades" vertical tab
- check "coding standards" upgrade
- uncheck "core api" upgrade
- click "convert files"

klausi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Coder 7.x-1.x is frozen now and will not receive any updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.