@@ -103,10 +103,10 @@ |
||
103 | 103 | */ |
104 | 104 | public function setFormId($formId) |
105 | 105 | { |
106 | - $this->formId = $formId . '-'; |
|
106 | + $this->formId = $formId.'-'; |
|
107 | 107 | |
108 | 108 | foreach ($this as $button) { |
109 | - $button->setAttribute('id', $this->formId . $button->getAttribute('id')); |
|
109 | + $button->setAttribute('id', $this->formId.$button->getAttribute('id')); |
|
110 | 110 | } |
111 | 111 | return $this; |
112 | 112 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | ) |
47 | 47 | ); |
48 | 48 | |
49 | - $timezones=array_merge( |
|
49 | + $timezones = array_merge( |
|
50 | 50 | \DateTimeZone::listIdentifiers(\DateTimeZone::AFRICA), |
51 | 51 | \DateTimeZone::listIdentifiers(\DateTimeZone::AMERICA), |
52 | 52 | \DateTimeZone::listIdentifiers(\DateTimeZone::ASIA), |
@@ -36,7 +36,7 @@ |
||
36 | 36 | public function init() |
37 | 37 | { |
38 | 38 | if (empty($this->baseFieldset)) { |
39 | - throw new \InvalidArgumentException('For the Form ' . get_class($this) . ' there is no Basefieldset'); |
|
39 | + throw new \InvalidArgumentException('For the Form '.get_class($this).' there is no Basefieldset'); |
|
40 | 40 | } |
41 | 41 | $this->addBaseFieldset(); |
42 | 42 | $this->addButtonsFieldset(); |
@@ -222,7 +222,7 @@ |
||
222 | 222 | */ |
223 | 223 | private function findLeaf(NodeInterface $leaf, $value) |
224 | 224 | { |
225 | - $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ': '-', $value); |
|
225 | + $parts = is_array($value) ? $value : explode($this->shouldUseNames() ? ' | ' : '-', $value); |
|
226 | 226 | $value = array_shift($parts); |
227 | 227 | |
228 | 228 | /* @var NodeInterface $item */ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $data = []; |
54 | 54 | $this->flattenTree($object, $data); |
55 | 55 | |
56 | - return ['items' => $data ]; |
|
56 | + return ['items' => $data]; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | if ($tree->hasChildren()) { |
79 | 79 | foreach ($tree->getChildren() as $i => $child) { |
80 | - $this->flattenTree($child, $data, $curId . '-' . ($i + 1)); |
|
80 | + $this->flattenTree($child, $data, $curId.'-'.($i + 1)); |
|
81 | 81 | } |
82 | 82 | } |
83 | 83 | } |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | * unflatten tree |
115 | 115 | */ |
116 | 116 | $items = $data['items']; |
117 | - $tree = [ '__root__' => array_shift($items) ]; |
|
117 | + $tree = ['__root__' => array_shift($items)]; |
|
118 | 118 | |
119 | 119 | foreach ($items as $item) { |
120 | 120 | $parent = substr($item['current'], 0, strrpos($item['current'], '-')); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | public static function load($directory) |
38 | 38 | { |
39 | - $directory = rtrim($directory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
39 | + $directory = rtrim($directory, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
40 | 40 | $env = getenv('APPLICATION_ENV') ?: 'production'; |
41 | 41 | $pattern = sprintf('%s{,*.}{config,%s}.php', $directory, $env); |
42 | 42 | $config = array(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function __invoke() |
44 | 44 | { |
45 | - $SocialNetworksEnabled=[]; |
|
45 | + $SocialNetworksEnabled = []; |
|
46 | 46 | foreach ($this->config['hybridauth'] as $key => $val) { |
47 | 47 | if ($val['enabled'] and in_array(strtolower($key), $this->options->getEnableLogins())) { |
48 | 48 | $SocialNetworksEnabled[strtolower($key)] = $key; |
@@ -67,12 +67,12 @@ |
||
67 | 67 | |
68 | 68 | $output = '<div class="br-widget br-readonly ' |
69 | 69 | . ('compact' == $mode ? ' br-compact' : '') |
70 | - . '" title="' . $this->getView()->translate(self::$ratingValueMap[$rating]) . '">'; |
|
71 | - for ($i=1; $i<6; $i++) { |
|
70 | + . '" title="'.$this->getView()->translate(self::$ratingValueMap[$rating]).'">'; |
|
71 | + for ($i = 1; $i < 6; $i++) { |
|
72 | 72 | $class = $i <= $rating ? 'br-selected' : ''; |
73 | 73 | $class .= $i == $rating ? ' br-current' : ''; |
74 | 74 | |
75 | - $output .= '<a class="' . $class . '"></a>'; |
|
75 | + $output .= '<a class="'.$class.'"></a>'; |
|
76 | 76 | } |
77 | 77 | $output .= '</div>'; |
78 | 78 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | : ''; |
59 | 59 | |
60 | 60 | if (false !== strpos($urlOrEmail, '@')) { |
61 | - $urlOrEmail = 'mailto:' . $urlOrEmail; |
|
61 | + $urlOrEmail = 'mailto:'.$urlOrEmail; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return sprintf('<a %s href="%s">%s</a>', $attributesStr, $urlOrEmail, $label); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $attr = array(); |
74 | 74 | |
75 | 75 | foreach ($attributes as $name => $value) { |
76 | - $attr[] = $escape($name) . '="' . $escapeAttr($value) . '"'; |
|
76 | + $attr[] = $escape($name).'="'.$escapeAttr($value).'"'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | return implode(' ', $attr); |