Skip to content
This repository was archived by the owner on Dec 19, 2022. It is now read-only.

Commit af8faf9

Browse files
author
Seif Kamal
committed
Split constructor into multiple lines
1 parent d9cb1e7 commit af8faf9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Struct.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ class Struct
2121
* to `true`; Set to `false` if you only want to validate some of the array elements.
2222
* @return Struct
2323
*/
24-
public static function of(string $name, array $interface, bool $exhaustive = true): self
25-
{
24+
public static function of(
25+
string $name,
26+
array $interface,
27+
bool $exhaustive = true
28+
): self {
2629
$struct = new static;
2730
$struct->name = $name;
2831
$struct->interface = $interface;

0 commit comments

Comments
 (0)