Skip to content

Commit

Permalink
Fixed code style
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored and github-actions[bot] committed Jun 6, 2024
1 parent 9002a25 commit 60cf717
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Screen/Fields/Attach.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
/**
* Class Attach.
*
* @method Attach accept(string $value)
* @method Attach required($value = true)
* @method Attach multiple($value = true)
* @method Attach maxSize(int $value)
* @method Attach placeholder(string $value)
* @method Attach errorMaxSizeMessage(string $value)
* @method Attach errorTypeMessage(string $value)
* @method Attach help(string $value = null)
* @method Attach title(string $value = null)
* @method Attach uploadUrl(string $value = null)
* @method Attach sortUrl(string $value = null)
* @method Attach accept(string $value)
* @method Attach required($value = true)
* @method Attach multiple($value = true)
* @method Attach maxSize(int $value)
* @method Attach placeholder(string $value)
* @method Attach errorMaxSizeMessage(string $value)
* @method Attach errorTypeMessage(string $value)
* @method Attach help(string $value = null)
* @method Attach title(string $value = null)
* @method Attach uploadUrl(string $value = null)
* @method Attach sortUrl(string $value = null)
*/
class Attach extends Field
{
Expand Down Expand Up @@ -90,7 +90,7 @@ public function __construct()
$this->addBeforeRender(function () {
$value = Arr::wrap($this->get('value'));

if (!Assert::isIntArray($value)) {
if (! Assert::isIntArray($value)) {
return;
}

Expand Down Expand Up @@ -119,20 +119,20 @@ public function __construct()

// if is not multiple, then set maxCount to 1
$this->addBeforeRender(function () {
if (!$this->get('multiple')) {
if (! $this->get('multiple')) {
$this->set('maxCount', 1);
}
});
}

/**
* @return $this
* @throws \Throwable
*
* @return $this
*/
public function storage(string $storage): self
{
$disk = config('filesystems.disks.' . $storage);
$disk = config('filesystems.disks.'.$storage);

throw_if($disk === null, 'The selected storage was not found');

Expand Down

0 comments on commit 60cf717

Please sign in to comment.