2

ibuildings ZFを使用しています。Ctr+Shift+F を押すと、コードはこのようにフォーマットされます

$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');
}

しかし、私はそのようにフォーマットされたい

$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');
}

これを設定する方法は?

4

1 に答える 1

1

フォーマッタは、 Window > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping で設定できます。

すべての設定は「ラップしない」を選択しています。

于 2013-03-05T03:36:28.750 に答える