Skip to content

Commit

Permalink
🍺
Browse files Browse the repository at this point in the history
  • Loading branch information
alecritson committed Mar 30, 2023
1 parent 2803da3 commit 83812d9
Show file tree
Hide file tree
Showing 253 changed files with 7 additions and 1,101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class UpdateCustomerGroupPricing
/**
* Execute the action.
*
* @param Model $owner
* @param \Illuminate\Support\Collection $groups
* @return \Illuminate\Support\Collection
*/
public function execute(Model $owner, Collection $groups)
Expand Down
3 changes: 0 additions & 3 deletions packages/admin/src/Actions/Pricing/UpdatePrices.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ class UpdatePrices
/**
* Execute the action.
*
* @param Model $owner
* @param \Illuminate\Support\Collection $prices
* @return \Illuminate\Support\Collection
*/
public function execute(Model $owner, Collection $prices)
Expand All @@ -39,7 +37,6 @@ public function execute(Model $owner, Collection $prices)
/**
* Create or update a price.
*
* @param Model $owner
* @param int $tier
* @param int|null $groupId
* @param float $price
Expand Down
3 changes: 0 additions & 3 deletions packages/admin/src/Actions/Pricing/UpdateTieredPricing.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class UpdateTieredPricing
/**
* Execute the action.
*
* @param Model $owner
* @param \Illuminate\Support\Collection $tieredPrices
* @return \Illuminate\Support\Collection
*/
public function execute(Model $owner, Collection $tieredPrices)
Expand Down Expand Up @@ -51,7 +49,6 @@ public function execute(Model $owner, Collection $tieredPrices)
/**
* Create or update a price.
*
* @param Model $owner
* @param int $tier
* @param int|null $groupId
* @param float $price
Expand Down
4 changes: 2 additions & 2 deletions packages/admin/src/AdminHubServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@
use Lunar\Hub\Menu\SettingsMenu;
use Lunar\Hub\Menu\SidebarMenu;
use Lunar\Hub\Menu\SlotRegistry;
use Lunar\Hub\Models\Staff;
use Lunar\Hub\Tables\Builders\CustomersTableBuilder;
use Lunar\Hub\Tables\Builders\OrdersTableBuilder;
use Lunar\Hub\Tables\Builders\ProductsTableBuilder;
use Lunar\Hub\Tables\Builders\ProductTypesTableBuilder;
use Lunar\Hub\Tables\Builders\ProductVariantsTableBuilder;
use Lunar\Models\Product;
use Lunar\Hub\Models\Staff;

class AdminHubServiceProvider extends ServiceProvider
{
Expand Down Expand Up @@ -500,7 +500,7 @@ protected function registerAuthGuard()

$this->app['config']->set('auth.guards.staff', [
'driver' => 'session',
'provider' => 'staff'
'provider' => 'staff',
]);
}

Expand Down
16 changes: 0 additions & 16 deletions packages/admin/src/Assets/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ abstract class Asset implements Responsable
{
/**
* Name of the asset.
*
* @var string
*/
protected string $name;

Expand All @@ -33,8 +31,6 @@ abstract class Asset implements Responsable
/**
* Construct a new Asset instance.
*
* @param string|self $name
* @param string $path
* @param bool|null $remote
*/
public function __construct(string|self $name, string $path, $remote = null)
Expand All @@ -60,9 +56,6 @@ public function __construct(string|self $name, string $path, $remote = null)

/**
* Make a remote URL.
*
* @param string $path
* @return static
*/
public static function remote(string $path): static
{
Expand All @@ -71,8 +64,6 @@ public static function remote(string $path): static

/**
* Get asset name.
*
* @return string
*/
public function name(): string
{
Expand All @@ -81,8 +72,6 @@ public function name(): string

/**
* Get asset path.
*
* @return string
*/
public function path(): string
{
Expand All @@ -91,8 +80,6 @@ public function path(): string

/**
* Determine if URL is remote.
*
* @return bool
*/
public function isRemote(): bool
{
Expand All @@ -103,7 +90,6 @@ public function isRemote(): bool
* Create an HTTP response that represents the object.
*
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function toResponse($request): Response
{
Expand All @@ -116,8 +102,6 @@ public function toResponse($request): Response

/**
* Get asset url.
*
* @return string
*/
abstract public function url(): string;

Expand Down
2 changes: 0 additions & 2 deletions packages/admin/src/Assets/Script.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class Script extends Asset
{
/**
* Get asset url.
*
* @return string
*/
public function url(): string
{
Expand Down
2 changes: 0 additions & 2 deletions packages/admin/src/Assets/Style.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ class Style extends Asset
{
/**
* Get asset url.
*
* @return string
*/
public function url(): string
{
Expand Down
2 changes: 0 additions & 2 deletions packages/admin/src/Auth/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ abstract class Impersonate
{
/**
* Return the URL for impersonation.
*
* @return string
*/
abstract public function getUrl(Authenticatable $authenticatable): string;
}
10 changes: 0 additions & 10 deletions packages/admin/src/Auth/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ class Manifest
{
/**
* A collection of permissions loaded into the manifest.
*
* @var Collection
*/
protected Collection $permissions;

Expand All @@ -23,8 +21,6 @@ public function __construct()

/**
* Returns all permissions loaded in the manifest.
*
* @return \Illuminate\Support\Collection
*/
public function getPermissions(): Collection
{
Expand All @@ -34,8 +30,6 @@ public function getPermissions(): Collection
/**
* Returns permissions grouped by their handle
* For example, settings:channel would become a child of settings.
*
* @return \Illuminate\Support\Collection
*/
public function getGroupedPermissions(): Collection
{
Expand All @@ -56,7 +50,6 @@ public function getGroupedPermissions(): Collection
/**
* Returns the parent permission based on handle naming.
*
* @param Permission $permission
* @return null|\Lunar\Hub\Acl\Permission
*/
protected function getParentPermission(Permission $permission)
Expand All @@ -73,7 +66,6 @@ protected function getParentPermission(Permission $permission)
/**
* Adds a permission to the manifest if it doesn't already exist.
*
* @param \Closure $callback
* @return void
*/
public function addPermission(\Closure $callback)
Expand All @@ -93,8 +85,6 @@ public function addPermission(\Closure $callback)

/**
* Returns the base permissions which are required by Lunar.
*
* @return array
*/
protected function getBasePermissions(): array
{
Expand Down
4 changes: 0 additions & 4 deletions packages/admin/src/Auth/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ class Permission

/**
* Whether this is a first party permission, set by Lunar.
*
* @var bool
*/
public bool $firstParty = true;

/**
* A collection of related, children permissions.
*
* @var Collection
*/
public Collection $children;

Expand Down
2 changes: 0 additions & 2 deletions packages/admin/src/Base/ActivityLog/Manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ class Manifest
/**
* Add an activity log render.
*
* @param string $subject
* @param string $renderer
* @return self
*/
public function addRender(string $subject, string $renderer)
Expand Down
1 change: 0 additions & 1 deletion packages/admin/src/Base/SearchInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ interface SearchInterface
* @param array $options
* @param int $perPage
* @param int $page
* @return SearchResults
*/
public function search($term, $options = [], $perPage = 25, $page = 1): SearchResults;
}
2 changes: 0 additions & 2 deletions packages/admin/src/DataTransferObjects/TableColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public function __construct(
/**
* Set the value for the table column with a closure.
*
* @param Closure $callback
* @return void
*/
public function value(Closure $callback)
Expand All @@ -30,7 +29,6 @@ public function value(Closure $callback)
/**
* Set whether the column should be sortable.
*
* @param bool $sortable
* @return void
*/
public function sortable(bool $sortable = true)
Expand Down
1 change: 0 additions & 1 deletion packages/admin/src/Http/Controllers/ScriptsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
class ScriptsController extends Controller
{
/**
* @param string $script
* @return \Lunar\Hub\Assets\Script
*
* @throws HttpException
Expand Down
1 change: 0 additions & 1 deletion packages/admin/src/Http/Controllers/StylesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
class StylesController extends Controller
{
/**
* @param string $style
* @return \Lunar\Hub\Assets\Script
*
* @throws HttpException
Expand Down
2 changes: 0 additions & 2 deletions packages/admin/src/Http/Livewire/Components/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ class Account extends Component

/**
* The staff account being edited.
*
* @var Staff
*/
public Staff $staff;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@ class ActivityLogFeed extends Component

/**
* The log subject to get activity for.
*
* @var \Illuminate\Database\Eloquent\Model
*/
public Model $subject;

/**
* The new comment for the subject.
*
* @var string|null
*/
public ?string $comment = null;

Expand Down
6 changes: 0 additions & 6 deletions packages/admin/src/Http/Livewire/Components/BrandSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class BrandSearch extends Component
{
/**
* Should the browser be visible?
*
* @var bool
*/
public bool $showBrowser = false;

Expand All @@ -31,15 +29,11 @@ class BrandSearch extends Component

/**
* Any existing brands to exclude from selecting.
*
* @var \Illuminate\Support\Collection
*/
public Collection $existing;

/**
* The currently selected brands.
*
* @var array
*/
public array $selected = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ class BrandShow extends Component

/**
* The current brand we're showing.
*
* @var Brand
*/
public Brand $brand;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class CollectionSearch extends Component
{
/**
* Should the browser be visible?
*
* @var bool
*/
public bool $showBrowser = false;

Expand All @@ -32,15 +30,11 @@ class CollectionSearch extends Component

/**
* Any existing collections to exclude from selecting.
*
* @var \Illuminate\Support\Collection
*/
public Collection $existing;

/**
* The currently selected collections.
*
* @var array
*/
public array $selected = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ class CollectionGroupShow extends Component

/**
* The current collection group.
*
* @var CollectionGroup
*/
public CollectionGroup $group;

Expand All @@ -34,15 +32,11 @@ class CollectionGroupShow extends Component

/**
* Show confirmation if we want to delete the group.
*
* @var bool
*/
public bool $showDeleteConfirm = false;

/**
* Failsafe confirmation in order to delete the collection group.
*
* @var bool
*/
public bool $deletionConfirm = false;

Expand Down
Loading

0 comments on commit 83812d9

Please sign in to comment.