Completed
Pull Request — develop (#353)
by ANTHONIUS
06:14
created
module/Core/src/Core/Entity/Tree/Node.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 
145 145
     public function getValueWithParents($withRoot = false)
146 146
     {
147
-        $parts = [ $this->getValue() ];
147
+        $parts = [$this->getValue()];
148 148
         $item = $this;
149 149
 
150 150
         while ($item = $item->getParent()) {
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/PaginationBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         }
71 71
 
72 72
         if (!is_array($stack)) {
73
-            throw new \InvalidArgumentException('Expected argument to be of type array, but received ' . gettype($stack));
73
+            throw new \InvalidArgumentException('Expected argument to be of type array, but received '.gettype($stack));
74 74
         }
75 75
 
76 76
         $stack = array_intersect_key($stack, ['params' => true, 'form' => true, 'paginator' => true]);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      *
144 144
      * @return self
145 145
      */
146
-    public function params($namespace, $defaults = [ 'page' => 1 ])
146
+    public function params($namespace, $defaults = ['page' => 1])
147 147
     {
148 148
         $this->stack['params'] = [$namespace, $defaults];
149 149
         return $this;
Please login to merge, or discard this patch.
module/Core/src/Core/View/Helper/LanguageSwitcher.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
         $partial = $options['partial'];
49 49
 
50 50
 
51
-        $variables=[];
51
+        $variables = [];
52 52
 
53 53
         return $view->partial($partial, $variables);
54 54
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Form/View/Helper/FormEditor.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @var string
45 45
      */
46
-    protected $language="de";
46
+    protected $language = "de";
47 47
 
48 48
     /**
49 49
      * @var
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function render(ElementInterface $element)
59 59
     {
60
-        $name   = $element->getName();
60
+        $name = $element->getName();
61 61
         if (empty($name) && $name !== 0) {
62 62
             throw new \DomainException(
63 63
                 sprintf(
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
         $headscript->prependFile($basepath('/assets/jquery/jquery.min.js'));
79 79
 
80 80
         $headscript->offsetSetScript(
81
-            '1000_tinymce_' . $this->getTheme(),
81
+            '1000_tinymce_'.$this->getTheme(),
82 82
             '
83 83
             $(document).ready(function() {
84
-            tinyMCE.init({' . $this->additionalOptions() . ',
84
+            tinyMCE.init({' . $this->additionalOptions().',
85 85
                  setup:  function(editor) {
86 86
                     setPlaceHolder = function(editor, show) {
87 87
                         placeHolder = $("#placeholder-" + editor.id);
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
         }
128 128
         if (is_string($content)) {
129 129
 
130
-            $class = array_key_exists('class', $attributes)?$attributes['class']:'';
131
-            $class .= (empty($class)?:' ') . ' tinymce_' . $this->getTheme();
130
+            $class = array_key_exists('class', $attributes) ? $attributes['class'] : '';
131
+            $class .= (empty($class) ?: ' ').' tinymce_'.$this->getTheme();
132 132
             $attributes['class'] = $class;
133 133
             $placeHolder = '';
134 134
             $elementOptions = $element->getOptions();
135 135
             if (array_key_exists('placeholder', $elementOptions) && !empty($elementOptions['placeholder'])) {
136
-                $placeHolder = '<div id="placeholder-' . $name . '" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;' .
137
-                               (empty($content)?'':'display:none;') .
138
-                               '">' . $this->translator->translate($elementOptions['placeholder']) . '</div>';
136
+                $placeHolder = '<div id="placeholder-'.$name.'" style="border: 0 none; position: relative; top: 0ex; left: 10px; color: #aaa; height: 0px; overflow: visible;'.
137
+                               (empty($content) ? '' : 'display:none;').
138
+                               '">'.$this->translator->translate($elementOptions['placeholder']).'</div>';
139 139
             }
140 140
             return
141 141
                 $placeHolder
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 
163 163
     protected function additionalOptions()
164 164
     {
165
-        $str = json_encode($this->options, ~JSON_HEX_QUOT & ~JSON_FORCE_OBJECT  );
166
-        $str = preg_replace('/"([a-zA-Z_]+[a-zA-Z0-9_]*)":/','$1:',$str);
167
-        return  trim($str,'{}');
165
+        $str = json_encode($this->options, ~JSON_HEX_QUOT & ~JSON_FORCE_OBJECT);
166
+        $str = preg_replace('/"([a-zA-Z_]+[a-zA-Z0-9_]*)":/', '$1:', $str);
167
+        return  trim($str, '{}');
168 168
     }
169 169
 
170 170
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param $language
174 174
      */
175 175
     public function setLanguage($language) {
176
-        $this->language=$language;
176
+        $this->language = $language;
177 177
     }
178 178
 
179 179
     /**
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
      * @param $languagePath
183 183
      */
184 184
     public function setLanguagePath($languagePath) {
185
-        $this->languagePath=$languagePath;
185
+        $this->languagePath = $languagePath;
186 186
     }
187 187
 
188 188
     /**
@@ -191,14 +191,14 @@  discard block
 block discarded – undo
191 191
      * @param $name
192 192
      * @param $value
193 193
      */
194
-    public function setOption($name,$value){
194
+    public function setOption($name, $value) {
195 195
         if (array_key_exists($name, $this->options)) {
196 196
             $this->options[$name] = $value;
197
-        }elseif ('language' == $name or 'language_url' == $name ) {
197
+        }elseif ('language' == $name or 'language_url' == $name) {
198 198
             $this->options[$name] = $value;
199 199
 
200
-        }else{
201
-            throw new \InvalidArgumentException('Unknown Option ' . $name . ' in ' .  __FILE__ . ' Line ' . __LINE__ );
200
+        } else {
201
+            throw new \InvalidArgumentException('Unknown Option '.$name.' in '.__FILE__.' Line '.__LINE__);
202 202
         }
203 203
     }
204 204
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     public function setOptions($options)
211 211
     {
212
-        foreach($options as $key => $val) {
212
+        foreach ($options as $key => $val) {
213 213
             $this->setOption($key, $val);
214 214
         }
215 215
     }
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Form/AbstractCustomizableFieldsetFactory.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
      *
38 38
      * @var string
39 39
      */
40
-    const CLASS_NAME   = '';
40
+    const CLASS_NAME = '';
41 41
 
42 42
     /**
43 43
      * Creation options.
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         $instance = $this->createFormInstance($container, $requestedName, $options);
76 76
 
77 77
         if (!$instance instanceOf CustomizableFieldsetInterface) {
78
-            throw new \RuntimeException('Form or Fieldset instance must implement ' . CustomizableFieldsetInterface::class);
78
+            throw new \RuntimeException('Form or Fieldset instance must implement '.CustomizableFieldsetInterface::class);
79 79
         }
80 80
 
81 81
         $customizeOptions = $this->getCustomizationOptions($container, $requestedName, $options);
Please login to merge, or discard this patch.
module/Core/src/Core/Options/FieldsetCustomizationOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                     'attributes',
134 134
                     'options',
135 135
                     'label' => 'options',
136
-                    'required' => ['key' => ['attributes','*'], 'value' => 'required', 'if' => true],
136
+                    'required' => ['key' => ['attributes', '*'], 'value' => 'required', 'if' => true],
137 137
                     'type',
138 138
                 ]
139 139
             );
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
                 $value = $source[$key];
253 253
             }
254 254
 
255
-            $tmpTarget =& $target;
255
+            $tmpTarget = & $target;
256 256
             foreach ($targetKeys as $targetKey) {
257 257
                 if ('*' == $targetKey) {
258 258
                     $targetKey = $key;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                 if (!isset($tmpTarget[$targetKey])) {
261 261
                     $tmpTarget[$targetKey] = [];
262 262
                 }
263
-                $tmpTarget =& $tmpTarget[$targetKey];
263
+                $tmpTarget = & $tmpTarget[$targetKey];
264 264
             }
265 265
 
266 266
             $tmpTarget = $value;
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/JobboardSearchOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      *
29 29
      * @var array
30 30
      */
31
-   protected $fields=[
31
+   protected $fields = [
32 32
        'q' => [
33 33
             'enabled' => true
34 34
         ],
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     /**
57 57
      * @return int
58 58
      */
59
-    public function getPerPage(){
59
+    public function getPerPage() {
60 60
         return $this->perPage;
61 61
     }
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @return $this
67 67
      */
68 68
     public function setPerPage($perPage) {
69
-        $this->perPage=$perPage;
69
+        $this->perPage = $perPage;
70 70
         return $this;
71 71
     }
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/SnapshotRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@
 block discarded – undo
189 189
 
190 190
     protected function checkEntityType($entity)
191 191
     {
192
-        if ( !is_a($entity,  $this->getDocumentName()) ) {
192
+        if (!is_a($entity, $this->getDocumentName())) {
193 193
             throw new \InvalidArgumentException(sprintf(
194 194
                 'Entity must be of type %s but recieved %s instead',
195 195
                 $this->getDocumentName(),
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/MetaDataProviderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function setMetaData($key, $value = null)
32 32
     {
33 33
         if (is_array($key)) {
34
-            $this->metaData  = $key;
34
+            $this->metaData = $key;
35 35
 
36 36
         } else {
37 37
             $this->metaData[$key] = $value;
Please login to merge, or discard this patch.