Completed
Pull Request — develop (#491)
by Mathias
16:00
created
module/Jobs/src/Jobs/Factory/ModuleOptionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
         $jobs_options = isset($config['jobs_options']) ? $config['jobs_options'] : array();
45 45
 
46
-        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' ==  trim($jobs_options['multipostingApprovalMail'])) {
46
+        if (!array_key_exists('multipostingApprovalMail', $jobs_options) || '' == trim($jobs_options['multipostingApprovalMail'])) {
47 47
             $coreOptions = $container->get('Core/Options');
48 48
             $jobs_options['multipostingApprovalMail'] = $coreOptions->getSystemMessageEmail();
49 49
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/Form.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
         
89 89
         $class = $form->getAttribute('class');
90 90
         $class = preg_replace('~\bform-[^ ]+\b~', '', $class);
91
-        $class .= ' ' . $layout;
91
+        $class .= ' '.$layout;
92 92
         
93 93
         $form->setAttribute('class', $class);
94 94
 
95 95
         $formId = $form->getAttribute('id') ?: $form->getName();
96 96
         $formId = preg_replace(
97 97
             array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
98
-            array('-'              , '-'    , ''       ),
98
+            array('-', '-', ''),
99 99
             $formId
100 100
         );
101 101
         $form->setAttribute(
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             if (!$elementId) {
121 121
                 $elementId = preg_replace(
122 122
                     array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
123
-                    array('-'             , '-',     ''),
123
+                    array('-', '-', ''),
124 124
                     $element->getName()
125 125
                 );
126 126
             }
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             }
160 160
         }
161 161
         
162
-        return $this->openTag($form) . $formContent . $this->closeTag();
162
+        return $this->openTag($form).$formContent.$this->closeTag();
163 163
     }
164 164
     
165 165
     /**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 );
188 188
                 
189 189
                 if ($desc = $form->getOption('description', '')) {
190
-                    $descriptionParams=$form->getOption('description_params');
190
+                    $descriptionParams = $form->getOption('description_params');
191 191
                     $translator = $this->getTranslator();
192 192
                     $textDomain = $this->getTranslatorTextDomain();
193 193
                     $desc = $translator->translate($desc, $textDomain);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                     $desc
209 209
                 );
210 210
         } else {
211
-            $formContent = '<div class="form-content">' . $formContent . '</div>';
211
+            $formContent = '<div class="form-content">'.$formContent.'</div>';
212 212
         }
213 213
         
214 214
         $markup = '<div id="form-%s" class="form-container">'
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                 . '</div>';
218 218
         
219 219
         if ($label = $form->getLabel()) {
220
-            $label = '<div class="form-headline"><h3>' . $renderer->translate($label) . '</h3></div>';
220
+            $label = '<div class="form-headline"><h3>'.$renderer->translate($label).'</h3></div>';
221 221
         }
222 222
         
223 223
         return sprintf(
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         if (!$elementId) {
70 70
             $elementId = preg_replace(
71 71
                 array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
72
-                array('-'              , '-'    , ''       ),
72
+                array('-', '-', ''),
73 73
                 $element->getName()
74 74
             );
75 75
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 if (!$elementOrFieldsetId) {
105 105
                     $elementOrFieldsetId = preg_replace(
106 106
                         array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'),
107
-                        array('-'              , '-'    , ''       ),
107
+                        array('-', '-', ''),
108 108
                         $elementOrFieldset->getName()
109 109
                     );
110 110
 
Please login to merge, or discard this patch.
module/Auth/src/Auth/Factory/Listener/ExceptionStrategyFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                 break;
49 49
         }
50 50
 
51
-        $config   = $container->get('Config');
51
+        $config = $container->get('Config');
52 52
 
53 53
         if (isset($config['view_manager'])) {
54 54
             if (isset($config['view_manager']['display_exceptions'])) {
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AttachableEntityTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * @see AttachableEntityInterface::createAttachedEntity()
80 80
      */
81
-    public function createAttachedEntity($entityClass, $values = [], $key=null)
81
+    public function createAttachedEntity($entityClass, $values = [], $key = null)
82 82
     {
83 83
         return $this->getAttachableEntityManager()->createAttachedEntity($entityClass, $values, $key);
84 84
     }
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Snippet.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     private function fromEvent($name, $values)
91 91
     {
92
-        $event  = $this->events->getEvent($name, $this, $values);
92
+        $event = $this->events->getEvent($name, $this, $values);
93 93
         $results = $this->events->triggerEvent($event);
94 94
 
95 95
         $snippets = [];
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             $content = $item['content'];
139 139
 
140 140
             foreach ($values as $key => $val) {
141
-                $content = str_replace('%' . $key . '%', $val, $content);
141
+                $content = str_replace('%'.$key.'%', $val, $content);
142 142
             }
143 143
 
144 144
             return $content;
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/Period.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
         // calculate EndDate - StartDate = X Years.
26 26
         // eg. 4.2 Years
27 27
         
28
-        $days=0;
28
+        $days = 0;
29 29
         foreach ($array as $obj) {
30 30
             $date1 = new \DateTime($obj->getEndDate());
31 31
             $date2 = new \DateTime($obj->getStartDate());
32 32
             $interval = $date1->diff($date2);
33
-            $days+=abs($interval->format('%R%a'));
33
+            $days += abs($interval->format('%R%a'));
34 34
         }
35
-        return round($days/365, 1);
35
+        return round($days / 365, 1);
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/Filter/PropertyToKeywords.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
             $entity = $value;
24 24
             $value = array();
25 25
             foreach ($entity->getSearchableProperties() as $name) {
26
-                $result = $entity->{'get' .$name}();
26
+                $result = $entity->{'get'.$name}();
27 27
                 if (is_array($result)) {
28 28
                     $value = array_merge($value, $result);
29 29
                 } else {
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
         $innerPattern = StringUtils::hasPcreUnicodeSupport()
49 49
                       ? '[^\p{L}]'
50 50
                       : '[^a-z0-9ßäöü ]';
51
-        $pattern      = '~' . $innerPattern . '~isu';
52
-        $stripPattern = '~^' . $innerPattern . '+|' . $innerPattern . '+$~isu';
51
+        $pattern      = '~'.$innerPattern.'~isu';
52
+        $stripPattern = '~^'.$innerPattern.'+|'.$innerPattern.'+$~isu';
53 53
         $parts     = array();
54 54
         $textParts = explode(' ', $string);
55 55
         foreach ($textParts as $part) {
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Element/FileUpload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
     public function prepareElement(FormInterface $form)
146 146
     {
147
-        $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single') . '-file-upload');
147
+        $form->setAttribute('class', ($this->isMultiple() ? 'multi' : 'single').'-file-upload');
148 148
         $form->setAttribute('data-is-empty', null === $this->getValue());
149 149
         parent::prepareElement($form);
150 150
     }
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
         $entityName = $this->getName();
248 248
 
249 249
         try {
250
-            $fileEntity = $object->{"get" . $entityName}();
250
+            $fileEntity = $object->{"get".$entityName}();
251 251
         } catch (\OutOfBoundsException $e) {
252 252
             return null;
253 253
         }
Please login to merge, or discard this patch.