Completed
Push — develop ( 39c196...b11cac )
by Carsten
26:33
created
module/Jobs/src/Jobs/Form/Element/StatusSelect.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         if (true === $this->getOption('include_all_option')) {
37 37
             $valueOptions = array_merge([
38 38
                                             'all' => /*@translate*/ 'All',
39
-                                         ], $valueOptions );
39
+                                         ], $valueOptions);
40 40
         }
41 41
 
42 42
         $this->setValueOptions($valueOptions);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $options = parent::getValueOptions();
83 83
 
84 84
         return true === $this->getOption('include_all_option')
85
-               ? array_merge([ 'all' => /*@translate*/ 'All' ], $options)
85
+               ? array_merge(['all' => /*@translate*/ 'All'], $options)
86 86
                : $options;
87 87
     }
88 88
 
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         if (true === $this->getOption('include_all_option')) {
37 37
             $valueOptions = array_merge([
38 38
                                             'all' => /*@translate*/ 'All',
39
-                                         ], $valueOptions );
39
+                                            ], $valueOptions );
40 40
         }
41 41
 
42 42
         $this->setValueOptions($valueOptions);
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/AdminWidgetProvider.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,15 +39,15 @@
 block discarded – undo
39 39
                                      'title' => 'Jobs',
40 40
                                      'data' => [
41 41
                                         /*@translate*/ 'Total jobs' => [
42
-                                            'url' => [ 'lang/admin/jobs', [], true ],
42
+                                            'url' => ['lang/admin/jobs', [], true],
43 43
                                             'value' => $total,
44 44
                                         ],
45 45
                                         /*@translate*/ 'Active jobs' => [
46
-                                             'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ],
46
+                                             'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'active']], true],
47 47
                                              'value' => $active
48 48
                                          ],
49 49
                                         /*@translate*/ 'Pending jobs' => [
50
-                                             'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ],
50
+                                             'url' => ['lang/admin/jobs', [], ['query' => ['status' => 'created']], true],
51 51
                                              'value' => $pending
52 52
                                          ]
53 53
                                      ],
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,21 +36,21 @@
 block discarded – undo
36 36
         $pending = $this->repository->count(['status.name' => StatusInterface::CREATED]);
37 37
 
38 38
         $event->addViewVariables('jobs', [
39
-                                     'title' => 'Jobs',
40
-                                     'data' => [
39
+                                        'title' => 'Jobs',
40
+                                        'data' => [
41 41
                                         /*@translate*/ 'Total jobs' => [
42 42
                                             'url' => [ 'lang/admin/jobs', [], true ],
43 43
                                             'value' => $total,
44 44
                                         ],
45 45
                                         /*@translate*/ 'Active jobs' => [
46
-                                             'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ],
47
-                                             'value' => $active
48
-                                         ],
46
+                                                'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'active' ]], true ],
47
+                                                'value' => $active
48
+                                            ],
49 49
                                         /*@translate*/ 'Pending jobs' => [
50
-                                             'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ],
51
-                                             'value' => $pending
52
-                                         ]
53
-                                     ],
54
-                                 ]);
50
+                                                'url' => [ 'lang/admin/jobs', [], ['query' => [ 'status' => 'created' ]], true ],
51
+                                                'value' => $pending
52
+                                            ]
53
+                                        ],
54
+                                    ]);
55 55
     }
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/config/module.config.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -32,24 +32,24 @@  discard block
 block discarded – undo
32 32
     'log' => array(
33 33
         'Core/Log' => array(
34 34
             'writers' => array(
35
-                 array(
36
-                     'name' => 'stream',
35
+                    array(
36
+                        'name' => 'stream',
37 37
                     'priority' => 1000,
38 38
                     'options' => array(
39
-                         'stream' => __DIR__ .'/../../../log/yawik.log',
39
+                            'stream' => __DIR__ .'/../../../log/yawik.log',
40
+                    ),
40 41
                     ),
41
-                 ),
42 42
             ),
43 43
         ),
44 44
         'Log/Core/Mail' => array(
45 45
             'writers' => array(
46
-                 array(
47
-                     'name' => 'stream',
46
+                    array(
47
+                        'name' => 'stream',
48 48
                     'priority' => 1000,
49 49
                     'options' => array(
50
-                         'stream' => __DIR__ .'/../../../log/mails.log',
50
+                            'stream' => __DIR__ .'/../../../log/mails.log',
51
+                    ),
51 52
                     ),
52
-                 ),
53 53
             ),
54 54
         ),
55 55
         'ErrorLogger' => array(
@@ -234,17 +234,17 @@  discard block
 block discarded – undo
234 234
     // Defines the Core/Navigation.
235 235
     'navigation' => array(
236 236
         'default' => array(
237
-             'home' => array(
238
-                 'label' => /*@translate*/ 'Home',
239
-                 'route' => 'lang',
240
-                 'visible' => false
241
-             ),
242
-             'admin' => array(
243
-                 'label ' => /*@translate*/ 'Admin',
244
-                 'route' => 'lang/admin',
245
-                 'resource' => 'route/lang/admin',
246
-                 'order' => 200,
247
-             ),
237
+                'home' => array(
238
+                    'label' => /*@translate*/ 'Home',
239
+                    'route' => 'lang',
240
+                    'visible' => false
241
+                ),
242
+                'admin' => array(
243
+                    'label ' => /*@translate*/ 'Admin',
244
+                    'route' => 'lang/admin',
245
+                    'resource' => 'route/lang/admin',
246
+                    'order' => 200,
247
+                ),
248 248
         ),
249 249
     ),
250 250
     // Configuration of the controller service manager (Which loads controllers)
Please login to merge, or discard this patch.
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @license   MIT
13 13
  */
14 14
 
15
-$doctrineConfig = include __DIR__ . '/doctrine.config.php';
15
+$doctrineConfig = include __DIR__.'/doctrine.config.php';
16 16
 
17 17
 
18 18
 return array(
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     'doctrine' => $doctrineConfig,
21 21
 
22 22
     'options' => [
23
-        'Core/MailServiceOptions' => [ 'class' => '\Core\Options\MailServiceOptions' ],
23
+        'Core/MailServiceOptions' => ['class' => '\Core\Options\MailServiceOptions'],
24 24
         ],
25 25
     
26 26
     'Core' => array(
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                      'name' => 'stream',
41 41
                     'priority' => 1000,
42 42
                     'options' => array(
43
-                         'stream' => __DIR__ .'/../../../log/yawik.log',
43
+                         'stream' => __DIR__.'/../../../log/yawik.log',
44 44
                     ),
45 45
                  ),
46 46
             ),
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                      'name' => 'stream',
52 52
                     'priority' => 1000,
53 53
                     'options' => array(
54
-                         'stream' => __DIR__ .'/../../../log/mails.log',
54
+                         'stream' => __DIR__.'/../../../log/mails.log',
55 55
                     ),
56 56
                  ),
57 57
             ),
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         'ErrorLogger' => array(
60 60
             'service' => 'Core/ErrorLogger',
61 61
             'config'  => array(
62
-                'stream' => __DIR__ . '/../../../log/error.log',
62
+                'stream' => __DIR__.'/../../../log/error.log',
63 63
                 'log_errors' => true,
64 64
                 'log_exceptions' => true,
65 65
             ),
@@ -221,17 +221,17 @@  discard block
 block discarded – undo
221 221
         'translation_file_patterns' => array(
222 222
             [
223 223
                 'type' => 'gettext',
224
-                'base_dir' => __DIR__ . '/../language',
224
+                'base_dir' => __DIR__.'/../language',
225 225
                 'pattern' => '%s.mo',
226 226
             ],
227 227
             [
228 228
                 'type'     => 'phparray',
229
-                'base_dir' => __DIR__ . '/../language',
229
+                'base_dir' => __DIR__.'/../language',
230 230
                 'pattern' => 'Zend_Validate.%s.php',
231 231
             ],
232 232
             [
233 233
                 'type'     => 'phparray',
234
-                'base_dir' => __DIR__ . '/../language',
234
+                'base_dir' => __DIR__.'/../language',
235 235
                 'pattern' => 'Zend_Captcha.%s.php',
236 236
             ]
237 237
         ),
@@ -300,32 +300,32 @@  discard block
 block discarded – undo
300 300
         'exception_template' => 'error/index',
301 301
         // Map template to files. Speeds up the lookup through the template stack.
302 302
         'template_map' => array(
303
-            'noscript-notice' => __DIR__ . '/../view/layout/_noscript-notice.phtml',
304
-            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
305
-            'error/404' => __DIR__ . '/../view/error/404.phtml',
306
-            'error/403' => __DIR__ . '/../view/error/403.phtml',
307
-            'error/index' => __DIR__ . '/../view/error/index.phtml',
308
-            'main-navigation' => __DIR__ . '/../view/partial/main-navigation.phtml',
309
-            'pagination-control' => __DIR__ . '/../view/partial/pagination-control.phtml',
310
-            'core/loading-popup' => __DIR__ . '/../view/partial/loading-popup.phtml',
311
-            'core/notifications' => __DIR__ . '/../view/partial/notifications.phtml',
312
-            'form/core/buttons' => __DIR__ . '/../view/form/buttons.phtml',
313
-            'core/social-buttons' => __DIR__ . '/../view/partial/social-buttons.phtml',
314
-            'form/core/privacy' => __DIR__ . '/../view/form/privacy.phtml',
315
-            'core/form/permissions-fieldset' => __DIR__ . '/../view/form/permissions-fieldset.phtml',
316
-            'core/form/permissions-collection' => __DIR__ . '/../view/form/permissions-collection.phtml',
317
-            'core/form/container-view' => __DIR__ . '/../view/form/container.view.phtml',
318
-            'core/form/tree-manage.view' => __DIR__ . '/../view/form/tree-manage.view.phtml',
319
-            'core/form/tree-manage.form' => __DIR__ . '/../view/form/tree-manage.form.phtml',
320
-            'core/form/tree-add-item' => __DIR__ . '/../view/form/tree-add-item.phtml',
321
-            'mail/header' =>  __DIR__ . '/../view/mail/header.phtml',
322
-            'mail/footer' =>  __DIR__ . '/../view/mail/footer.phtml',
323
-            'mail/footer.en' =>  __DIR__ . '/../view/mail/footer.en.phtml',
303
+            'noscript-notice' => __DIR__.'/../view/layout/_noscript-notice.phtml',
304
+            'layout/layout' => __DIR__.'/../view/layout/layout.phtml',
305
+            'error/404' => __DIR__.'/../view/error/404.phtml',
306
+            'error/403' => __DIR__.'/../view/error/403.phtml',
307
+            'error/index' => __DIR__.'/../view/error/index.phtml',
308
+            'main-navigation' => __DIR__.'/../view/partial/main-navigation.phtml',
309
+            'pagination-control' => __DIR__.'/../view/partial/pagination-control.phtml',
310
+            'core/loading-popup' => __DIR__.'/../view/partial/loading-popup.phtml',
311
+            'core/notifications' => __DIR__.'/../view/partial/notifications.phtml',
312
+            'form/core/buttons' => __DIR__.'/../view/form/buttons.phtml',
313
+            'core/social-buttons' => __DIR__.'/../view/partial/social-buttons.phtml',
314
+            'form/core/privacy' => __DIR__.'/../view/form/privacy.phtml',
315
+            'core/form/permissions-fieldset' => __DIR__.'/../view/form/permissions-fieldset.phtml',
316
+            'core/form/permissions-collection' => __DIR__.'/../view/form/permissions-collection.phtml',
317
+            'core/form/container-view' => __DIR__.'/../view/form/container.view.phtml',
318
+            'core/form/tree-manage.view' => __DIR__.'/../view/form/tree-manage.view.phtml',
319
+            'core/form/tree-manage.form' => __DIR__.'/../view/form/tree-manage.form.phtml',
320
+            'core/form/tree-add-item' => __DIR__.'/../view/form/tree-add-item.phtml',
321
+            'mail/header' =>  __DIR__.'/../view/mail/header.phtml',
322
+            'mail/footer' =>  __DIR__.'/../view/mail/footer.phtml',
323
+            'mail/footer.en' =>  __DIR__.'/../view/mail/footer.en.phtml',
324 324
             //'startpage' => __DIR__ . '/../view/layout/startpage.phtml',
325 325
         ),
326 326
         // Where to look for view templates not mapped above
327 327
         'template_path_stack' => array(
328
-            __DIR__ . '/../view',
328
+            __DIR__.'/../view',
329 329
         ),
330 330
     ),
331 331
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Orders/src/Entity/InvoiceAddress.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 
16 16
 /**
17 17
  *
18
-
19 18
  */
20 19
 interface FileInterface extends
21 20
     IdentifiableEntityInterface,
Please login to merge, or discard this patch.
module/Geo/config/module.config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
                  * for multiple paths.
23 23
                  * example https://github.com/doctrine/DoctrineORMModule
24 24
                  */
25
-                'paths' => array( __DIR__ . '/../src/Geo/Entity'),
25
+                'paths' => array(__DIR__.'/../src/Geo/Entity'),
26 26
             ),
27 27
         ),
28 28
         'eventmanager' => array(
@@ -84,13 +84,13 @@  discard block
 block discarded – undo
84 84
     
85 85
         // Map template to files. Speeds up the lookup through the template stack.
86 86
         'template_map' => array(
87
-            'geo/form/GeoText' => __DIR__ . '/../view/form/geotext.phtml',
88
-            'geo/form/GeoHorizontal' => __DIR__ . '/../view/form/geo-horizontal.phtml',
87
+            'geo/form/GeoText' => __DIR__.'/../view/form/geotext.phtml',
88
+            'geo/form/GeoHorizontal' => __DIR__.'/../view/form/geo-horizontal.phtml',
89 89
         ),
90 90
     
91 91
         // Where to look for view templates not mapped above
92 92
         'template_path_stack' => array(
93
-            __DIR__ . '/../view',
93
+            __DIR__.'/../view',
94 94
         ),
95 95
     ),
96 96
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/TemplateValues.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @var String
36 36
      * @ODM\Field(type="string")
37 37
      */
38
-    protected $qualifications='';
38
+    protected $qualifications = '';
39 39
 
40 40
     /**
41 41
      * Requirements field of the job template
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @var String
44 44
      * @ODM\Field(type="string")
45 45
      */
46
-    protected $requirements='';
46
+    protected $requirements = '';
47 47
 
48 48
     /**
49 49
      * Benefits field of the job template
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @var String
52 52
      * @ODM\Field(type="string")
53 53
      */
54
-    protected $benefits='';
54
+    protected $benefits = '';
55 55
 
56 56
     /**
57 57
      * Job title field of the job template
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @var String
60 60
      * @ODM\Field(type="string")
61 61
      */
62
-    protected $title='';
62
+    protected $title = '';
63 63
 
64 64
     /**
65 65
      * Company description field of the job template
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @var String
68 68
      * @ODM\Field(type="string")
69 69
      */
70
-    protected $description='';
70
+    protected $description = '';
71 71
 
72 72
     /**
73 73
      * language of the job template values. Must be a valid ISO 639-1 code
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      * @var String
76 76
      * @ODM\Field(type="string")
77 77
      */
78
-    protected $language='en';
78
+    protected $language = 'en';
79 79
 
80 80
     /**
81 81
      * free values (currently not in use)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function setQualifications($qualifications)
94 94
     {
95
-        $this->qualifications= (string) $qualifications;
95
+        $this->qualifications = (string) $qualifications;
96 96
         return $this;
97 97
     }
98 98
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function setRequirements($requirements)
116 116
     {
117
-        $this->requirements=(string) $requirements;
117
+        $this->requirements = (string) $requirements;
118 118
         return $this;
119 119
     }
120 120
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function setBenefits($benefits)
138 138
     {
139
-        $this->benefits=(string) $benefits;
139
+        $this->benefits = (string) $benefits;
140 140
         return $this;
141 141
     }
142 142
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function setTitle($title)
160 160
     {
161
-        $this->title=(string) $title;
161
+        $this->title = (string) $title;
162 162
         return $this;
163 163
     }
164 164
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      */
181 181
     public function setDescription($description)
182 182
     {
183
-        $this->description=(string) $description;
183
+        $this->description = (string) $description;
184 184
         return $this;
185 185
     }
186 186
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function setLanguage($language)
204 204
     {
205
-        $this->language=(string) $language;
205
+        $this->language = (string) $language;
206 206
         return $this;
207 207
     }
208 208
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
     public function __get($property)
249 249
     {
250
-        $getter = "get" . ucfirst($property);
250
+        $getter = "get".ucfirst($property);
251 251
         if (method_exists($this, $getter)) {
252 252
             return $this->$getter();
253 253
         }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
     public function __set($property, $value)
263 263
     {
264 264
         //$this->checkWriteAccess();
265
-        $setter = 'set' . ucfirst($property);
265
+        $setter = 'set'.ucfirst($property);
266 266
         if (method_exists($this, $setter)) {
267 267
             $this->$setter($value);
268 268
             return;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
     /**
176 176
      * Sets the company description of the job template
177 177
      *
178
-     * @param $description
178
+     * @param string $description
179 179
      * @return $this
180 180
      */
181 181
     public function setDescription($description)
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Entity/Status.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function __construct($status = self::CREATED)
54 54
     {
55
-        $constant = 'self::' . strtoupper($status);
55
+        $constant = 'self::'.strtoupper($status);
56 56
         if (!defined($constant)) {
57
-            throw new \DomainException('Unknown status: ' . $status);
57
+            throw new \DomainException('Unknown status: '.$status);
58 58
         }
59
-        $this->name=constant($constant);
60
-        $this->order=$this->getOrder();
59
+        $this->name = constant($constant);
60
+        $this->order = $this->getOrder();
61 61
     }
62 62
 
63 63
     /**
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getName()
68 68
     {
69
-        return isset($this->name)?$this->name:'';
69
+        return isset($this->name) ? $this->name : '';
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/OrganizationSelect.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
64 64
             $imageUrl = $image ? $image->getUri() : '';
65 65
 
66 66
             $options[$org->getId()] = $name . '|'
67
-                                      . $contact->getCity() . '|'
68
-                                      . $contact->getStreet() . '|'
69
-                                      . $contact->getHouseNumber() . '|'
70
-                                      . $imageUrl;
67
+                                        . $contact->getCity() . '|'
68
+                                        . $contact->getStreet() . '|'
69
+                                        . $contact->getHouseNumber() . '|'
70
+                                        . $imageUrl;
71 71
         }
72 72
 
73 73
         return $this->setValueOptions($options);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
             $image    = $org->getImage();
64 64
             $imageUrl = $image ? $image->getUri() : '';
65 65
 
66
-            $options[$org->getId()] = $name . '|'
67
-                                      . $contact->getCity() . '|'
68
-                                      . $contact->getStreet() . '|'
69
-                                      . $contact->getHouseNumber() . '|'
66
+            $options[$org->getId()] = $name.'|'
67
+                                      . $contact->getCity().'|'
68
+                                      . $contact->getStreet().'|'
69
+                                      . $contact->getHouseNumber().'|'
70 70
                                       . $imageUrl;
71 71
         }
72 72
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/View/Helper/PreviewLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function render(ElementInterface $element, $options = null)
37 37
     {
38
-        $content = '<iframe src="' . $element->getValue() . '" name="preview" style="width:100%; height:800px;"></iframe>';
38
+        $content = '<iframe src="'.$element->getValue().'" name="preview" style="width:100%; height:800px;"></iframe>';
39 39
         return $content;
40 40
     }
41 41
 }
Please login to merge, or discard this patch.