Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11355

api explorer should follow coding standards

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.3.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      This one came up at the Toronto developer training.

      The civicrm/api/explorer does a wonderful of job providing PHP that can be cut and pasted into a script, but unfortunately it doesn't follow the whitespace coding standards at http://drupal.org/coding-standards#indenting

      Function Calls

      Functions should be called with no spaces between the function name, the opening parenthesis, and the first parameter; spaces between commas and each parameter, and no space between the last parameter, the closing parenthesis, and the semicolon. Here's an example:

      $var = foo($bar, $baz, $quux);

      As displayed above, there should be one space on either side of an equals sign used to assign the return value of a function to a variable.

        Attachments

          Activity

            People

            • Assignee:
              colemanw Coleman Watts
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: