Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored and github-actions[bot] committed Aug 20, 2024
1 parent 0996964 commit 224fe5a
Show file tree
Hide file tree
Showing 37 changed files with 39 additions and 89 deletions.
4 changes: 1 addition & 3 deletions app/app/Tables/SpatieUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@

class SpatieUsers extends AbstractTable
{
public function __construct(private string $paginateMethod)
{
}
public function __construct(private string $paginateMethod) {}

public function for()
{
Expand Down
4 changes: 1 addition & 3 deletions app/app/Tables/SpladeUsers.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

class SpladeUsers extends AbstractTable
{
public function __construct(private string $paginateMethod)
{
}
public function __construct(private string $paginateMethod) {}

public function for()
{
Expand Down
3 changes: 1 addition & 2 deletions app/app/View/Components/FakeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class FakeEmail extends Component
public function __construct(
public User $user,
public ?string $prefix = ''
) {
}
) {}

public function randomize()
{
Expand Down
3 changes: 1 addition & 2 deletions app/app/View/Components/FakeMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class FakeMail extends Component
public function __construct(
public User $user,
public ?string $prefix = ''
) {
}
) {}

public function randomize()
{
Expand Down
3 changes: 1 addition & 2 deletions app/app/View/Components/FindIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public $hostname = '',
public $ip = '',
public $dataTest = 'InlineDataTest'
) {
}
) {}

public function find()
{
Expand Down
2 changes: 1 addition & 1 deletion app/tests/Unit/TableExporterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function it_can_generate_an_array_with_the_column_styling_or_use_a_callba
$worksheet = Mockery::mock(Worksheet::class);
$worksheet->shouldReceive('getHighestRowAndColumn')->andReturn(['column' => 'C', 'row' => 3]);
$worksheet->shouldReceive('setAutoFilter')->with('A1:C1');
$worksheet->shouldReceive('getStyle')->with('C2:C3')->andReturn($style = new Style());
$worksheet->shouldReceive('getStyle')->with('C2:C3')->andReturn($style = new Style);

$this->assertEquals([
'B2:B3' => ['font' => ['bold' => true]],
Expand Down
12 changes: 3 additions & 9 deletions app/tests/Unit/WithVueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,11 @@ public function it_return_public_available_methods()
{
use WithVue;

public function foo()
{
}
public function foo() {}

protected function bar()
{
}
protected function bar() {}

private function baz()
{
}
private function baz() {}
};

$this->assertEquals(['foo'], $instance->_availableMethods());
Expand Down
4 changes: 1 addition & 3 deletions src/Bridge/CouldNotResolveComponentInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class CouldNotResolveComponentInstance extends Exception
{
}
class CouldNotResolveComponentInstance extends Exception {}
3 changes: 1 addition & 2 deletions src/Components/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class Content extends Component
public function __construct(
public $html,
public string $as = 'div'
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class Dynamic extends Component
*/
public function __construct(
public string $name
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class Errors extends Component
*/
public function __construct(
public string $scope = 'errors'
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Flash.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class Flash extends Component
*/
public function __construct(
public string $scope = 'flash'
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Form/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(
public string $validationKey = '',
public bool $showErrors = true,
public HtmlString|string $help = '',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/ModalWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public bool $closeButton,
public string $name = '',
public bool $closeExplicitly = false,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class State extends Component
*/
public function __construct(
public string $scope = 'state'
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Toast.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class Toast extends Component
*/
public function __construct(
public SpladeToast $toast,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/DataStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public function __construct(
public bool $localStorage,
public ?string $json = null,
public $data = null,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/EventRedirectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class EventRedirectFactory
*/
public function __construct(
private Redirector $redirector
) {
}
) {}

/**
* Forwards all calls to the Redirector, which will genereate
Expand Down
2 changes: 1 addition & 1 deletion src/FileUploads/HandleSpladeFileUploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function syncMediaLibrary(Request $request, HasMedia $subject, str
$mediaClass = config('media-library.media_model');

/** @var Media $mediaInstance */
$mediaInstance = new $mediaClass();
$mediaInstance = new $mediaClass;
$mediaInstance::setNewOrder($media->map->getKey()->all());
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/FileUploads/HasSpladeFileUploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace ProtoneMedia\Splade\FileUploads;

interface HasSpladeFileUploads
{
}
interface HasSpladeFileUploads {}
3 changes: 1 addition & 2 deletions src/FormSelectOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class FormSelectOption implements Arrayable
*/
public function __construct(
private array $attributes = []
) {
}
) {}

/**
* Returns a boolean whether the attributes array contains an 'options' key.
Expand Down
3 changes: 1 addition & 2 deletions src/Http/SpladeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ class SpladeMiddleware
public function __construct(
private SpladeCore $splade,
private Ssr $ssr,
) {
}
) {}

/**
* Handle an incoming request.
Expand Down
3 changes: 1 addition & 2 deletions src/Http/SpladeResponseData.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
public bool $rehydrate,
public ?string $persistentLayout,
public bool $preventViewTransition
) {
}
) {}

public static function make(): static
{
Expand Down
4 changes: 1 addition & 3 deletions src/InvalidTransformerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class InvalidTransformerException extends Exception
{
}
class InvalidTransformerException extends Exception {}
3 changes: 1 addition & 2 deletions src/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class Meta implements Arrayable, JsonSerializable
*/
public function __construct(
private array $attributes
) {
}
) {}

/**
* Renders the meta tag with all attributes.
Expand Down
4 changes: 1 addition & 3 deletions src/PaginationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class PaginationException extends Exception
{
}
class PaginationException extends Exception {}
3 changes: 1 addition & 2 deletions src/QueueableCollectionWithNewModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class QueueableCollectionWithNewModels
public function __construct(
public Collection $collection,
public ModelIdentifier $existingModels
) {
}
) {}

/**
* It gets the existing models restored from the database
Expand Down
4 changes: 1 addition & 3 deletions src/SpladeTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ public function loadResource(): self
return $this;
}

public function performBulkAction(callable $action, array $ids)
{
}
public function performBulkAction(callable $action, array $ids) {}

private function preventPaginationCall()
{
Expand Down
3 changes: 1 addition & 2 deletions src/SpladeToastBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ class SpladeToastBuilder
*/
public function __construct(
private SpladeCore $splade
) {
}
) {}

/**
* Forwards all calls the a new Toast.
Expand Down
3 changes: 1 addition & 2 deletions src/Table/Export.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public function __construct(
public string $type,
public string $tableClass,
public array $events,
) {
}
) {}

/**
* Generates a slug based on the label.
Expand Down
3 changes: 1 addition & 2 deletions src/Table/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public function __construct(
public bool $noFilterOption,
public string $noFilterOptionLabel,
public string $type
) {
}
) {}

/**
* Returns a clone of the instance.
Expand Down
4 changes: 1 addition & 3 deletions src/Table/LaravelExcelException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class LaravelExcelException extends Exception
{
}
class LaravelExcelException extends Exception {}
4 changes: 1 addition & 3 deletions src/Table/PowerJoinsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class PowerJoinsException extends Exception
{
}
class PowerJoinsException extends Exception {}
3 changes: 1 addition & 2 deletions src/Table/SearchInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public function __construct(
public array $columns,
public string $label,
public ?string $value = null,
) {
}
) {}

/**
* Returns a clone of the instance.
Expand Down
3 changes: 1 addition & 2 deletions src/TableExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public function __construct(
private $fileName,
private $writerType,
private array $events,
) {
}
) {}

/**
* Returns the Query Builder to fetch the records.
Expand Down
4 changes: 1 addition & 3 deletions src/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ public function requireTransformer(bool $value = true): self
return $this;
}

public function __construct(private SpladeCore $splade)
{
}
public function __construct(private SpladeCore $splade) {}

private function canBeTransformed($value): bool
{
Expand Down
3 changes: 1 addition & 2 deletions src/TransitionAnimation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public string $leave,
public string $leaveFrom,
public string $leaveTo
) {
}
) {}

/**
* Getter for the name.
Expand Down

0 comments on commit 224fe5a

Please sign in to comment.