Closed (won't fix)
Project:
Coder
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 May 2012 at 05:09 UTC
Updated:
16 Jan 2016 at 18:28 UTC
Jump to comment: Most recent
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
Comment #1
klausiComment #2
solotandem commentedIf 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"
Comment #3
klausiCoder 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.