@@ -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 | } |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | if (empty($description)) { |
86 | 86 | $description = $field->getName(); |
87 | 87 | } |
88 | - $fieldLabel = $W->Label($description . ':'); |
|
88 | + $fieldLabel = $W->Label($description.':'); |
|
89 | 89 | |
90 | 90 | if ($field instanceof ORMDateField) { |
91 | 91 | $widget = $W->DateEdit(); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | if (empty($description)) { |
143 | 143 | $description = $field->getName(); |
144 | 144 | } |
145 | - $fieldLabel = $W->Label($description . ':'); |
|
145 | + $fieldLabel = $W->Label($description.':'); |
|
146 | 146 | |
147 | 147 | if ($field instanceof ORMDateField) { |
148 | 148 | $widget = $W->PeriodEdit(); |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $nbOptions = 0; |
246 | 246 | foreach ($iterator as $record) { |
247 | 247 | if (isset($record->code)) { |
248 | - $optionText = $record->code . ' - ' . $record->$fieldName; |
|
248 | + $optionText = $record->code.' - '.$record->$fieldName; |
|
249 | 249 | } else { |
250 | 250 | $optionText = $record->$fieldName; |
251 | 251 | } |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | $sizePolicy = 'customsection-field-box '; |
320 | 320 | $sizePolicy .= isset($parameters['sizePolicy']) ? $parameters['sizePolicy'] : ''; |
321 | 321 | $sizePolicy .= isset($parameters['transparentBackground']) && $parameters['transparentBackground'] ? 'customsection-field-box-transparentBackground' : ''; |
322 | - $displayFieldMethod = '_' . $displayFieldName; |
|
322 | + $displayFieldMethod = '_'.$displayFieldName; |
|
323 | 323 | |
324 | 324 | if (!$isGroupField && method_exists($this, $displayFieldMethod)) { |
325 | 325 | $widget = $this->$displayFieldMethod($customSection, $label); |
@@ -400,7 +400,7 @@ discard block |
||
400 | 400 | $parameters = $displayField['parameters']; |
401 | 401 | $classname = isset($parameters['classname']) ? $parameters['classname'] : ''; |
402 | 402 | $label = isset($parameters['label']) && !empty($parameters['label']) && $parameters['label'] !== '__' ? $parameters['label'] : null; |
403 | - $displayFieldMethod = '_' . $displayFieldName; |
|
403 | + $displayFieldMethod = '_'.$displayFieldName; |
|
404 | 404 | $sizePolicy = 'customsection-field-box '; |
405 | 405 | $sizePolicy .= isset($parameters['sizePolicy']) ? $parameters['sizePolicy'] : ''; |
406 | 406 | if (!$isGroupField && method_exists($this, $displayFieldMethod)) { |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | $labelField = isset($field['parameters']['label']) ? $field['parameters']['label'] : ''; |
467 | 467 | $itemClass = isset($field['parameters']['classname']) ? $field['parameters']['classname'] : ''; |
468 | 468 | $displayFieldName = $field['fieldname']; |
469 | - $displayFieldMethod = '_' . $displayFieldName; |
|
469 | + $displayFieldMethod = '_'.$displayFieldName; |
|
470 | 470 | if (strpos($displayFieldMethod, '__subSection') !== false) { |
471 | 471 | $item = $this->__subSection($customSection, $field); |
472 | 472 | if (!isset($item) || count($item->getItems()) == 0) { |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | $labelField = isset($field['parameters']['label']) ? $field['parameters']['label'] : ''; |
515 | 515 | $itemClass = isset($field['parameters']['classname']) ? $field['parameters']['classname'] : ''; |
516 | 516 | $displayFieldName = $field['fieldname']; |
517 | - $displayFieldMethod = '_' . $displayFieldName; |
|
517 | + $displayFieldMethod = '_'.$displayFieldName; |
|
518 | 518 | if (strpos($displayFieldMethod, '__fieldsGroup') !== false) { |
519 | 519 | $item = $this->__fieldsGroup($customSection, $field); |
520 | 520 | if (count($item->getItems()) == 0) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | $this->setHiddenValue('customfield[id]', $customfield->id); |
62 | 62 | $values = $customfield->getValues(); |
63 | 63 | |
64 | - if (! empty($this->customfield->enumvalues)) { |
|
64 | + if (!empty($this->customfield->enumvalues)) { |
|
65 | 65 | $values['enumvalues'] = unserialize($this->customfield->enumvalues); |
66 | 66 | } else { |
67 | 67 | $values['enumvalues'] = array( |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $fieldValuesItem->addItem($W->Label($App->translate('List of available values'))); |
185 | 185 | $values = array(); |
186 | 186 | |
187 | - if (isset($this->customfield) && ! empty($this->customfield->enumvalues)) { |
|
187 | + if (isset($this->customfield) && !empty($this->customfield->enumvalues)) { |
|
188 | 188 | $values = unserialize($this->customfield->enumvalues); |
189 | 189 | |
190 | 190 | foreach ($values as $name => $text) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | use Capwelton\Widgets\Widgets\Helpers\WidgetAction; |
31 | 31 | use Cofy\Exception\BabUnknownActionException; |
32 | 32 | |
33 | -require_once dirname(__FILE__) . '/functions.php'; |
|
33 | +require_once dirname(__FILE__).'/functions.php'; |
|
34 | 34 | |
35 | 35 | $App = app_App(); |
36 | 36 | |
@@ -39,5 +39,5 @@ discard block |
||
39 | 39 | $action = WidgetAction::fromRequest(); |
40 | 40 | $controller->execute($action); |
41 | 41 | } catch (BabUnknownActionException $e) { |
42 | - die('<div class="app-error">' . $App->translate('We have a problem finding this page...') . '</div>'); |
|
42 | + die('<div class="app-error">'.$App->translate('We have a problem finding this page...').'</div>'); |
|
43 | 43 | } |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | if (null === $url) { |
123 | 123 | $script = '<script type="text/javascript">'; |
124 | 124 | if (isset($message)) { |
125 | - $script .= 'alert("' . bab_toHtml($message, BAB_HTML_JS) . '");'; |
|
125 | + $script .= 'alert("'.bab_toHtml($message, BAB_HTML_JS).'");'; |
|
126 | 126 | } |
127 | 127 | $script .= 'history.back();'; |
128 | 128 | $script .= '</script>'; |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $url = $url->url(); |
135 | 135 | } |
136 | 136 | if (!empty($babBody->msgerror)) { |
137 | - $url .= '&msgerror=' . urlencode($babBody->msgerror); |
|
137 | + $url .= '&msgerror='.urlencode($babBody->msgerror); |
|
138 | 138 | } |
139 | 139 | if (isset($message)) { |
140 | 140 | $lines = explode("\n", $message); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | } |
144 | 144 | } |
145 | 145 | |
146 | - header('Location: ' . $url); |
|
146 | + header('Location: '.$url); |
|
147 | 147 | die; |
148 | 148 | } |
149 | 149 | |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | $hour = '00:00:00'; |
233 | 233 | } |
234 | 234 | |
235 | - return $date . ' ' . $hour; |
|
235 | + return $date.' '.$hour; |
|
236 | 236 | } |
237 | 237 | |
238 | 238 |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | public function getPackageName() |
103 | 103 | { |
104 | - if (! isset($this->packageName) || empty($this->packageName)) { |
|
104 | + if (!isset($this->packageName) || empty($this->packageName)) { |
|
105 | 105 | $packageName = ''; |
106 | 106 | $setRc = new \ReflectionClass($this->set); |
107 | 107 | // Tries to automatically retrieve the package name from the definition.json |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | */ |
145 | 145 | public function controller($proxy = true) |
146 | 146 | { |
147 | - if (! isset($this->controllerObject)) { |
|
147 | + if (!isset($this->controllerObject)) { |
|
148 | 148 | $this->app->includeRecordController(); |
149 | 149 | $ctrl = $this->controller; |
150 | 150 | $this->controllerObject = new $ctrl($this->app, $this); |
@@ -169,9 +169,9 @@ discard block |
||
169 | 169 | public function ui() |
170 | 170 | { |
171 | 171 | $this->app->includeUi(); |
172 | - if (! isset($this->uiObject)) { |
|
172 | + if (!isset($this->uiObject)) { |
|
173 | 173 | $ui = $this->ui; |
174 | - if (! isset($ui)) { |
|
174 | + if (!isset($ui)) { |
|
175 | 175 | return null; |
176 | 176 | } |
177 | 177 | $this->uiObject = new $ui($this->app); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | |
205 | 205 | public function getDefinition() |
206 | 206 | { |
207 | - $componentDefinitionObjectName = 'Capwelton\App\\' . $this->getPackageName() . '\ComponentDefinition\ComponentDefinition'; |
|
207 | + $componentDefinitionObjectName = 'Capwelton\App\\'.$this->getPackageName().'\ComponentDefinition\ComponentDefinition'; |
|
208 | 208 | if (class_exists($componentDefinitionObjectName)) { |
209 | 209 | return new $componentDefinitionObjectName(); |
210 | 210 | } |
@@ -99,7 +99,7 @@ |
||
99 | 99 | public function hasNoAccess(AppRecordSet $recordSet, $accessType, $user = null) |
100 | 100 | { |
101 | 101 | $criterion = $this->getAccessCriterion($recordSet, $accessType, $user); |
102 | - if (! $criterion instanceof ORMFalseCriterion) { |
|
102 | + if (!$criterion instanceof ORMFalseCriterion) { |
|
103 | 103 | return false; |
104 | 104 | } |
105 | 105 | return true; |