Completed
Push — develop ( 037ef6...a650ad )
by Carsten
06:58
created
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.
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.
public/index.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,14 +13,14 @@  discard block
 block discarded – undo
13 13
 
14 14
 if (php_sapi_name() == 'cli-server') {
15 15
     $route = parse_url(substr($_SERVER["REQUEST_URI"], 1))["path"];
16
-    if (is_file(__DIR__ . '/' . $route)) {
17
-        if(substr($route, -4) == ".php"){
18
-            require __DIR__ . '/' . $route;     // Include requested script files
16
+    if (is_file(__DIR__.'/'.$route)) {
17
+        if (substr($route, -4) == ".php") {
18
+            require __DIR__.'/'.$route; // Include requested script files
19 19
             exit;
20 20
         }
21
-        return false;           // Serve file as is
21
+        return false; // Serve file as is
22 22
     } else {                    // Fallback to index.php
23
-        $_GET["q"] = $route;    // Try to emulate the behaviour of a .htaccess here.
23
+        $_GET["q"] = $route; // Try to emulate the behaviour of a .htaccess here.
24 24
     }
25 25
 }
26 26
 
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 } else {
41 41
     echo '<p>Could not initialize autoloading. This happens, if the dependencies are not installed yet.</p>';
42 42
     echo '<p>Please try to install the dependencies via: </p>';
43
-    echo '<code>cd '. realpath('.') .'<br>./install.sh</code>';
44
-    echo '<p>exit at ' . __FILE__ . ' in line ' . __LINE__ .'</p>';
43
+    echo '<code>cd '.realpath('.').'<br>./install.sh</code>';
44
+    echo '<p>exit at '.__FILE__.' in line '.__LINE__.'</p>';
45 45
     exit;
46 46
 }
47 47
 
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Filter/ChannelPrices.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,15 +73,15 @@
 block discarded – undo
73 73
             if ('yawik' == $channelKey) {
74 74
                 $absoluteDiscount = 100;
75 75
             }
76
-            if ($channel instanceof ChannelOptions && $channel->getPrice('base')>0) {
76
+            if ($channel instanceof ChannelOptions && $channel->getPrice('base') > 0) {
77 77
                 $sum += $channel->getPrice('base');
78 78
                 $amount++;
79 79
             }
80 80
         }
81
-        $discount=1-($amount-1)*13.5/100;
82
-        if ($discount>0) {
83
-            $sum= round($sum * $discount, 2);
81
+        $discount = 1 - ($amount - 1) * 13.5 / 100;
82
+        if ($discount > 0) {
83
+            $sum = round($sum * $discount, 2);
84 84
         }
85
-        return $sum-$absoluteDiscount;
85
+        return $sum - $absoluteDiscount;
86 86
     }
87 87
 }
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Filter/Recipients.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
34 34
      */
35 35
     public function filter($value)
36 36
     {
37
-        if (!$value instanceof Job){
37
+        if (!$value instanceof Job) {
38 38
 
39 39
         }
40
-        $reciptients=[];
40
+        $reciptients = [];
41 41
 
42 42
         return $reciptients;
43 43
     }
Please login to merge, or discard this patch.
module/Orders/config/module.config.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                  * for multiple paths.
24 24
                  * example https://github.com/doctrine/DoctrineORMModule
25 25
                  */
26
-                'paths' => array( __DIR__ . '/../src/Entity'),
26
+                'paths' => array(__DIR__.'/../src/Entity'),
27 27
             ),
28 28
         ],
29 29
     ],
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         'translation_file_patterns' => array(
34 34
             array(
35 35
                 'type'     => 'gettext',
36
-                'base_dir' => __DIR__ . '/../language',
36
+                'base_dir' => __DIR__.'/../language',
37 37
                 'pattern'  => '%s.mo',
38 38
             ),
39 39
         ),
@@ -42,11 +42,11 @@  discard block
 block discarded – undo
42 42
 
43 43
     'event_manager' => [
44 44
 
45
-        'Jobs/Events' => [ 'listeners' => [
46
-            'Orders/Listener/CreateJobOrder' => [ \Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true ],
45
+        'Jobs/Events' => ['listeners' => [
46
+            'Orders/Listener/CreateJobOrder' => [\Jobs\Listener\Events\JobEvent::EVENT_JOB_CREATED, true],
47 47
         ]],
48 48
 
49
-        'Jobs/JobContainer/Events' => [ 'listeners' => [
49
+        'Jobs/JobContainer/Events' => ['listeners' => [
50 50
             '\Orders\Form\Listener\DisableJobInvoiceAddress' => 'DisableElements',
51 51
             'Orders\Form\Listener\InjectInvoiceAddressInJobContainer' => \Core\Form\Event\FormEvent::EVENT_INIT,
52 52
             '\Orders\Form\Listener\ValidateJobInvoiceAddress' => 'ValidateJob',
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             ],
60 60
         ],
61 61
 
62
-        'Core/AdminController/Events' => [ 'listeners' => [
62
+        'Core/AdminController/Events' => ['listeners' => [
63 63
             'Orders/Listener/AdminWidgetProvider' => \Core\Controller\AdminControllerEvent::EVENT_DASHBOARD,
64 64
         ]],
65 65
     ],
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     'view_helper_config' => [
83 83
         'headscript' => [
84 84
             'lang/orders' => [
85
-                [ \Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND' ],
85
+                [\Zend\View\Helper\HeadScript::FILE, 'Orders/js/list.index.js', 'PREPEND'],
86 86
                 'js/bootstrap-dialog.min.js'
87 87
             ],
88 88
         ],
Please login to merge, or discard this patch.
module/Orders/src/Form/InvoiceAddressSettingsFieldset.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * map label of fieldset. You can set the order by using an array [<label>,<priority>]
25 25
      */
26 26
     protected $labelMap = [
27
-        'name'  => [ /*@translate*/ 'Contact Person', -20],
27
+        'name'  => [/*@translate*/ 'Contact Person', -20],
28 28
         'company' => /*@translate*/ 'Company',
29 29
         'street' => /*@translate*/ 'Street',
30 30
         'zipCode' => /*@translate*/ 'Postalcode',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 'attributes' => [
55 55
                     'data-placeholder' => /*@translate*/ 'please select',
56 56
                     'data-allowclear' => 'false',
57
-                    'data-searchbox' => -1,  // hide the search box
57
+                    'data-searchbox' => -1, // hide the search box
58 58
                     'required' => true, // mark label as required
59 59
                 ],
60 60
             ],
Please login to merge, or discard this patch.