Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Jul 20, 2023
1 parent fc2f8c2 commit dd2d25f
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 18 deletions.
8 changes: 4 additions & 4 deletions config/tallkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@
/**
* Overlays.
*/
'consent' => \TALLKit\Components\Overlays\CookieConsent::class,
'consent' => \TALLKit\Components\Overlays\CookieConsent::class,
'dialog' => \TALLKit\Components\Overlays\Modal::class,
'backdrop' => \TALLKit\Components\Overlays\Overlay::class,
'toggle' => \TALLKit\Components\Overlays\Toggleable::class,
Expand Down Expand Up @@ -1469,16 +1469,16 @@
],

'left' => [
'class' => 'py-2 px-3 flex items-center space-x-2'
'class' => 'py-2 px-3 flex items-center space-x-2',
],

'title' => [
'class' => 'py-2 flex-1 text-2xl font-medium',
],

'right' => [
'class' => 'py-2 px-3 flex items-center space-x-2'
]
'class' => 'py-2 px-3 flex items-center space-x-2',
],
],

'user-sidebar' => [
Expand Down
1 change: 0 additions & 1 deletion resources/js/components/payments/credit-card.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const CREDIT_CARD_DEFAULT = {
openned: true,
types: [],
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Icons/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ protected function renderIcon()
{
return function (array $data) {
$slot = target_get($data, 'slot');
$attributes = target_get($data, 'attributes')->filter(function($val, $key) {
return !(
$attributes = target_get($data, 'attributes')->filter(function ($val, $key) {
return ! (
trim($key) === 'class' && trim($val) === ''
|| trim($key) === 'style' && trim($val) === ';'
);
);
});

if (! Str::startsWith($slot, '<svg') && $preset = $this->themeProvider->presets->get($this->name)) {
Expand Down
1 change: 1 addition & 0 deletions src/Components/Overlays/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class Modal extends Toggleable
{
protected static $OVERLAY = true;

protected static $ALIGN = 'center';

/**
Expand Down
1 change: 1 addition & 0 deletions src/Components/Payments/PaymentFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class PaymentFields extends BladeComponent
use JsonOptions;

public $cardExpirationMonths;

public $cardExpirationYears;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Components/ThemeProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class ThemeProvider
/**
* Create a new theme provider instance.
*
* @param array $themes
* @return void
*/
public function __construct(array $themes = [])
Expand Down
10 changes: 5 additions & 5 deletions src/Concerns/Componentable.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ protected function getComponentKey()
protected function getComponentView()
{
return (string) Str::of(get_called_class())
->beforeLast('\\')
->lower()
->replace(['tallkit\\', '\\'], ['tallkit::', '.'])
->append('.')
->append($this->getComponentKey());
->beforeLast('\\')
->lower()
->replace(['tallkit\\', '\\'], ['tallkit::', '.'])
->append('.')
->append($this->getComponentKey());
}

/**
Expand Down
3 changes: 3 additions & 0 deletions src/Concerns/Toggleable.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
trait Toggleable
{
protected static $SHOW = false;

protected static $OVERLAY = false;

protected static $CLOSEABLE = true;

protected static $ALIGN = 'left';

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Controllers/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class UploadController
/**
* Store.
*
* @param \TALLKit\Requests\UploadRequest $request
* @return \Illuminate\Http\JsonResponse
*/
public function store(UploadRequest $request)
Expand Down Expand Up @@ -48,7 +47,6 @@ public function store(UploadRequest $request)
/**
* Destroy.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\JsonResponse
*/
public function destroy(Request $request)
Expand Down
2 changes: 0 additions & 2 deletions src/TALLKitServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ protected function mergeConfigFrom($path, $key)
/**
* Merges the configs together and takes multi-dimensional arrays into account.
*
* @param array $original
* @param array $merging
* @return array
*/
protected function mergeConfigs(array $original, array $merging)
Expand Down

0 comments on commit dd2d25f

Please sign in to comment.