@@ -20,5 +20,5 @@ |
||
20 | 20 | /** |
21 | 21 | * @return array |
22 | 22 | */ |
23 | - public function getInputProperties(): array ; |
|
23 | + public function getInputProperties(): array; |
|
24 | 24 | } |
25 | 25 | \ No newline at end of file |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @param string $separator ~ the separator between items |
23 | 23 | * @param string $value_separator ~ the separator between label and value |
24 | 24 | */ |
25 | - public function __construct(string $separator='||', string $value_separator='==') |
|
25 | + public function __construct(string $separator = '||', string $value_separator = '==') |
|
26 | 26 | { |
27 | 27 | $this->separator = $separator; |
28 | 28 | $this->value_separator = $value_separator; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | if (!empty($string)) { |
39 | 39 | $string .= $this->separator; |
40 | 40 | } |
41 | - $string .= $label . $this->value_separator . $value; |
|
41 | + $string .= $label.$this->value_separator.$value; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | return $string; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @param null $value |
58 | 58 | * @return $this |
59 | 59 | */ |
60 | - public function setOption(string $label, $value=null): self |
|
60 | + public function setOption(string $label, $value = null): self |
|
61 | 61 | { |
62 | 62 | if (is_null($value)) { |
63 | 63 | $value = $label; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * @param string $type |
108 | 108 | * @return MIGXTemplateVariableInput |
109 | 109 | */ |
110 | - public function getMIGXInputPropertyHelper(string $type='migx') |
|
110 | + public function getMIGXInputPropertyHelper(string $type = 'migx') |
|
111 | 111 | { |
112 | 112 | $this->setFieldType($type); |
113 | 113 | return new MIGXTemplateVariableInput($this->getFieldType()); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * @param string $context - default is web |
223 | 223 | * @return $this |
224 | 224 | */ |
225 | - public function setMediaSource($name = 'Filesystem', $context='web') |
|
225 | + public function setMediaSource($name = 'Filesystem', $context = 'web') |
|
226 | 226 | { |
227 | 227 | $this->media_sources[$name] = $context; |
228 | 228 | if ($context == 'web') { |
@@ -336,7 +336,7 @@ discard block |
||
336 | 336 | $modMediaSourceElement->set('source', $this->convertSource($name)); |
337 | 337 | |
338 | 338 | if (!$modMediaSourceElement->save()) { |
339 | - $this->blender->out('Template variable ' .$this->xPDOSimpleObject->get('name'). |
|
339 | + $this->blender->out('Template variable '.$this->xPDOSimpleObject->get('name'). |
|
340 | 340 | 'did not attached the media source: '.$name); |
341 | 341 | } |
342 | 342 | } |
@@ -517,8 +517,8 @@ discard block |
||
517 | 517 | { |
518 | 518 | if ($this->unique_key_length_limit > 0 && is_string($criteria) && strlen($criteria) > $this->unique_key_length_limit) { |
519 | 519 | throw new BlendableKeyLengthException( |
520 | - 'Error: '.$this->unique_key_column . ' is limited to '. |
|
521 | - $this->unique_key_length_limit .' and '.$criteria.' is '. strlen($criteria) . ' characters' |
|
520 | + 'Error: '.$this->unique_key_column.' is limited to '. |
|
521 | + $this->unique_key_length_limit.' and '.$criteria.' is '.strlen($criteria).' characters' |
|
522 | 522 | ); |
523 | 523 | } |
524 | 524 | |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | if ($data == false) { |
622 | 622 | if ($this->type == 'blend') { |
623 | 623 | $this->blender->outError('Error: Seed could not be found: '.$seed_key); |
624 | - throw new BlendableException('Error: Seed could not be found: '.$seed_key . ' in '. print_r($this->seedCacheOptions, true)); |
|
624 | + throw new BlendableException('Error: Seed could not be found: '.$seed_key.' in '.print_r($this->seedCacheOptions, true)); |
|
625 | 625 | } |
626 | 626 | |
627 | 627 | } else { |