Passed
Push — develop ( 284d04...7743eb )
by Andrew
01:00 queued 10s
created
src/Units.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                 $field = $event->sender;
104 104
 
105 105
                 if (!$field instanceof UnitsField) {
106
-                  return;
106
+                    return;
107 107
                 }
108 108
 
109 109
                 $object = $event->schema->createObjectType(ucfirst($field->handle) . 'Units');
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
             'units/settings',
146 146
             [
147 147
                 'settings' => $this->getSettings(),
148
-                 'unitsClassMap' => $unitsClassMap,
149
-           ]
148
+                    'unitsClassMap' => $unitsClassMap,
149
+            ]
150 150
         );
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.