@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | $attributes = $this->getAttributes(); |
111 | 111 | foreach ($attributes as $attributeName => $attributeValue) { |
112 | - $html .= ' ' . $attributeName . '="' . $attributeValue . '"'; |
|
112 | + $html .= ' '.$attributeName.'="'.$attributeValue.'"'; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | $html .= '>'; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | public function __construct($id = null, ?WidgetLayout $layout = null) |
47 | 47 | { |
48 | - if (! isset($layout)) { |
|
48 | + if (!isset($layout)) { |
|
49 | 49 | $W = bab_Widgets(); |
50 | 50 | $layout = $W->FlowLayout()->setHorizontalSpacing(1, 'em'); |
51 | 51 | $layout->setVerticalAlign('top'); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | public function display(WidgetCanvas $canvas) |
101 | 101 | { |
102 | - if (! $this->local) { |
|
102 | + if (!$this->local) { |
|
103 | 103 | $this->addClass('widget-toolbar'); |
104 | 104 | } else { |
105 | 105 | $this->addClass('app-toolbar'); |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | $displayFieldName = $displayField['fieldname']; |
347 | 347 | $parameters = $displayField['parameters']; |
348 | 348 | $label = isset($parameters['label']) && !empty($parameters['label']) ? $parameters['label'] : null; |
349 | - $displayFieldMethod = '_' . $displayFieldName; |
|
349 | + $displayFieldMethod = '_'.$displayFieldName; |
|
350 | 350 | if (!$isGroupField && method_exists($this, $displayFieldMethod)) { |
351 | 351 | $item = $this->$displayFieldMethod($customSection, $label); |
352 | 352 | } else { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | '', |
413 | 413 | $this->record->getController()->editSection($this->record->getFrontId(), $customSection->id) |
414 | 414 | )->addClass('widget-actionbutton', 'section-button', 'icon', FuncIcons::ACTIONS_DOCUMENT_EDIT) |
415 | - ->setOpenMode(WidgetLink::OPEN_DIALOG)->setDialogClass('customSectionEditorDialog ' . $customSection->classname . ' ' . $customSection->editDialogClass) |
|
415 | + ->setOpenMode(WidgetLink::OPEN_DIALOG)->setDialogClass('customSectionEditorDialog '.$customSection->classname.' '.$customSection->editDialogClass) |
|
416 | 416 | ); |
417 | 417 | } |
418 | 418 | |
@@ -603,7 +603,7 @@ discard block |
||
603 | 603 | |
604 | 604 | $displayFieldName = $field['fieldname']; |
605 | 605 | |
606 | - $displayFieldMethod = '_' . $displayFieldName; |
|
606 | + $displayFieldMethod = '_'.$displayFieldName; |
|
607 | 607 | |
608 | 608 | if (strpos($displayFieldMethod, '__subSection') !== false) { |
609 | 609 | $item = $this->__subSection($customSection, $field); |
@@ -656,7 +656,7 @@ discard block |
||
656 | 656 | |
657 | 657 | $displayFieldName = $field['fieldname']; |
658 | 658 | |
659 | - $displayFieldMethod = '_' . $displayFieldName; |
|
659 | + $displayFieldMethod = '_'.$displayFieldName; |
|
660 | 660 | |
661 | 661 | if (strpos($displayFieldMethod, '__fieldsGroup') !== false) { |
662 | 662 | $item = $this->__fieldsGroup($customSection, $field); |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $parentField = $this->criteria->getField(); |
86 | 86 | |
87 | - if (! isset($parentField)) { |
|
87 | + if (!isset($parentField)) { |
|
88 | 88 | return null; |
89 | 89 | } |
90 | 90 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | if (empty($foreignFieldDescription)) { |
163 | 163 | $foreignFieldDescription = $foreignFieldName; |
164 | 164 | } |
165 | - $foreignPath = $path . '/' . $foreignRecordSetField->getPath(); |
|
165 | + $foreignPath = $path.'/'.$foreignRecordSetField->getPath(); |
|
166 | 166 | |
167 | 167 | $recordSetFieldSelect->addOption($foreignPath, $foreignFieldDescription, $fieldName); |
168 | 168 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | foreach ($foreignRecordSetFields as $foreignFieldName => $foreignRecordSetField) { |
185 | 185 | $foreignFieldDescription = $foreignFieldName; |
186 | - $foreignPath = $path . '/' . $foreignFieldName; |
|
186 | + $foreignPath = $path.'/'.$foreignFieldName; |
|
187 | 187 | |
188 | 188 | $recordSetFieldSelect->addOption($foreignPath, $foreignFieldDescription, $fieldName); |
189 | 189 |
@@ -145,12 +145,12 @@ discard block |
||
145 | 145 | $extraExtraLargeDeviceClassnames = array(); //XXL |
146 | 146 | |
147 | 147 | for ($i = 1; $i <= 12; $i++) { |
148 | - $extraSmallDeviceClassnames['col-xs-' . $i] = $i; |
|
149 | - $smallDeviceClassnames['col-sm-' . $i] = $i; |
|
150 | - $mediumDeviceClassnames['col-md-' . $i] = $i; |
|
151 | - $largeDeviceClassnames['col-lg-' . $i] = $i; |
|
152 | - $extraLargeDeviceClassnames['col-xl-' . $i] = $i; |
|
153 | - $extraExtraLargeDeviceClassnames['col-xxl-' . $i] = $i; |
|
148 | + $extraSmallDeviceClassnames['col-xs-'.$i] = $i; |
|
149 | + $smallDeviceClassnames['col-sm-'.$i] = $i; |
|
150 | + $mediumDeviceClassnames['col-md-'.$i] = $i; |
|
151 | + $largeDeviceClassnames['col-lg-'.$i] = $i; |
|
152 | + $extraLargeDeviceClassnames['col-xl-'.$i] = $i; |
|
153 | + $extraExtraLargeDeviceClassnames['col-xxl-'.$i] = $i; |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | $box = $W->FlexItems()->setWrap(WidgetFlexLayout::FLEX_WRAP_WRAP)->setJustifyContent(WidgetFlexLayout::FLEX_JUSTIFY_CONTENT_SPACE_BETWEEN); |
@@ -185,8 +185,8 @@ discard block |
||
185 | 185 | foreach ($sizes as $sizePrefix => $size) { |
186 | 186 | $box->addItem( |
187 | 187 | $this->labelledField( |
188 | - sprintf('%s (%s)', $size['label'], 'col-' . $sizePrefix . '-*'), |
|
189 | - $W->Select()->addOptions($size['classnames'])->setValue('col-' . $sizePrefix . '-12'), |
|
188 | + sprintf('%s (%s)', $size['label'], 'col-'.$sizePrefix.'-*'), |
|
189 | + $W->Select()->addOptions($size['classnames'])->setValue('col-'.$sizePrefix.'-12'), |
|
190 | 190 | array('sizePolicy', $sizePrefix) |
191 | 191 | )->addAttribute('style', 'flex-basis:50%') |
192 | 192 | ); |
@@ -118,7 +118,7 @@ |
||
118 | 118 | $columns = $this->tableview->getVisibleColumns(); |
119 | 119 | |
120 | 120 | foreach ($columns as $path => $column) { |
121 | - if (! $column->isExportable()) { |
|
121 | + if (!$column->isExportable()) { |
|
122 | 122 | continue; |
123 | 123 | } |
124 | 124 | $columnList->addItem($W->FlexItems($W->LabelledWidget($column->getSelectableName(), $checkbox = $W->CheckBox() |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | { |
52 | 52 | $this->modelView = $modelView; |
53 | 53 | $this->modelViewId = $modelView->getId(); |
54 | - if (! isset($id) || empty($id)) { |
|
54 | + if (!isset($id) || empty($id)) { |
|
55 | 55 | $id = $this->getDefaultEditorId(); |
56 | 56 | } |
57 | 57 | parent::__construct($app, $id, $layout); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | $select->addOption($pagesLength, $pagesLength); |
108 | 108 | } |
109 | 109 | $value = 15; |
110 | - if (($temp = $W->getUserConfiguration($this->modelViewId . '/pageLength', 'widgets')) != null) { |
|
110 | + if (($temp = $W->getUserConfiguration($this->modelViewId.'/pageLength', 'widgets')) != null) { |
|
111 | 111 | $value = $temp; |
112 | 112 | } |
113 | 113 | $select->setValue($value); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | return null; |
136 | 136 | } |
137 | 137 | $checkbox = $W->CheckBox(); |
138 | - $checkbox->setValue($W->getUserConfiguration($this->modelViewId . '/displaySubTotalRow', 'widgets')); |
|
138 | + $checkbox->setValue($W->getUserConfiguration($this->modelViewId.'/displaySubTotalRow', 'widgets')); |
|
139 | 139 | |
140 | 140 | return $W->LabelledWidget($this->App() |
141 | 141 | ->translate('Display subtotal rows'), $checkbox, 'displaySubTotalRow') |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | |
169 | 169 | foreach ($columns as $path => $column) { |
170 | 170 | |
171 | - if (! $column->isInList()) { |
|
171 | + if (!$column->isInList()) { |
|
172 | 172 | continue; |
173 | 173 | } |
174 | 174 | if ($column->isSelectable() && $column->getSelectableName() != '') { |
@@ -155,7 +155,7 @@ |
||
155 | 155 | break; |
156 | 156 | |
157 | 157 | case ($field instanceof ORMEmailField): |
158 | - $displayable = $W->Link($displayable, 'mailto:' . $displayable); |
|
158 | + $displayable = $W->Link($displayable, 'mailto:'.$displayable); |
|
159 | 159 | break; |
160 | 160 | |
161 | 161 | case ($field instanceof ORMFkField): |
@@ -104,7 +104,7 @@ |
||
104 | 104 | foreach ($components as $component) { |
105 | 105 | $stylePath = $component->getStylePath(); |
106 | 106 | if ($stylePath) { |
107 | - $page->addStyleSheet($stylePath . 'style.css'); |
|
107 | + $page->addStyleSheet($stylePath.'style.css'); |
|
108 | 108 | } |
109 | 109 | } |
110 | 110 | } |