2

I am using ibuildings ZF. When I press Ctr+Shift+F the code is formated this way

$adapter = $this->getAuthAdapter(
$form->getValues());
$auth = Zend_Auth::getInstance();
$result = $auth->authenticate($adapter);
if (! $result->isValid()) {
    $form->setDescription(
    'Invalid credentials provided');
    $this->view->form = $form;
    return $this->render('index');
}

but I want to be formatted that way

$adapter = $this->getAuthAdapter($form->getValues());
$auth = Zend_Auth::getInstance();
$result = $auth->authenticate($adapter);
if (! $result->isValid()) {
    $form->setDescription('Invalid input');
    $this->view->form = $form;
    return $this->render('index');
}

how to configure this?

Blizz
  • 8,082
  • 2
  • 33
  • 53
overthetop
  • 1,664
  • 2
  • 15
  • 25

1 Answers1

1

The formatter can be configured in Window > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping .

All the Settings are choose 'Do not wrap'.

Egret
  • 46
  • 3