Skip to content

Commit 478c552

Browse files
Merge pull request #1184 from algolia/develop
Merge develop into master for v3.3.0 release.
2 parents 0757549 + d646567 commit 478c552

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+368
-162
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070

7171
"quality-tools":
7272
docker:
73-
- image: algolia/magento2-circleci:v3-2.3.5-p2
73+
- image: algolia/magento2-circleci:2.4.4-php7.4-v1
7474
working_directory: ~/build_directory/algoliasearch-magento-2
7575
steps:
7676
- checkout
@@ -92,8 +92,8 @@ jobs:
9292
composer global require algolia/magento2-tools
9393
9494
# We have to do this again because we restore the cache above, overwriting the vendor with the original.
95-
cd ~/magento_directory/vendor/algolia
96-
rm -rf algoliasearch-magento-2
95+
mkdir ~/magento_directory/vendor/algolia
96+
# rm -rf algoliasearch-magento-2
9797
cp -R ~/build_directory/algoliasearch-magento-2 ~/magento_directory/vendor/algolia
9898
cd ~/magento_directory
9999
composer dump-autoload

.github/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .github/release.yml
2+
3+
changelog:
4+
exclude:
5+
labels:
6+
- ignore-for-release
7+
categories:
8+
- title: Breaking Changes 🛠
9+
labels:
10+
- Semver-Major
11+
- breaking-change
12+
- title: New Features 🎉
13+
labels:
14+
- Semver-Minor
15+
- enhancement
16+
- title: Bug Fixes
17+
labels:
18+
- "*"

.php_cs renamed to .php-cs-fixer.php

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
/** @var PhpCsFixer\Config $config */
44
if (isset($_SERVER['argv']) && $_SERVER['argv'][3]) {
5-
$config = require dirname($_SERVER['argv'][3], 3) . '/.php_cs.dist';
5+
$config = require dirname($_SERVER['argv'][3], 3) . '/.php-cs-fixer.dist.php';
66
} else {
7-
$config = require __DIR__ . '/../../../.php_cs.dist';
7+
$config = require __DIR__ . '/../../../.php-cs-fixer.dist.php';
88
}
99

1010
$originalRules = $config->getRules();
@@ -14,7 +14,7 @@
1414
// Commented rules are released, but not in the version of PHP CS fixer Magento supports
1515
$extensionRules = [
1616
'blank_line_after_opening_tag' => true,
17-
'blank_line_before_return' => true,
17+
'blank_line_before_statement' => true,
1818
'cast_spaces' => true,
1919
'combine_consecutive_unsets' => true,
2020
'mb_str_functions' => true,
@@ -23,7 +23,7 @@
2323
'no_empty_statement' => true,
2424
'no_multiline_whitespace_around_double_arrow' => true,
2525
'no_short_bool_cast' => true,
26-
'no_short_echo_tag' => true,
26+
'echo_tag_syntax' => true,
2727
// 'no_superfluous_phpdoc_tags' => true,
2828
'no_unneeded_control_parentheses' => true,
2929
'no_unreachable_default_argument_value' => true,
@@ -37,20 +37,22 @@
3737
'not_operator_with_space' => false,
3838
'object_operator_without_whitespace' => true,
3939
'phpdoc_annotation_without_dot' => true,
40-
'phpdoc_inline_tag' => true,
40+
'general_phpdoc_tag_rename' => true,
41+
'phpdoc_inline_tag_normalizer' => true,
42+
'phpdoc_tag_type' => true,
4143
'phpdoc_order' => true,
4244
'phpdoc_scalar' => true,
4345
'phpdoc_separation' => true,
4446
'phpdoc_single_line_var_spacing' => true,
4547
'protected_to_private' => true,
46-
'psr4' => true,
48+
'psr_autoloading' => true,
4749
'short_scalar_cast' => true, // ?
4850
'single_blank_line_before_namespace' => true,
4951
'single_quote' => true,
5052
'space_after_semicolon' => true,
5153
'standardize_not_equals' => true,
5254
'ternary_operator_spaces' => true,
53-
'trailing_comma_in_multiline_array' => true,
55+
'trailing_comma_in_multiline' => true,
5456
'trim_array_spaces' => true,
5557
];
5658

Api/Data/JobInterface.php

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,52 @@ interface JobInterface
2929
const FIELD_RETRIES = 'retries';
3030
const FIELD_ERROR_LOG = 'error_log';
3131
const FIELD_DATA_SIZE = 'data_size';
32-
/**#@-*/
32+
33+
/**
34+
* @return string
35+
*/
36+
public function getClass(): string;
37+
38+
/**
39+
* @param string $class
40+
*
41+
* @return $this
42+
*/
43+
public function setClass(string $class): self;
44+
45+
/**
46+
* @return string
47+
*/
48+
public function getMethod(): string;
49+
50+
/**
51+
* @param string $method
52+
*
53+
* @return $this
54+
*/
55+
public function setMethod(string $method): self;
56+
57+
/**
58+
* @return string
59+
*/
60+
public function getBody(): string;
61+
62+
/**
63+
* @param string $data
64+
*
65+
* @return $this
66+
*/
67+
public function setBody(string $data): self;
68+
69+
/**
70+
* @return int
71+
*/
72+
public function getBodySize(): int;
73+
74+
/**
75+
* @param int $size
76+
*
77+
* @return $this
78+
*/
79+
public function setBodySize(int $size): self;
3380
}

Block/Adminhtml/Job/View.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(
2727
$this->coreRegistry = $coreRegistry;
2828
}
2929

30-
/** {@inheritdoc} */
30+
/** @inheritdoc */
3131
protected function _prepareLayout()
3232
{
3333
/** @var Button $button */

Block/Adminhtml/Queue/Status.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,15 @@ public function getQueueRunnerStatus()
7373
switch ($this->queueRunnerIndexer->getStatus()) {
7474
case \Magento\Framework\Indexer\StateInterface::STATUS_VALID:
7575
$status = 'Ready';
76+
7677
break;
7778
case \Magento\Framework\Indexer\StateInterface::STATUS_INVALID:
7879
$status = 'Reindex required';
80+
7981
break;
8082
case \Magento\Framework\Indexer\StateInterface::STATUS_WORKING:
8183
$status = 'Processing';
84+
8285
break;
8386
}
8487

Block/Navigation/Renderer/CategoryRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function render(FilterInterface $filter)
3434
}
3535

3636
/**
37-
* {@inheritdoc}
37+
* @inheritdoc
3838
*/
3939
protected function canRenderFilter()
4040
{

Block/Navigation/Renderer/DefaultRenderer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getIsSearchable()
6363
}
6464

6565
/**
66-
* {@inheritdoc}
66+
* @inheritdoc
6767
*/
6868
public function render(FilterInterface $filter)
6969
{
@@ -80,7 +80,7 @@ public function render(FilterInterface $filter)
8080
}
8181

8282
/**
83-
* {@inheritdoc}
83+
* @inheritdoc
8484
*/
8585
public function getJsLayout()
8686
{
@@ -109,7 +109,7 @@ public function getJsLayout()
109109
}
110110

111111
/**
112-
* {@inheritdoc}
112+
* @inheritdoc
113113
*/
114114
protected function canRenderFilter()
115115
{

Block/Navigation/Renderer/PriceRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function getFieldFormat()
1919
}
2020

2121
/**
22-
* {@inheritdoc}
22+
* @inheritdoc
2323
*/
2424
protected function getConfig()
2525
{

Block/Navigation/Renderer/SliderRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getDataRole()
8181
}
8282

8383
/**
84-
* {@inheritdoc}
84+
* @inheritdoc
8585
*/
8686
protected function canRenderFilter()
8787
{

0 commit comments

Comments
 (0)