Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed Jul 17, 2023
1 parent e9376f9 commit 33bd785
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Providers/Auth/OpenIDUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,20 @@ public function __construct(CmsUser $userModel)
*
* @param mixed $identifier
*/
public function retrieveById($identifier): Authenticatable|null
public function retrieveById($identifier): ?Authenticatable
{
return $this->model->where('enabled', true)->where('sub', $identifier)->first();
}

/**
* Retrieve a user by their e-mail address.
*/
public function retrieveByEmail(string $email): CmsUser|null
public function retrieveByEmail(string $email): ?CmsUser
{
return $this->model->where('email', $email)->first();
}

private function getEmailFromToken(object $token): null|string
private function getEmailFromToken(object $token): ?string
{
$mailClaim = config('openid.mail_claim');
if (! isset($token->$mailClaim)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Assets/AbstractAssetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getLang(): Lang
/**
* Loops through all the table items and return them with the appropriate Input Class
*/
public function getFieldComponents(?int $recordId = null): Collection
public function getFieldComponents(int $recordId = null): Collection
{
$items = $this->assetModel->items()->where('enabled', 1)->orderBy('order')->get();

Expand Down
2 changes: 1 addition & 1 deletion src/Services/Assets/GlobalPageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function getCacheKey(): string
/**
* Loops through all the table items and return them with the appropriate Input Class
*/
public function getFieldComponents(?int $recordId = null): Collection
public function getFieldComponents(int $recordId = null): Collection
{
$templateItems = TemplateItem::where('enabled', 1)
->where('global', 1)
Expand Down
8 changes: 4 additions & 4 deletions src/Services/Forms/UserDataTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,25 @@ class UserDataTransformer
* this array is an array of field ids. Populating this array will allow the function 'getDataArray' to dynamically fill
* array and remain the same order everytime. This also makes old data submitted to have the same headers as new data submitted.
*/
private array $headerIdArray = [];
private array $headerIdArray = [];

/**
* sometimes we don't want to return certain types. For example when exporting a csv. We don't want to show
* the files since a csv can't do anything with them.
*/
private array $ignoredTypes = [];
private array $ignoredTypes = [];

/**
* This array can be used to ignore certain ids. For example it is now used to either display deleted items or not.
*/
private array $filterIds = [];
private array $filterIds = [];

/**
* Contains all the \nfapi\formbuilder\fields\AbstractType fields based on their id.
*
* @var asspctiative array
*/
private array $idToTypeClass = [];
private array $idToTypeClass = [];

/**
* This will be set when the class is called. Mainly to chenge how the data is outputted.
Expand Down

0 comments on commit 33bd785

Please sign in to comment.