Completed
Pull Request — develop (#235)
by ANTHONIUS
07:49
created
module/Orders/src/Form/InvoiceAddress.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
     {
54 54
         parent::setParam($key, $value);
55 55
 
56
-        $events  = $this->getEventManager();
57
-        $events->trigger(FormEvent::EVENT_SET_PARAM, $this, [ 'param_name' => $key, 'param_value' => $value ]);
56
+        $events = $this->getEventManager();
57
+        $events->trigger(FormEvent::EVENT_SET_PARAM, $this, ['param_name' => $key, 'param_value' => $value]);
58 58
 
59 59
         return $this;
60 60
     }
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $valid = parent::isValid();
66 66
 
67 67
         $events = $this->getEventManager();
68
-        $events->trigger(FormEvent::EVENT_VALIDATE, $this, [ 'isValid' => $valid ]);
68
+        $events->trigger(FormEvent::EVENT_VALIDATE, $this, ['isValid' => $valid]);
69 69
 
70 70
         return $valid;
71 71
     }
Please login to merge, or discard this patch.
module/Orders/src/Form/Listener/DisableJobInvoiceAddress.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
         /* @var \Orders\Form\InvoiceAddress $invoiceAddress */
36 36
         $invoiceAddress = $event->getForm()->getForm('invoice.invoiceAddress');
37 37
         $invoiceAddress->setDisplayMode(SummaryFormInterface::DISPLAY_SUMMARY);
38
-        foreach($invoiceAddress->getBaseFieldset() as $element) {
38
+        foreach ($invoiceAddress->getBaseFieldset() as $element) {
39 39
             $element->setAttribute('disabled', true);
40 40
         }
41 41
     }
Please login to merge, or discard this patch.
module/Auth/src/Auth/Repository/Filter/PaginationSearchUsers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
 
22 22
     protected $sortPropertiesMap = [
23
-        'name' => [ 'info.lastName', 'info.firstName', 'info.email' ],
23
+        'name' => ['info.lastName', 'info.firstName', 'info.email'],
24 24
     ];
25 25
 
26 26
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/AdminControllerEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->models = new PriorityList();
35 35
     }
36 36
 
37
-    public function addViewModel($name, $model, $priority=0)
37
+    public function addViewModel($name, $model, $priority = 0)
38 38
     {
39 39
         $this->models->insert($name, $model, $priority);
40 40
 
Please login to merge, or discard this patch.
module/Jobs/config/router.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 // Routes
13 13
 return array('router' => array('routes' => array('lang' => array('child_routes' => array(
14
-    'admin' => [ 'child_routes' => [
14
+    'admin' => ['child_routes' => [
15 15
         'jobs' => [
16 16
             'type' => 'Segment',
17 17
             'options' => [
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Form/Element/StatusSelect.php 1 patch
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.
module/Jobs/src/Jobs/Listener/Events/JobEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,13 +34,13 @@  discard block
 block discarded – undo
34 34
      * Event is fired when a users has created a new job opening and accepted the
35 35
      * terms and conditions
36 36
      */
37
-    const EVENT_JOB_CREATED   = 'job.created';
37
+    const EVENT_JOB_CREATED = 'job.created';
38 38
 
39 39
     /**
40 40
      * Event is fired when the owner of the YAWIK installation has accepted the job
41 41
      * opening
42 42
      */
43
-    const EVENT_JOB_ACCEPTED   = 'job.accepted';
43
+    const EVENT_JOB_ACCEPTED = 'job.accepted';
44 44
 
45 45
     /**
46 46
      * Event is fired, when the owner of the YAWIK installation has rejected the job
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * get all available names for publishing
56 56
      */
57
-    const PORTAL_AVAIL_NAME    = 'portal.availname';
57
+    const PORTAL_AVAIL_NAME = 'portal.availname';
58 58
 
59 59
     /**
60 60
      * @var portals to be published
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Listener/AdminWidgetProvider.php 1 patch
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.
config/config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 $env = getenv('APPLICATION_ENV') ?: 'production';
14 14
 
15
-if (!file_exists(__DIR__ . '/autoload/yawik.config.global.php')) {
15
+if (!file_exists(__DIR__.'/autoload/yawik.config.global.php')) {
16 16
     $modules = array('Install');
17 17
 } else {
18 18
     $modules = array(
@@ -34,12 +34,12 @@  discard block
 block discarded – undo
34 34
         // kann und über Server-Variablen oder ähnlichen steuern kann
35 35
         $allModules = False;
36 36
     }
37
-    foreach (glob(__DIR__ . '/autoload/*.module.php') as $moduleFile) {
37
+    foreach (glob(__DIR__.'/autoload/*.module.php') as $moduleFile) {
38 38
         $addModules = require $moduleFile;
39 39
         foreach ($addModules as $addModule) {
40 40
             if (strpos($addModule, '-') === 0) {
41
-                $remove = substr($addModule,1);
42
-                $modules = array_filter($modules, function ($elem) use ($remove) { return strcasecmp($elem,$remove); });
41
+                $remove = substr($addModule, 1);
42
+                $modules = array_filter($modules, function($elem) use ($remove) { return strcasecmp($elem, $remove); });
43 43
             }
44 44
             else {
45 45
                 if (!in_array($addModule, $modules)) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     ),
93 93
 );
94 94
 
95
-$envConfigFile = __DIR__ . '/config.' . $env . '.php';
95
+$envConfigFile = __DIR__.'/config.'.$env.'.php';
96 96
 if (file_exists($envConfigFile)) {
97 97
     if (is_readable($envConfigFile)) {
98 98
         $envConfig = include $envConfigFile;
Please login to merge, or discard this patch.