-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
cc9ca1a
commit e7d822f
Showing
5 changed files
with
62 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use function array_merge; | ||
use function assert; | ||
use Something\Api; | ||
use Something\Paths; | ||
use const Something\CONSTANT; | ||
use Whatever\File; | ||
|
||
use Whatever\SpecificationFile; | ||
use Whatever\Reader; | ||
|
||
class Merge | ||
{ | ||
public function do(array $a, array $b): void | ||
{ | ||
$merge = array_merge($a, $b); | ||
|
||
$reader = new Reader(new SpecificationFile(new File()), new Paths()); | ||
$result = $reader->merge($merge, new Api(), flag: CONSTANT); | ||
|
||
assert($result); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Something\Api; | ||
use Something\Paths; | ||
use Whatever\File; | ||
use Whatever\Reader; | ||
use Whatever\SpecificationFile; | ||
|
||
use function array_merge; | ||
use function assert; | ||
|
||
use const Something\CONSTANT; | ||
|
||
class Merge | ||
{ | ||
public function do(array $a, array $b): void | ||
{ | ||
$merge = array_merge($a, $b); | ||
|
||
$reader = new Reader(new SpecificationFile(new File()), new Paths()); | ||
$result = $reader->merge($merge, new Api(), flag: CONSTANT); | ||
|
||
assert($result); | ||
} | ||
} |