@@ -35,7 +35,7 @@ |
||
35 | 35 | * |
36 | 36 | * @var array |
37 | 37 | */ |
38 | - protected $scripts = [ '/js/html.sortable.min.js', 'Core/js/forms.tree-management.js' ]; |
|
38 | + protected $scripts = ['/js/html.sortable.min.js', 'Core/js/forms.tree-management.js']; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Attributes. |
@@ -38,14 +38,14 @@ |
||
38 | 38 | |
39 | 39 | $globalConfigPaths = []; |
40 | 40 | foreach ($config['config_glob_paths'] as $path) { |
41 | - $globalConfigPaths[] = substr($path, 0, strrpos($path, DIRECTORY_SEPARATOR)) . DIRECTORY_SEPARATOR; |
|
41 | + $globalConfigPaths[] = substr($path, 0, strrpos($path, DIRECTORY_SEPARATOR)).DIRECTORY_SEPARATOR; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $moduleConfigPath = '.'; |
45 | 45 | foreach ($config['module_paths'] as $path) { |
46 | - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
47 | - if (file_exists($path . 'Jobs')) { |
|
48 | - $moduleConfigPath = $path . 'Jobs' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR; |
|
46 | + $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
47 | + if (file_exists($path.'Jobs')) { |
|
48 | + $moduleConfigPath = $path.'Jobs'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR; |
|
49 | 49 | break; |
50 | 50 | } |
51 | 51 | } |
@@ -67,13 +67,13 @@ |
||
67 | 67 | $file = "jobs.categories.$type.php"; |
68 | 68 | |
69 | 69 | foreach ($this->globalConfigPaths as $path) { |
70 | - if (file_exists($path . $file)) { |
|
71 | - return include $path . $file; |
|
70 | + if (file_exists($path.$file)) { |
|
71 | + return include $path.$file; |
|
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | - if (file_exists($this->moduleConfigPath . $file)) { |
|
76 | - return include $this->moduleConfigPath . $file; |
|
75 | + if (file_exists($this->moduleConfigPath.$file)) { |
|
76 | + return include $this->moduleConfigPath.$file; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return false; |
@@ -167,7 +167,7 @@ |
||
167 | 167 | 'label' => $label, |
168 | 168 | ], |
169 | 169 | 'attributes' => [ |
170 | - 'class' => 'btn btn-' . ('submit' == $type ? 'primary' : 'default'), |
|
170 | + 'class' => 'btn btn-'.('submit' == $type ? 'primary' : 'default'), |
|
171 | 171 | 'type' => $type, |
172 | 172 | ], |
173 | 173 | ] |
@@ -61,7 +61,7 @@ |
||
61 | 61 | * |
62 | 62 | * @return self |
63 | 63 | */ |
64 | - public function addViewModel($name, $model, $priority=0) |
|
64 | + public function addViewModel($name, $model, $priority = 0) |
|
65 | 65 | { |
66 | 66 | $this->models->insert($name, $model, $priority); |
67 | 67 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | if (null === $buttonContent) { |
27 | 27 | throw new Exception\DomainException( |
28 | 28 | sprintf( |
29 | - '%s expects either button content as the second argument, ' . |
|
29 | + '%s expects either button content as the second argument, '. |
|
30 | 30 | 'or that the element provided has a label value; neither found', |
31 | 31 | __METHOD__ |
32 | 32 | ) |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $checkedBoole = ($value == 1 || $value == 'on'); |
47 | 47 | |
48 | 48 | |
49 | - $checkedClass = $checkedBoole?'active"':''; |
|
49 | + $checkedClass = $checkedBoole ? 'active"' : ''; |
|
50 | 50 | |
51 | 51 | $hiddenElement = ''; |
52 | 52 | if ($element->useHiddenElement()) { |
@@ -63,11 +63,11 @@ discard block |
||
63 | 63 | $element->setUseHiddenElement(false); |
64 | 64 | } |
65 | 65 | |
66 | - $buttonContent = $hiddenElement . PHP_EOL |
|
67 | - . '<div class="btn-group" data-toggle="buttons">' . PHP_EOL |
|
68 | - . '<label class="btn btn-default ' . $checkedClass . '">' . PHP_EOL |
|
69 | - . parent::render($element) . $buttonContent . PHP_EOL . '</label>' . PHP_EOL |
|
70 | - . '</div>' . PHP_EOL; |
|
66 | + $buttonContent = $hiddenElement.PHP_EOL |
|
67 | + . '<div class="btn-group" data-toggle="buttons">'.PHP_EOL |
|
68 | + . '<label class="btn btn-default '.$checkedClass.'">'.PHP_EOL |
|
69 | + . parent::render($element).$buttonContent.PHP_EOL.'</label>'.PHP_EOL |
|
70 | + . '</div>'.PHP_EOL; |
|
71 | 71 | |
72 | 72 | return $buttonContent; |
73 | 73 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | * @throws \Core\Entity\Exception\OutOfBoundsException if the property does not exists. |
73 | 73 | * @since 0.25 |
74 | 74 | */ |
75 | - public function notEmpty($property, array $args=[]); |
|
75 | + public function notEmpty($property, array $args = []); |
|
76 | 76 | |
77 | 77 | /** |
78 | 78 | * Checks, if this entity has a property. |
@@ -74,10 +74,10 @@ discard block |
||
74 | 74 | |
75 | 75 | $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName; |
76 | 76 | |
77 | - if (is_array($inputLabel)){ |
|
78 | - $priority = isset($inputLabel[1])?$inputLabel[1]:0; |
|
77 | + if (is_array($inputLabel)) { |
|
78 | + $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0; |
|
79 | 79 | $inputLabel = $inputLabel[0]; |
80 | - }else{ |
|
80 | + } else { |
|
81 | 81 | $priority = 0; |
82 | 82 | } |
83 | 83 | |
@@ -89,19 +89,19 @@ discard block |
||
89 | 89 | ), |
90 | 90 | ); |
91 | 91 | if (is_bool($value)) { |
92 | - $input['type']= 'Checkbox'; |
|
92 | + $input['type'] = 'Checkbox'; |
|
93 | 93 | $input['attributes']['checked'] = $value; |
94 | 94 | } else { |
95 | 95 | $input['attributes']['value'] = $value; |
96 | 96 | } |
97 | - $this->add($input,['priority'=>$priority]); |
|
97 | + $this->add($input, ['priority'=>$priority]); |
|
98 | 98 | |
99 | 99 | } |
100 | 100 | |
101 | 101 | foreach ($children as $name => $child) { |
102 | 102 | $objectClass = ltrim(get_class($settings), '\\'); |
103 | 103 | $moduleName = substr($objectClass, 0, strpos($objectClass, '\\')); |
104 | - $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset'; |
|
104 | + $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset'; |
|
105 | 105 | |
106 | 106 | if ($this->formManager->has($fieldsetName)) { |
107 | 107 | $fieldset = $this->formManager->get($fieldsetName); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | public function getConfig() |
30 | 30 | { |
31 | - return include __DIR__ . '/config/module.config.php'; |
|
31 | + return include __DIR__.'/config/module.config.php'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | return array( |
43 | 43 | 'Zend\Loader\StandardAutoloader' => array( |
44 | 44 | 'namespaces' => array( |
45 | - __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__, |
|
45 | + __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__, |
|
46 | 46 | ), |
47 | 47 | ), |
48 | 48 | ); |