Completed
Pull Request — develop (#241)
by ANTHONIUS
07:36
created
module/Applications/Module.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getConfig()
51 51
     {
52
-        return ModuleConfigLoader::load(__DIR__ . '/config');
52
+        return ModuleConfigLoader::load(__DIR__.'/config');
53 53
     }
54 54
 
55 55
     /**
@@ -62,8 +62,8 @@  discard block
 block discarded – undo
62 62
         return array(
63 63
             'Zend\Loader\StandardAutoloader' => array(
64 64
                 'namespaces' => array(
65
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
66
-                    __NAMESPACE__ . 'Test' => __DIR__ . '/test/' . __NAMESPACE__ .'Test',
65
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
66
+                    __NAMESPACE__.'Test' => __DIR__.'/test/'.__NAMESPACE__.'Test',
67 67
                 ),
68 68
             ),
69 69
         );
Please login to merge, or discard this patch.
module/Pdf/config/module.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     ),
9 9
     'view_manager' => array(
10 10
         'template_map' => array(
11
-            'pdf/application/details/button' => __DIR__ . '/../view/applicationDetailsButton.phtml',
11
+            'pdf/application/details/button' => __DIR__.'/../view/applicationDetailsButton.phtml',
12 12
         )
13 13
     ),
14 14
 );
Please login to merge, or discard this patch.
module/Pdf/Module.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getConfig()
51 51
     {
52
-        return ModuleConfigLoader::load(__DIR__ . '/config');
52
+        return ModuleConfigLoader::load(__DIR__.'/config');
53 53
     }
54 54
     
55 55
     public function setServiceManager(ServiceManager $serviceManager)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $eventManager->getSharedManager()->attach(
65 65
             'Applications',
66 66
             'application.detail.actionbuttons',
67
-            function ($event) {
67
+            function($event) {
68 68
                 return 'pdf/application/details/button';
69 69
             }
70 70
         );
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
     {
145 145
         $file = $e->getLastFileObject();
146 146
         // assume it is of the class Core\Entity\FileEntity
147
-        $return = '<div class="col-md-3"><a href="#attachment_' . $file->getId() . '">' . $file->getName() . '</a></div>' . PHP_EOL
148
-                . '<div class="col-md-3">' . $file->getType() . '</div>'
149
-                . '<div class="col-md-3">' . $file->prettySize . '</div>';
147
+        $return = '<div class="col-md-3"><a href="#attachment_'.$file->getId().'">'.$file->getName().'</a></div>'.PHP_EOL
148
+                . '<div class="col-md-3">'.$file->getType().'</div>'
149
+                . '<div class="col-md-3">'.$file->prettySize.'</div>';
150 150
         /*
151 151
          * this snippet was for direct inserting an image into the PDF
152 152
         if ($file && $file instanceOf FileEntity && 0 === strpos($file->getType(), 'image')) {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         
247 247
         // the handles are for temporary files
248 248
         error_reporting(0);
249
-        foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS ) as $render) {
249
+        foreach (array(self::RENDER_FULL, self::RENDER_WITHOUT_PDF, self::RENDER_WITHOUT_ATTACHMENTS) as $render) {
250 250
             $handles = array();
251 251
             try {
252 252
                 $pdf = new extern\mPDFderive();
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
                     if (is_array($this->appendImage) && !empty($this->appendImage)) {
261 261
                         foreach ($this->appendImage as $imageAttachment) {
262 262
                             $content = $imageAttachment->getContent();
263
-                            $url = 'data:image/' . $imageAttachment->getType() . ';base64,' . base64_encode($content);
264
-                            $html = '<a name="attachment_' . $imageAttachment->getId() . '"><img src="' . $url . '" /><br /></a>';
263
+                            $url = 'data:image/'.$imageAttachment->getType().';base64,'.base64_encode($content);
264
+                            $html = '<a name="attachment_'.$imageAttachment->getId().'"><img src="'.$url.'" /><br /></a>';
265 265
                             $pdf->WriteHTML($html);
266 266
                         }
267 267
                     }
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                     $pagecount = $pdf->SetSourceFile($filename);
289 289
                     for ($pages = 0; $pages < $pagecount; $pages++) {
290 290
                         $pdf->AddPage();
291
-                        $pdf->WriteHTML(' pages: ' . $pagecount);
291
+                        $pdf->WriteHTML(' pages: '.$pagecount);
292 292
                         $tx = $pdf->ImportPage($pages + 1);
293 293
                         $pdf->UseTemplate($tx);
294 294
                     }
@@ -325,18 +325,18 @@  discard block
 block discarded – undo
325 325
             $defaultSuffix = $viewTemplatePathStack->getDefaultSuffix();
326 326
             if (pathinfo($name, PATHINFO_EXTENSION) != $defaultSuffix) {
327 327
                 ;
328
-                $name .= '.pdf.' . $defaultSuffix;
328
+                $name .= '.pdf.'.$defaultSuffix;
329 329
             } else {
330 330
                 // TODO: replace Filename by Filename for PDF
331 331
             }
332 332
 
333 333
             foreach ($paths as $path) {
334
-                $file = new SplFileInfo($path . $name);
334
+                $file = new SplFileInfo($path.$name);
335 335
                 if ($file->isReadable()) {
336 336
                     // Found! Return it.
337 337
                     if (($filePath = $file->getRealPath()) === false && substr($path, 0, 7) === 'phar://') {
338 338
                         // Do not try to expand phar paths (realpath + phars == fail)
339
-                        $filePath = $path . $name;
339
+                        $filePath = $path.$name;
340 340
                         if (!file_exists($filePath)) {
341 341
                             break;
342 342
                         }
Please login to merge, or discard this patch.
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.