Skip to content

Commit 7a9d77f

Browse files
committed
ACPT-1219: Fix Static Tests failures for application-Server PR
1 parent 8096bdd commit 7a9d77f

File tree

11 files changed

+33
-35
lines changed

11 files changed

+33
-35
lines changed

app/code/Magento/GiftMessage/Model/OrderItemRepository.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ class OrderItemRepository implements \Magento\GiftMessage\Api\OrderItemRepositor
5353
protected $helper;
5454

5555
/**
56-
* Message factory.
57-
*
5856
* @var \Magento\GiftMessage\Model\MessageFactory
5957
*/
6058
protected $messageFactory;

app/code/Magento/Indexer/Console/Command/IndexerSetDimensionsModeCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ protected function configure()
7070
}
7171

7272
/**
73-
*
7473
* @inheritdoc
7574
* @param InputInterface $input
7675
* @param OutputInterface $output

lib/internal/Magento/Framework/Cache/Core.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,11 @@ protected function _tags($tags)
5555
/**
5656
* Save some data in a cache
5757
*
58-
* @param mixed $data Data to put in cache (can be another type than string if
59-
* automatic_serialization is on)
60-
* @param null|string $cacheId Cache id (if not set, the last cache id will be used)
61-
* @param string[] $tags Cache tags
62-
* @param bool|int $specificLifetime If != false, set a specific lifetime for this cache record
63-
* (null => infinite lifetime)
64-
* @param int $priority integer between 0 (very low priority) and 10 (maximum priority) used by
65-
* some particular backends
58+
* @param mixed $data Data to put in cache (can be another type than string if automatic_serialization is on)
59+
* @param null|string $cacheId Cache id (if not set, the last cache id will be used)
60+
* @param string[] $tags Cache tags
61+
* @param bool|int $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
62+
* @param int $priority integer between 0 (very low priority) and 10 (maximum priority) used by some particular backends
6663
* @return bool True if no problem
6764
*/
6865
public function save($data, $cacheId = null, $tags = [], $specificLifetime = false, $priority = 8)

lib/internal/Magento/Framework/Model/ActionValidator/RemoveAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public function isAllowed(AbstractModel $model)
5353
}
5454

5555
/**
56-
*
5756
* Get clean model name without Interceptor and Proxy part and slashes
57+
*
5858
* @param object $object
5959
* @return mixed
6060
*/

lib/internal/Magento/Framework/ObjectManager/ObjectManager.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ class ObjectManager implements \Magento\Framework\ObjectManagerInterface
3434
protected $_config;
3535

3636
/**
37+
*
3738
* @param FactoryInterface $factory
3839
* @param ConfigInterface $config
3940
* @param array &$sharedInstances
4041
*/
41-
public function __construct(FactoryInterface $factory, ConfigInterface $config, &$sharedInstances = [])
42+
public function __construct(FactoryInterface $factory, ConfigInterface $config, array &$sharedInstances = [])
4243
{
4344
$this->_config = $config;
4445
$this->_factory = $factory;

lib/internal/Magento/Framework/Registry.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
* @api
1717
* @deprecated 102.0.0
18+
* @see Nothing
1819
* @since 100.0.2
1920
*/
2021
class Registry implements ResetAfterRequestInterface
@@ -31,8 +32,8 @@ class Registry implements ResetAfterRequestInterface
3132
*
3233
* @param string $key
3334
* @return mixed
34-
*
3535
* @deprecated 102.0.0
36+
* @see Nothing
3637
*/
3738
public function registry($key)
3839
{
@@ -50,8 +51,8 @@ public function registry($key)
5051
* @param bool $graceful
5152
* @return void
5253
* @throws \RuntimeException
53-
*
5454
* @deprecated 102.0.0
55+
* @see Nothing
5556
*/
5657
public function register($key, $value, $graceful = false)
5758
{
@@ -69,8 +70,8 @@ public function register($key, $value, $graceful = false)
6970
*
7071
* @param string $key
7172
* @return void
72-
*
7373
* @deprecated 102.0.0
74+
* @see Nothing
7475
*/
7576
public function unregister($key)
7677
{
@@ -94,7 +95,6 @@ public function __destruct()
9495
array_walk($keys, [$this, 'unregister']);
9596
}
9697

97-
9898
/**
9999
* @inheritDoc
100100
*/

lib/internal/Magento/Framework/Session/SessionManager.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ public function start()
208208
}
209209

210210
/**
211+
*
211212
* @return void
212213
*/
213214
public function registerShutdown() {

lib/internal/Magento/Framework/Session/Storage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
<?php
22
/**
3-
* Default session storage
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
86
namespace Magento\Framework\Session;
97

108
use Magento\Framework\ObjectManager\ResetAfterRequestInterface;
119

10+
/**
11+
* Default session storage
12+
*/
1213
class Storage extends \Magento\Framework\DataObject implements StorageInterface, ResetAfterRequestInterface
1314
{
1415
/**

lib/internal/Magento/Framework/Webapi/ErrorProcessor.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@
2828
*/
2929
class ErrorProcessor
3030
{
31-
const DEFAULT_SHUTDOWN_FUNCTION = 'apiShutdownFunction';
31+
public const DEFAULT_SHUTDOWN_FUNCTION = 'apiShutdownFunction';
3232

33-
const DEFAULT_ERROR_HTTP_CODE = 500;
33+
public const DEFAULT_ERROR_HTTP_CODE = 500;
3434

35-
const DEFAULT_RESPONSE_CHARSET = 'UTF-8';
35+
public const DEFAULT_RESPONSE_CHARSET = 'UTF-8';
3636

37-
const INTERNAL_SERVER_ERROR_MSG = 'Internal Error. Details are available in Magento log file. Report ID: %s';
37+
public const INTERNAL_SERVER_ERROR_MSG = 'Internal Error. Details are available in Magento log file. Report ID: %s';
3838

39-
/**#@+
39+
/**
4040
* Error data representation formats.
4141
*/
42-
const DATA_FORMAT_JSON = 'json';
43-
44-
const DATA_FORMAT_XML = 'xml';
42+
public const DATA_FORMAT_JSON = 'json';
4543

46-
/**#@-*/
44+
public const DATA_FORMAT_XML = 'xml';
4745

48-
/**#@-*/
46+
/**
47+
* @var \Magento\Framework\Json\Encoder $encoder
48+
*/
4949
protected $encoder;
5050

5151
/**

lib/internal/Magento/Framework/Webapi/Request.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Web API request.
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -16,19 +14,21 @@
1614
use Magento\Framework\Stdlib\StringUtils;
1715

1816
/**
17+
* Web API request.
18+
*
1919
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2020
*/
2121
class Request extends HttpRequest implements RequestInterface
2222
{
2323
/**
2424
* Name of query parameter to specify services for which to generate schema
2525
*/
26-
const REQUEST_PARAM_SERVICES = 'services';
26+
public const REQUEST_PARAM_SERVICES = 'services';
2727

2828
/**
2929
* services parameter value to indicate that a schema for all services should be generated
3030
*/
31-
const ALL_SERVICES = 'all';
31+
public const ALL_SERVICES = 'all';
3232

3333
/**
3434
* Modify pathInfo: strip down the front name and query parameters.

0 commit comments

Comments
 (0)