Skip to content

Commit

Permalink
Fix styling changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentBean authored and github-actions[bot] committed Sep 22, 2023
1 parent 6269070 commit 5993f37
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"require": {
"php": "^8.1",
"justbetter/laravel-magento-client": "^1.1.0",
"laravel/framework": "^10.0"
"laravel/framework": "10.*",
"orchestra/testbench": "8.*"
},
"require-dev": {
"laravel/pint": "^1.6",
"nunomaduro/larastan": "^2.5",
"orchestra/testbench": "^8.0",
"phpstan/phpstan-mockery": "^1.1",
"phpunit/phpunit": "^10.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Actions/CheckMagentoEnabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function __construct(
) {
}

public function enabled(string $sku, bool $force = false, ?string $store = null): bool
public function enabled(string $sku, bool $force = false, string $store = null): bool
{
$data = $this->productData->retrieve($sku, $force, $store);

Expand Down
4 changes: 2 additions & 2 deletions src/Actions/RetrieveProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(protected Magento $magento)
{
}

public function retrieve(string $sku, bool $force = false, ?string $store = null): ?array
public function retrieve(string $sku, bool $force = false, string $store = null): ?array
{
$product = MagentoProduct::findBySku($sku, $store);

Expand Down Expand Up @@ -54,7 +54,7 @@ public function retrieve(string $sku, bool $force = false, ?string $store = null
return $product->data;
}

protected function getMagentoProduct(string $sku, ?string $store = null): Response
protected function getMagentoProduct(string $sku, string $store = null): Response
{
return $this->magento
->store($store)
Expand Down
2 changes: 1 addition & 1 deletion src/Contracts/ChecksMagentoEnabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

interface ChecksMagentoEnabled
{
public function enabled(string $sku, bool $force = false, ?string $store = null): bool;
public function enabled(string $sku, bool $force = false, string $store = null): bool;
}
2 changes: 1 addition & 1 deletion src/Contracts/RetrievesProductData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

interface RetrievesProductData
{
public function retrieve(string $sku, bool $force = false, ?string $store = null): ?array;
public function retrieve(string $sku, bool $force = false, string $store = null): ?array;
}
2 changes: 1 addition & 1 deletion src/Jobs/CheckAllKnownProductsExistenceJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Illuminate\Queue\SerializesModels;
use JustBetter\MagentoProducts\Contracts\ChecksAllKnownProducts;

class CheckAllKnownProductsExistenceJob implements ShouldQueue, ShouldBeUnique
class CheckAllKnownProductsExistenceJob implements ShouldBeUnique, ShouldQueue
{
use Dispatchable;
use InteractsWithQueue;
Expand Down
4 changes: 2 additions & 2 deletions src/Jobs/DiscoverMagentoProductsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
use JustBetter\MagentoProducts\Contracts\ProcessesMagentoSkus;
use JustBetter\MagentoProducts\Contracts\RetrievesMagentoSkus;

class DiscoverMagentoProductsJob implements ShouldQueue, ShouldBeUnique
class DiscoverMagentoProductsJob implements ShouldBeUnique, ShouldQueue
{
use Batchable;
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;
use Batchable;

public int $timeout = 60;

Expand Down
2 changes: 1 addition & 1 deletion src/Models/MagentoProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MagentoProduct extends Model
'last_checked' => 'datetime',
];

public static function findBySku(string $sku, ?string $store = null): ?static
public static function findBySku(string $sku, string $store = null): ?static
{
/** @var ?static $item */
$item = static::query()
Expand Down

0 comments on commit 5993f37

Please sign in to comment.