Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Settings/config/module.config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         'translation_file_patterns' => array(
38 38
             array(
39 39
                 'type' => 'gettext',
40
-                'base_dir' => __DIR__ . '/../language',
40
+                'base_dir' => __DIR__.'/../language',
41 41
                 'pattern' => '%s.mo',
42 42
             ),
43 43
         ),
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         
101 101
         // Where to look for view templates not mapped above
102 102
         'template_path_stack' => array(
103
-            __DIR__ . '/../view',
103
+            __DIR__.'/../view',
104 104
         ),
105 105
         ),
106 106
     
Please login to merge, or discard this patch.
module/Settings/src/Settings/Entity/SettingsContainer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function __get($property)
140 140
     {
141
-        $getter = "get" . ucfirst($property);
141
+        $getter = "get".ucfirst($property);
142 142
         if (method_exists($this, $getter)) {
143 143
             return $this->$getter();
144 144
         }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $this->checkWriteAccess();
161 161
         
162
-        $setter = 'set' . ucfirst($property);
162
+        $setter = 'set'.ucfirst($property);
163 163
         if (method_exists($this, $setter)) {
164 164
             $this->$setter($value);
165 165
             return;
Please login to merge, or discard this patch.
module/Settings/src/Settings/Entity/Hydrator/SettingsEntityHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         parent::__construct();
24 24
         $this->addFilter(
25 25
             'ignoreInternalProperties',
26
-            function ($property) {
26
+            function($property) {
27 27
                 return "_" != $property{0};
28 28
             }
29 29
         );
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             if (!$this->filterComposite->filter($propertyName)) {
44 44
                 continue;
45 45
             }
46
-            $getter = 'get' . ucfirst($propertyName);
46
+            $getter = 'get'.ucfirst($propertyName);
47 47
             $value = method_exists($object, $getter)
48 48
                    ? $object->$getter()
49 49
                    : $property->getValue($object);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         foreach ($data as $key => $value) {
66 66
             if (isset($reflProperties[$key])) {
67 67
                 $value  = $this->hydrateValue($key, $value);
68
-                $setter = 'set' . ucfirst($key);
68
+                $setter = 'set'.ucfirst($key);
69 69
                 if (method_exists($object, $setter)) {
70 70
                     $object->$setter($value);
71 71
                 } else {
Please login to merge, or discard this patch.
src/Settings/Form/View/Helper/FormDisableElementsCapableFormSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
         $headscript->appendFile($basepath('Settings/js/forms.decfs.js'));
38 38
 
39
-        return '<ul class="disable-elements-list" id="' . $element->getAttribute('id') . '-list"' . '>'
39
+        return '<ul class="disable-elements-list" id="'.$element->getAttribute('id').'-list"'.'>'
40 40
                . $this->renderCheckboxes($element->getCheckboxes())
41 41
                . '</ul>';
42 42
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
                     unset($boxes['__all__']);
61 61
                 }
62 62
 
63
-                $markup .= '<ul class="disable-elements">' . $this->renderCheckboxes($boxes) . '</ul>';
63
+                $markup .= '<ul class="disable-elements">'.$this->renderCheckboxes($boxes).'</ul>';
64 64
             } else {
65 65
                 $markup .= $this->renderCheckbox($boxes);
66 66
             }
@@ -82,12 +82,12 @@  discard block
 block discarded – undo
82 82
         /* @var $renderer \Zend\View\Renderer\PhpRenderer */
83 83
         $renderer = $this->getView();
84 84
         if (null !== $class) {
85
-            $box->setAttribute('class', $box->getAttribute('class') . ' ' . $class);
85
+            $box->setAttribute('class', $box->getAttribute('class').' '.$class);
86 86
         }
87 87
         $markup = $renderer->formCheckbox($box);
88 88
         if ($desc = $box->getOption('description')) {
89 89
             $desc = $this->getTranslator()->translate($desc, $this->getTranslatorTextDomain());
90
-            $markup .= '<div class="alert alert-info"><p>' . $desc . '</p></div>';
90
+            $markup .= '<div class="alert alert-info"><p>'.$desc.'</p></div>';
91 91
         }
92 92
         return $markup;
93 93
     }
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/SettingsFieldset.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 
76 76
             $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName;
77 77
 
78
-            if (is_array($inputLabel)){
79
-                $priority = isset($inputLabel[1])?$inputLabel[1]:0;
78
+            if (is_array($inputLabel)) {
79
+                $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0;
80 80
                 $inputLabel = $inputLabel[0];
81
-            }else{
81
+            } else {
82 82
                 $priority = 0;
83 83
             }
84 84
 
@@ -90,19 +90,19 @@  discard block
 block discarded – undo
90 90
                     ),
91 91
             );
92 92
             if (is_bool($value)) {
93
-                $input['type']= 'Checkbox';
93
+                $input['type'] = 'Checkbox';
94 94
                 $input['attributes']['checked'] = $value;
95 95
             } else {
96 96
                 $input['attributes']['value'] = $value;
97 97
             }
98
-            $this->add($input,['priority'=>$priority]);
98
+            $this->add($input, ['priority'=>$priority]);
99 99
             
100 100
         }
101 101
         
102 102
         foreach ($children as $name => $child) {
103 103
             $objectClass  = ltrim(get_class($settings), '\\');
104 104
             $moduleName   = substr($objectClass, 0, strpos($objectClass, '\\'));
105
-            $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset';
105
+            $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset';
106 106
             
107 107
             if ($this->forms->has($fieldsetName)) {
108 108
                 $fieldset = $this->forms->get($fieldsetName);
Please login to merge, or discard this patch.
Settings/src/Settings/Form/Element/DisableElementsCapableFormSettings.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
                 $this->prepareCheckboxes($box, $prefix);
196 196
             } else {
197 197
                 /* @var $box Checkbox */
198
-                $box->setName($prefix . $box->getName());
198
+                $box->setName($prefix.$box->getName());
199 199
             }
200 200
         }
201 201
     }
@@ -232,10 +232,10 @@  discard block
 block discarded – undo
232 232
         foreach ($form as $element) {
233 233
             /* @var $element \Zend\Form\ElementInterface|DisableElementsCapableInterface|DisableCapableInterface */
234 234
             $name = $element->getName();
235
-            $elementName = $prefix . '[' . $element->getName() . ']';
235
+            $elementName = $prefix.'['.$element->getName().']';
236 236
             $options = $element->getOption('disable_capable');
237 237
             $boxOptions = array(
238
-                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name),
238
+                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name),
239 239
                 'description' => isset($options['description']) ? $options['description']
240 240
                         : 'Toggle availability of this element in the form.',
241 241
             );
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                     $return[$name] = $this->buildCheckboxes($element, $elementName);
246 246
                 }
247 247
                 if ($element->isDisableCapable()) {
248
-                    $box = $this->createCheckbox($elementName . '[__all__]', $boxOptions);
248
+                    $box = $this->createCheckbox($elementName.'[__all__]', $boxOptions);
249 249
                     $box->setAttribute('checked', true);
250 250
                     $return[$name]['__all__'] = $box;
251 251
                 }
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/AbstractSettingsForm.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         }
57 57
         $this->setAttribute('method', 'post');
58 58
         $object = $this->getObject();
59
-        $fieldsetName = $object->getModuleName() . '/SettingsFieldset';
59
+        $fieldsetName = $object->getModuleName().'/SettingsFieldset';
60 60
         
61 61
         if ($this->forms->has($fieldsetName)) {
62 62
             $fieldset = $this->forms->get($fieldsetName);
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         $this->add($fieldset);
73 73
         
74 74
         $this->add($this->forms->get('DefaultButtonsFieldset'));
75
-        $this->isBuild=true;
75
+        $this->isBuild = true;
76 76
     }
77 77
         
78 78
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     
91 91
     public function setName($name)
92 92
     {
93
-        parent::setName(strtolower($name) . '-settings');
93
+        parent::setName(strtolower($name).'-settings');
94 94
         $urlHelper = $this->forms->getServiceLocator()
95 95
                      ->get('ViewHelperManager')
96 96
                      ->get('url');
Please login to merge, or discard this patch.
module/Settings/src/Settings/Controller/IndexController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $mvcEvent->setParam('__settings_active_module', $moduleName);
54 54
         
55 55
         $formManager = $this->getServiceLocator()->get('FormElementManager');
56
-        $formName = $moduleName . '/SettingsForm';
56
+        $formName = $moduleName.'/SettingsForm';
57 57
         if (!$formManager->has($formName)) {
58 58
             $formName = "Settings/Form";
59 59
         }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $valid   = $form->isValid();
76 76
             $partial = $services->get('viewhelpermanager')->get('partial');
77 77
             $text    = $valid
78
-                     ?  /*@translate*/'Changes successfully saved'
78
+                     ? /*@translate*/'Changes successfully saved'
79 79
                      :  /*@translate*/'Changes could not be saved';
80 80
 
81 81
             $vars = array();
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             return new JsonModel($vars);
96 96
         }
97 97
 
98
-        $vars['form']=$form;
98
+        $vars['form'] = $form;
99 99
         return $vars;
100 100
     }
101 101
 }
Please login to merge, or discard this patch.
module/Settings/Module.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function getConfig()
46 46
     {
47
-        return include __DIR__ . '/config/module.config.php';
47
+        return include __DIR__.'/config/module.config.php';
48 48
     }
49 49
 
50 50
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         return array(
58 58
             'Zend\Loader\StandardAutoloader' => array(
59 59
                 'namespaces' => array(
60
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
60
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
61 61
                 ),
62 62
             ),
63 63
         );
Please login to merge, or discard this patch.