Skip to content

Commit 19d7bba

Browse files
committed
PWA-2445: Add CI builds to magento2-pwa repo
1 parent 06b364f commit 19d7bba

File tree

19 files changed

+91
-94
lines changed

19 files changed

+91
-94
lines changed

CatalogGraphQlAux/Model/TypeResolver/ProductAttributeMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616
class ProductAttributeMetadata implements TypeResolverInterface
1717
{
18-
const TYPE = 'ProductAttributeMetadata';
18+
private const TYPE = 'ProductAttributeMetadata';
1919

2020
/**
2121
* @inheritdoc

ContactGraphQlPwa/Model/Resolver/ContactUs.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ public function getDefaultValues(): array
100100
/**
101101
* Clean input values and set default values
102102
*
103-
* @param array<string, string> $input
104-
*
105-
* @return array<string, string>
103+
* @param string[] $input
104+
* @return string[]
106105
*/
107106
public function cleanInput(array $input): array
108107
{
@@ -130,10 +129,9 @@ public function cleanInput(array $input): array
130129
/**
131130
* Validate input data
132131
*
133-
* @param array<string, string> $input
134-
*
132+
* @param string[] $input
135133
* @return void
136-
* @throws \Magento\Framework\GraphQl\Exception\GraphQlInputException
134+
* @throws GraphQlInputException
137135
*/
138136
public function validateInput(array $input): void
139137
{

EavGraphQlAux/Model/Resolver/AttributesMetadata.php

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
use Magento\Framework\GraphQl\Config\Element\Field;
1414
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
1515
use Magento\Framework\GraphQl\Query\ResolverInterface;
16-
use Magento\Framework\GraphQl\Query\Uid;
17-
use Magento\Framework\GraphQl\Query\EnumLookup;
18-
use Magento\EavGraphQl\Model\Resolver\Query\Type;
1916
use Magento\EavGraphQlAux\Model\Resolver\DataProvider\AttributeMetadata as MetadataProvider;
2017
use Magento\Store\Api\Data\StoreInterface;
2118

@@ -24,8 +21,6 @@
2421
*/
2522
class AttributesMetadata implements ResolverInterface
2623
{
27-
const COMPLEX_DATA_TYPE = 'COMPLEX';
28-
2924
/**
3025
* @var Attributes
3126
*/
@@ -41,40 +36,18 @@ class AttributesMetadata implements ResolverInterface
4136
*/
4237
private $enumDataMapper;
4338

44-
/** @var Uid */
45-
private $uidEncoder;
46-
47-
/**
48-
* @var EnumLookup
49-
*/
50-
private $enumLookup;
51-
52-
/**
53-
* @var Type
54-
*/
55-
private $type;
56-
5739
/**
5840
* @param Attributes $attributes
5941
* @param DataMapperInterface $enumDataMapper
60-
* @param Uid $uidEncoder
61-
* @param EnumLookup $enumLookup
62-
* @param Type $type
6342
* @param MetadataProvider $metadataProvider
6443
*/
6544
public function __construct(
6645
Attributes $attributes,
6746
DataMapperInterface $enumDataMapper,
68-
Uid $uidEncoder,
69-
EnumLookup $enumLookup,
70-
Type $type,
7147
MetadataProvider $metadataProvider
7248
) {
7349
$this->attributes = $attributes;
7450
$this->enumDataMapper = $enumDataMapper;
75-
$this->uidEncoder = $uidEncoder;
76-
$this->enumLookup = $enumLookup;
77-
$this->type = $type;
7851
$this->metadataProvider = $metadataProvider;
7952
}
8053

EavGraphQlAux/Model/TypeResolver/UiAttributeTypeBoolean.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class UiAttributeTypeBoolean implements TypeResolverInterface
1616
{
17-
const TYPE = 'UiAttributeTypeBoolean';
17+
private const TYPE = 'UiAttributeTypeBoolean';
1818

1919
/**
2020
* @inheritdoc

EavGraphQlAux/Model/TypeResolver/UiAttributeTypeMultiSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class UiAttributeTypeMultiSelect implements TypeResolverInterface
1616
{
17-
const TYPE = 'UiAttributeTypeMultiSelect';
17+
private const TYPE = 'UiAttributeTypeMultiSelect';
1818

1919
/**
2020
* @inheritdoc

EavGraphQlAux/Model/TypeResolver/UiAttributeTypeSelect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class UiAttributeTypeSelect implements TypeResolverInterface
1616
{
17-
const TYPE = 'UiAttributeTypeSelect';
17+
private const TYPE = 'UiAttributeTypeSelect';
1818

1919
/**
2020
* @inheritdoc

NewsletterGraphQlPwa/composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
},
1212
"require": {
1313
"php": "~7.4.0||~8.1.0",
14-
"magento/framework": "*",
15-
"magento/module-store": "*",
16-
"magento/module-newsletter": "*"
14+
"magento/framework": "*"
1715
},
1816
"suggest": {
19-
"magento/module-graph-ql": "*"
17+
"magento/module-graph-ql": "*",
18+
"magento/module-newsletter": "*",
19+
"magento/module-store": "*"
2020
},
2121
"autoload": {
2222
"files": [

QuoteGraphQlPwa/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
"require": {
1313
"php": "~7.4.0||~8.1.0",
1414
"magento/framework": "*",
15-
"magento/module-quote": "*",
16-
"magento/module-quote-graph-ql": "*"
15+
"magento/module-quote": "*"
1716
},
1817
"suggest": {
19-
"magento/module-graph-ql": "*"
18+
"magento/module-graph-ql": "*",
19+
"magento/module-quote-graph-ql": "*"
2020
},
2121
"autoload": {
2222
"files": [

WeeeGraphQlAux/Model/TypeResolver/UiAttributeTypeFixedProductTax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class UiAttributeTypeFixedProductTax implements TypeResolverInterface
1616
{
17-
const TYPE = 'UiAttributeTypeFixedProductTax';
17+
private const TYPE = 'UiAttributeTypeFixedProductTax';
1818

1919
/**
2020
* @inheritdoc

WeeeGraphQlAux/composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"type": "magento2-module",
55
"require": {
66
"php": "~7.4.0||~8.1.0",
7-
"magento/framework": "*",
7+
"magento/framework": "*"
8+
},
9+
"suggest": {
810
"magento/module-eav-graph-ql-aux": "*"
911
},
1012
"license": [

0 commit comments

Comments
 (0)