Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #140

Merged
merged 1 commit into from Feb 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/Event.php
Expand Up @@ -62,7 +62,7 @@ public static function create(array $properties, string $calendarId = null, $opt
return $event->save('insertEvent', $optParams);
}

public static function get(Carbon $startDateTime = null, Carbon $endDateTime = null, array $queryParameters = [], string $calendarId = null) : Collection
public static function get(Carbon $startDateTime = null, Carbon $endDateTime = null, array $queryParameters = [], string $calendarId = null): Collection
{
$googleCalendar = static::getGoogleCalendar($calendarId);

Expand Down Expand Up @@ -230,12 +230,12 @@ protected function setDateProperty(string $name, Carbon $date)
protected function getFieldName(string $name): string
{
return [
'name' => 'summary',
'description' => 'description',
'startDate' => 'start.date',
'endDate' => 'end.date',
'startDateTime' => 'start.dateTime',
'endDateTime' => 'end.dateTime',
][$name] ?? $name;
'name' => 'summary',
'description' => 'description',
'startDate' => 'start.date',
'endDate' => 'end.date',
'startDateTime' => 'start.dateTime',
'endDateTime' => 'end.dateTime',
][$name] ?? $name;
}
}
2 changes: 1 addition & 1 deletion tests/TestCase.php
Expand Up @@ -13,7 +13,7 @@ abstract class TestCase extends OrchestraTestCase
/** @var string */
protected $calendarId;

protected function getPackageProviders($app) : array
protected function getPackageProviders($app): array
{
return [
GoogleCalendarServiceProvider::class,
Expand Down