@@ -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, |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | { |
| 153 | 153 | $compareValue = $value->value ?? $value; |
| 154 | 154 | |
| 155 | - foreach ($this->options as $option) |
|
| 155 | + foreach ($this->options as $option) |
|
| 156 | 156 | { |
| 157 | 157 | if ($option['value'] === $compareValue) |
| 158 | 158 | { |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | public function normalizeValue($value, ElementInterface $element = null) |
| 171 | 171 | { |
| 172 | - if (!$value) |
|
| 172 | + if ( ! $value) |
|
| 173 | 173 | { |
| 174 | 174 | $value = $this->defaultValue(); |
| 175 | 175 | } |
@@ -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 | |