Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
gradinarufelix committed Oct 4, 2023
1 parent 8badf4a commit cc24437
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Classes/Domain/Model/ZoomApiAccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ class ZoomApiAccessToken
public function __construct(
public readonly string $accessToken,
public readonly array $scope
) {}
) {
}
}
3 changes: 2 additions & 1 deletion Classes/Domain/Service/ZoomApiAccessTokenFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ public function createFromConfiguration(): ZoomApiAccessToken

return new ZoomApiAccessToken(
$responseBodyAsArray['access_token'],
explode(',', $responseBodyAsArray['scope']));
explode(',', $responseBodyAsArray['scope'])
);
}

/**
Expand Down
8 changes: 6 additions & 2 deletions Classes/Domain/Service/ZoomApiService.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace CodeQ\ZoomApi\Domain\Service;

use CodeQ\ZoomApi\Utility\TimeUtility;
Expand Down Expand Up @@ -199,8 +201,10 @@ private function fetchData($uri, string $paginatedDataKey): array

if (!array_key_exists($paginatedDataKey, $responseData)) {
throw new ZoomApiException("Could not find key $paginatedDataKey. Response data: "
. print_r($aggregatedData,
true));
. print_r(
$aggregatedData,
true
));
}

$aggregatedData = array_merge($aggregatedData, $responseData[$paginatedDataKey]);
Expand Down
9 changes: 6 additions & 3 deletions Classes/Eel/ZoomApiHelper.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace CodeQ\ZoomApi\Eel;

use DateTime;
Expand All @@ -10,8 +12,8 @@
use Psr\Log\LoggerInterface;
use Throwable;

class ZoomApiHelper implements ProtectedContextAwareInterface {

class ZoomApiHelper implements ProtectedContextAwareInterface
{
/**
* @Flow\Inject
* @var ZoomApiService
Expand Down Expand Up @@ -73,7 +75,8 @@ public function getUpcomingMeetings(): array|false
* @param string $methodName
* @return boolean
*/
public function allowsCallOfMethod($methodName) {
public function allowsCallOfMethod($methodName)
{
return true;
}
}
1 change: 0 additions & 1 deletion Classes/ZoomApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@

class ZoomApiException extends Exception
{

}

0 comments on commit cc24437

Please sign in to comment.