@@ -12,9 +12,9 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * Return the descriptors value for the given descriptor. |
| 14 | 14 | * |
| 15 | - * @param string $descriptor |
|
| 15 | + * @param string $descriptorKey |
|
| 16 | 16 | * |
| 17 | - * @return mixed |
|
| 17 | + * @return DescriptorInterface |
|
| 18 | 18 | */ |
| 19 | 19 | public function get($descriptorKey): DescriptorInterface; |
| 20 | 20 | |
@@ -45,8 +45,9 @@ discard block |
||
| 45 | 45 | * defined in the Descriptor class. |
| 46 | 46 | * |
| 47 | 47 | * @param string $key |
| 48 | - * @param string $descriptor |
|
| 48 | + * @param DescriptorInterface $descriptor |
|
| 49 | 49 | * @param int $priority |
| 50 | + * @return void |
|
| 50 | 51 | */ |
| 51 | 52 | public function set(string $key, DescriptorInterface $descriptor, int $priority = 0); |
| 52 | 53 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description; |
| 6 | 6 | |
@@ -32,9 +32,9 @@ discard block |
||
| 32 | 32 | public function __construct(array $enhancers, Schema $schema = null, array $resolvers = []) |
| 33 | 33 | { |
| 34 | 34 | // type safety ... |
| 35 | - array_walk($enhancers, function (EnhancerInterface $enhancer) { |
|
| 35 | + array_walk($enhancers, function(EnhancerInterface $enhancer) { |
|
| 36 | 36 | }); |
| 37 | - array_walk($resolvers, function (SubjectResolverInterface $enhancer) { |
|
| 37 | + array_walk($resolvers, function(SubjectResolverInterface $enhancer) { |
|
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | 40 | $this->enhancers = $enhancers; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Psi\Component\Description\Descriptor; |
| 6 | 6 | |