@@ -171,7 +171,7 @@ |
||
171 | 171 | ] |
172 | 172 | ); |
173 | 173 | |
174 | - $html .= parent::getSettingsHtml(); |
|
174 | + $html .= parent::getSettingsHtml(); |
|
175 | 175 | |
176 | 176 | return $html; |
177 | 177 | } |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | Event::on( |
72 | 72 | Fields::class, |
73 | 73 | Fields::EVENT_REGISTER_FIELD_TYPES, |
74 | - function (RegisterComponentTypesEvent $event) { |
|
74 | + function(RegisterComponentTypesEvent $event) { |
|
75 | 75 | $event->types[] = UnitsField::class; |
76 | 76 | } |
77 | 77 | ); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | Event::on( |
81 | 81 | CraftVariable::class, |
82 | 82 | CraftVariable::EVENT_INIT, |
83 | - function (Event $event) { |
|
83 | + function(Event $event) { |
|
84 | 84 | /** @var CraftVariable $variable */ |
85 | 85 | $variable = $event->sender; |
86 | 86 | $variable->set('units', self::$variable); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | Event::on( |
91 | 91 | Plugins::class, |
92 | 92 | Plugins::EVENT_AFTER_INSTALL_PLUGIN, |
93 | - function (PluginEvent $event) { |
|
93 | + function(PluginEvent $event) { |
|
94 | 94 | if ($event->plugin === $this) { |
95 | 95 | } |
96 | 96 | } |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | Event::on( |
100 | 100 | UnitsField::class, |
101 | 101 | 'craftQlGetFieldSchema', |
102 | - function ($event) { |
|
102 | + function($event) { |
|
103 | 103 | $field = $event->sender; |
104 | 104 | |
105 | 105 | if (!$field instanceof UnitsField) { |
106 | 106 | return; |
107 | 107 | } |
108 | 108 | |
109 | - $object = $event->schema->createObjectType(ucfirst($field->handle) . 'Units'); |
|
109 | + $object = $event->schema->createObjectType(ucfirst($field->handle).'Units'); |
|
110 | 110 | $object->addFloatField('value'); |
111 | 111 | $object->addStringField('units'); |
112 | 112 |