Skip to content

Commit

Permalink
Update tests workflow
Browse files Browse the repository at this point in the history
Fix styling

Update tests workflow
  • Loading branch information
romanzipp committed Feb 16, 2023
1 parent 2008f8a commit cab2f66
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 20 deletions.
3 changes: 1 addition & 2 deletions src/Conductors/ArrayFormatConductor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace romanzipp\Seo\Conductors;

use InvalidArgumentException;
use romanzipp\Seo\Conductors\ArrayStructures\AbstractArraySchema;
use romanzipp\Seo\Conductors\ArrayStructures\AttributeArraySchema;
use romanzipp\Seo\Conductors\ArrayStructures\NestedArraySchema;
Expand Down Expand Up @@ -135,7 +134,7 @@ public function setData(array $data): void
$schema = $this->getSchema($key);

if (null === $schema) {
throw new InvalidArgumentException("Unknown key {$key} provided for seo array format");
throw new \InvalidArgumentException("Unknown key {$key} provided for seo array format");
}

$schema->apply($value);
Expand Down
6 changes: 2 additions & 4 deletions src/Conductors/ArrayStructures/AbstractArraySchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace romanzipp\Seo\Conductors\ArrayStructures;

use Closure;

abstract class AbstractArraySchema
{
/**
Expand Down Expand Up @@ -40,7 +38,7 @@ public static function make(?string $class = null)
*
* @return static
*/
public function callback(Closure $callback)
public function callback(\Closure $callback)
{
$this->callback = $callback;

Expand All @@ -52,7 +50,7 @@ public function callback(Closure $callback)
*
* @return \Closure
*/
public function getCallback(): Closure
public function getCallback(): \Closure
{
return $this->callback;
}
Expand Down
4 changes: 1 addition & 3 deletions src/Conductors/ArrayStructures/AttributeArraySchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace romanzipp\Seo\Conductors\ArrayStructures;

use InvalidArgumentException;

class AttributeArraySchema extends AbstractArraySchema
{
/**
Expand All @@ -12,7 +10,7 @@ class AttributeArraySchema extends AbstractArraySchema
public function apply($data): void
{
if ( ! is_array($data)) {
throw new InvalidArgumentException('Invalid argument supplied for attribute array schema');
throw new \InvalidArgumentException('Invalid argument supplied for attribute array schema');
}

foreach ($data as $attributes) {
Expand Down
4 changes: 1 addition & 3 deletions src/Conductors/ArrayStructures/NestedArraySchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace romanzipp\Seo\Conductors\ArrayStructures;

use InvalidArgumentException;

class NestedArraySchema extends AbstractArraySchema
{
/**
Expand All @@ -12,7 +10,7 @@ class NestedArraySchema extends AbstractArraySchema
public function apply($data): void
{
if ( ! is_array($data)) {
throw new InvalidArgumentException('Invalid argument supplied for nested array schema');
throw new \InvalidArgumentException('Invalid argument supplied for nested array schema');
}

foreach ($data as $attribute => $value) {
Expand Down
4 changes: 1 addition & 3 deletions src/Conductors/ArrayStructures/SingleArraySchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace romanzipp\Seo\Conductors\ArrayStructures;

use InvalidArgumentException;

class SingleArraySchema extends AbstractArraySchema
{
/**
Expand All @@ -12,7 +10,7 @@ class SingleArraySchema extends AbstractArraySchema
public function apply($value): void
{
if ( ! is_string($value)) {
throw new InvalidArgumentException('Invalid argument supplied for single array schema');
throw new \InvalidArgumentException('Invalid argument supplied for single array schema');
}

$this->call([
Expand Down
3 changes: 1 addition & 2 deletions src/Conductors/MixManifestConductor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace romanzipp\Seo\Conductors;

use Closure;
use romanzipp\Seo\Conductors\Types\ManifestAsset;
use romanzipp\Seo\Exceptions\ManifestNotFoundException;
use romanzipp\Seo\Services\SeoService;
Expand Down Expand Up @@ -67,7 +66,7 @@ public function getAssets(): array
*
* @return \romanzipp\Seo\Conductors\MixManifestConductor
*/
public function map(Closure $callback): self
public function map(\Closure $callback): self
{
$this->mapCallback = $callback;

Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/ManifestNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace romanzipp\Seo\Exceptions;

use Exception;

class ManifestNotFoundException extends Exception
class ManifestNotFoundException extends \Exception
{
}

0 comments on commit cab2f66

Please sign in to comment.