Fix a few style issues

This commit is contained in:
Johannes Meyer 2019-02-14 15:32:51 +01:00
parent df7e72398d
commit 7a8c48c7e8
5 changed files with 12 additions and 11 deletions

View file

@ -189,7 +189,7 @@ class AddNodeForm extends QuickForm
protected function selectHost()
{
$this->addElement('multiselect','children', [
$this->addElement('multiselect', 'children', [
'label' => $this->translate('Hosts'),
'required' => true,
'size' => 8,
@ -225,7 +225,7 @@ class AddNodeForm extends QuickForm
protected function addServicesElement($host)
{
$this->addElement('multiselect','children', [
$this->addElement('multiselect', 'children', [
'label' => $this->translate('Services'),
'required' => true,
'size' => 8,
@ -260,7 +260,7 @@ class AddNodeForm extends QuickForm
}
if (($file = $this->getSentValue('file')) || !$this->hasParentNode()) {
$this->addElement('multiselect','children', [
$this->addElement('multiselect', 'children', [
'label' => $this->translate('Process nodes'),
'required' => true,
'size' => 8,

View file

@ -57,7 +57,7 @@ class MoveNodeForm extends QuickForm
'filters' => ['Null'],
'validators' => [
['Callback', true, [
'callback' => function($name) {
'callback' => function ($name) {
return empty($name) || $this->bp->hasBpNode($name);
},
'messages' => [

View file

@ -62,4 +62,4 @@ $this->provideJsFile('vendor/Sortable.js');
$this->provideJsFile('behavior/sortable.js');
$this->provideJsFile('vendor/jquery.fn.sortable.js');
$this->provideCssFile('state-ball.less');
$this->provideCssFile('state-ball.less');

View file

@ -31,11 +31,10 @@ class ImportedNode extends BpNode
$this->nodeName = $object->node;
parent::__construct((object) [
'name' => '@' . $this->configName . ':' . $this->nodeName,
'operator' => null,
'child_names' => null
]
);
'name' => '@' . $this->configName . ':' . $this->nodeName,
'operator' => null,
'child_names' => null
]);
}
/**

View file

@ -175,7 +175,9 @@ class TreeRenderer extends Renderer
$ul = Html::tag('ul', [
'class' => ['bp', 'sortable'],
'data-sortable-disabled' => $this->isLocked() || $node->getBpConfig()->getName() !== $this->getBusinessProcess()->getName() ? 'true' : 'false',
'data-sortable-disabled' => (
$this->isLocked() || $node->getBpConfig()->getName() !== $this->getBusinessProcess()->getName()
) ? 'true' : 'false',
'data-sortable-invert-swap' => 'true',
'data-sortable-data-id-attr' => 'id',
'data-sortable-draggable' => '.movable',