Project

General

Profile

Actions

Programmierstil

https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md

Beispiel:

public function showAction()
{
    if ($a === $b) {
        echo 'test';
    }

    $test = array (
        'test' => 123,
    );

    $pageMapper = new Page_PageMapper();
    $pageKey = $this->getRequest()->getParam('page');
    $page = $pageMapper->getPageByKey($pageKey);

    return;  
}

Updated by Meyer, Dominik over 5 years ago · 4 revisions