@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | Event::on( |
84 | 84 | CraftVariable::class, |
85 | 85 | CraftVariable::EVENT_INIT, |
86 | - function (Event $event) |
|
86 | + function(Event $event) |
|
87 | 87 | { |
88 | 88 | $variable = $event->sender; |
89 | 89 | $variable->set('harvest', HarvestVariable::class); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | Event::on( |
96 | 96 | Fields::class, |
97 | 97 | Fields::EVENT_REGISTER_FIELD_TYPES, |
98 | - function (RegisterComponentTypesEvent $event) |
|
98 | + function(RegisterComponentTypesEvent $event) |
|
99 | 99 | { |
100 | 100 | $event->types[] = SaasLinkField::class; |
101 | 101 | } |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | { |
189 | 189 | $organizationOptions = []; |
190 | 190 | |
191 | - foreach($this->trello->getMemberOrganizations() as $organization) |
|
191 | + foreach ($this->trello->getMemberOrganizations() as $organization) |
|
192 | 192 | { |
193 | 193 | $organizationOptions[] = [ |
194 | 194 | 'label' => $organization->displayName, |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * @var string |
36 | 36 | */ |
37 | - protected $apiBaseUrl = 'https://api.harvestapp.com/v2/'; |
|
37 | + protected $apiBaseUrl = 'https://api.harvestapp.com/v2/'; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @var string |
@@ -507,7 +507,7 @@ discard block |
||
507 | 507 | |
508 | 508 | foreach ($timeEntries as $timeEntry) |
509 | 509 | { |
510 | - if ($timeEntry->billable && !$timeEntry->is_billed) |
|
510 | + if ($timeEntry->billable && ! $timeEntry->is_billed) |
|
511 | 511 | { |
512 | 512 | $roundedHours = $this->roundTime($timeEntry->hours, self::TIME_ROUNDING_METHOD); |
513 | 513 |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | { |
180 | 180 | $compareValue = $value->value ?? $value; |
181 | 181 | |
182 | - foreach ($this->getOptions() as $option) |
|
182 | + foreach ($this->getOptions() as $option) |
|
183 | 183 | { |
184 | 184 | if ($option['value'] === $compareValue) |
185 | 185 | { |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | */ |
197 | 197 | public function normalizeValue($value, ElementInterface $element = null) |
198 | 198 | { |
199 | - if (!$value) |
|
199 | + if ( ! $value) |
|
200 | 200 | { |
201 | 201 | $value = $this->defaultValue(); |
202 | 202 | } |
@@ -122,8 +122,10 @@ |
||
122 | 122 | // Get all of the acceptable values |
123 | 123 | $range = []; |
124 | 124 | |
125 | - if ($options = $this->getOptions()) { |
|
126 | - foreach ($options as $option) { |
|
125 | + if ($options = $this->getOptions()) |
|
126 | + { |
|
127 | + foreach ($options as $option) |
|
128 | + { |
|
127 | 129 | $range[] = $option['value']; |
128 | 130 | } |
129 | 131 | } |