An atom package that may come in handy when developping for litus.
Selecting Packages > Litus > Fix PHP CodeStyle
or simply typing ctrl+alt+shift+L
triggers the vendor/bin/php-cs-fixer
script. Output is shown in the Atom editor.
You can also run the Litus pre-commit git hook
using Packages > Litus > Run Pre-Commit Hook
or typing ctrl+alt+L
.
Take a look inside the snippets folder. You'll find a whole lot of snippets there. Using these snippets, you can simply type
form{tab}
to get
$form = $this->getForm(${1:FormName});if ($this->getRequest()->isPost()) {$formData = $this->getRequest()->getPost();$form->setData($formData);if ($form->isValid()) {$formData = $form->getData();}$2}
Amazing, right?
<> with ♥ by Bram Gotink
This code is © 2014, licensed under the MIT license, see LICENSE.md
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.