@@ -22,12 +22,11 @@ class SchemaBuilder
2222 * ], ['id', 'title'])
2323 * ```
2424 *
25- * @param string $name Property name
26- * @param array<string, mixed> $objectProperties Properties of objects in the array
27- * @param array<string> $requiredProperties Required properties in each object
28- * @param string $description Property description
29- * @param bool $required Whether the array property itself is required
30- * @return SchemaProperty
25+ * @param string $name Property name
26+ * @param array<string, mixed> $objectProperties Properties of objects in the array
27+ * @param array<string> $requiredProperties Required properties in each object
28+ * @param string $description Property description
29+ * @param bool $required Whether the array property itself is required
3130 */
3231 public static function arrayOfObjects (
3332 string $ name ,
@@ -41,7 +40,7 @@ public static function arrayOfObjects(
4140 'properties ' => $ objectProperties ,
4241 ];
4342
44- if (!empty ($ requiredProperties )) {
43+ if (! empty ($ requiredProperties )) {
4544 $ items ['required ' ] = $ requiredProperties ;
4645 }
4746
@@ -57,11 +56,10 @@ public static function arrayOfObjects(
5756 /**
5857 * Creates an array property that contains primitive values.
5958 *
60- * @param string $name Property name
61- * @param string $itemType Type of items in the array ('string', 'integer', 'number', 'boolean')
62- * @param string $description Property description
63- * @param bool $required Whether the array property is required
64- * @return SchemaProperty
59+ * @param string $name Property name
60+ * @param string $itemType Type of items in the array ('string', 'integer', 'number', 'boolean')
61+ * @param string $description Property description
62+ * @param bool $required Whether the array property is required
6563 */
6664 public static function arrayOfPrimitives (
6765 string $ name ,
@@ -81,12 +79,11 @@ public static function arrayOfPrimitives(
8179 /**
8280 * Creates an object property with nested properties.
8381 *
84- * @param string $name Property name
85- * @param array<string, mixed> $properties Nested object properties
86- * @param array<string> $requiredProperties Required nested properties
87- * @param string $description Property description
88- * @param bool $required Whether the object property is required
89- * @return SchemaProperty
82+ * @param string $name Property name
83+ * @param array<string, mixed> $properties Nested object properties
84+ * @param array<string> $requiredProperties Required nested properties
85+ * @param string $description Property description
86+ * @param bool $required Whether the object property is required
9087 */
9188 public static function nestedObject (
9289 string $ name ,
@@ -97,7 +94,7 @@ public static function nestedObject(
9794 ): SchemaProperty {
9895 $ objectSchema = ['properties ' => $ properties ];
9996
100- if (!empty ($ requiredProperties )) {
97+ if (! empty ($ requiredProperties )) {
10198 $ objectSchema ['required ' ] = $ requiredProperties ;
10299 }
103100
0 commit comments