diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index e10a470a..75f2db68 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -17,6 +17,8 @@
+
+
@@ -26,6 +28,26 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Interfaces/ColorInterface.php b/src/Interfaces/ColorInterface.php
index b72f1fcc..b14b913b 100644
--- a/src/Interfaces/ColorInterface.php
+++ b/src/Interfaces/ColorInterface.php
@@ -26,13 +26,6 @@ interface ColorInterface
*/
public function colorspace(): ColorspaceInterface;
- /**
- * Cast color object to string
- *
- * @return string
- */
- public function __toString(): string;
-
/**
* Cast color object to string
*
@@ -104,4 +97,11 @@ interface ColorInterface
* @return bool
*/
public function isClear(): bool;
+
+ /**
+ * Cast color object to string
+ *
+ * @return string
+ */
+ public function __toString(): string;
}
diff --git a/src/Interfaces/DrawableFactoryInterface.php b/src/Interfaces/DrawableFactoryInterface.php
index dd22bdae..e29f11dc 100644
--- a/src/Interfaces/DrawableFactoryInterface.php
+++ b/src/Interfaces/DrawableFactoryInterface.php
@@ -23,13 +23,6 @@ interface DrawableFactoryInterface
*/
public function create(): DrawableInterface;
- /**
- * Create the end product by invoking the factory
- *
- * @return DrawableInterface
- */
- public function __invoke(): DrawableInterface;
-
/**
* Define the background color of the drawable object
*
@@ -46,4 +39,11 @@ interface DrawableFactoryInterface
* @return DrawableFactoryInterface
*/
public function border(mixed $color, int $size = 1): self;
+
+ /**
+ * Create the end product by invoking the factory
+ *
+ * @return DrawableInterface
+ */
+ public function __invoke(): DrawableInterface;
}
diff --git a/src/Typography/FontFactory.php b/src/Typography/FontFactory.php
index 98d6dadd..78d7071a 100644
--- a/src/Typography/FontFactory.php
+++ b/src/Typography/FontFactory.php
@@ -28,16 +28,6 @@ class FontFactory
}
}
- /**
- * Build font
- *
- * @return FontInterface
- */
- public function __invoke(): FontInterface
- {
- return $this->font;
- }
-
/**
* Set the filename of the font to be built
*
@@ -167,4 +157,14 @@ class FontFactory
return $this;
}
+
+ /**
+ * Build font
+ *
+ * @return FontInterface
+ */
+ public function __invoke(): FontInterface
+ {
+ return $this->font;
+ }
}
diff --git a/tests/Unit/CollectionTest.php b/tests/Unit/CollectionTest.php
index 94334341..0b36e430 100644
--- a/tests/Unit/CollectionTest.php
+++ b/tests/Unit/CollectionTest.php
@@ -97,6 +97,7 @@ final class CollectionTest extends BaseTestCase
public function testGet(): void
{
+ // phpcs:ignore SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed
$collection = new Collection([
'first',
'second',
@@ -129,6 +130,7 @@ final class CollectionTest extends BaseTestCase
public function testGetAtPosition(): void
{
+ // phpcs:ignore SlevomatCodingStandard.Arrays.DisallowPartiallyKeyed
$collection = new Collection([1, 2, 'foo' => 'bar']);
$this->assertEquals(1, $collection->getAtPosition(0));
$this->assertEquals(2, $collection->getAtPosition(1));