Skip to content

Commit d5dca69

Browse files
ENGCOM-4086: Optimize snail_case replacement to PascalCase #20596
- Merge Pull Request #20596 from M2Coach/magento2:FixCamelCase - Merged commits: 1. 40d9c7e 2. b62691d
2 parents 360ed77 + b62691d commit d5dca69

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/GridOnly.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Catalog\Controller\Adminhtml\Product;
87

9-
class GridOnly extends \Magento\Catalog\Controller\Adminhtml\Product
8+
use Magento\Framework\App\Action\HttpGetActionInterface;
9+
10+
/**
11+
* Get specified tab grid controller.
12+
*/
13+
class GridOnly extends \Magento\Catalog\Controller\Adminhtml\Product implements HttpGetActionInterface
1014
{
1115
/**
1216
* @var \Magento\Framework\Controller\Result\RawFactory

lib/internal/Magento/Framework/DataObject.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public function addData(array $arr)
6464
*
6565
* If $key is an array, it will overwrite all the data in the object.
6666
*
67-
* @param string|array $key
68-
* @param mixed $value
67+
* @param string|array $key
68+
* @param mixed $value
6969
* @return $this
7070
*/
7171
public function setData($key, $value = null)
@@ -111,7 +111,7 @@ public function unsetData($key = null)
111111
* and retrieve corresponding member. If data is the string - it will be explode
112112
* by new line character and converted to array.
113113
*
114-
* @param string $key
114+
* @param string $key
115115
* @param string|int $index
116116
* @return mixed
117117
*/
@@ -222,6 +222,7 @@ public function getDataUsingMethod($key, $args = null)
222222

223223
/**
224224
* If $key is empty, checks whether there's any data in the object
225+
*
225226
* Otherwise checks if the specified attribute is set.
226227
*
227228
* @param string $key
@@ -272,8 +273,8 @@ public function convertToArray(array $keys = [])
272273
/**
273274
* Convert object data into XML string
274275
*
275-
* @param array $keys array of keys that must be represented
276-
* @param string $rootName root node name
276+
* @param array $keys array of keys that must be represented
277+
* @param string $rootName root node name
277278
* @param bool $addOpenTag flag that allow to add initial xml node
278279
* @param bool $addCdata flag that require wrap all values in CDATA
279280
* @return string
@@ -436,7 +437,7 @@ protected function _underscore($name)
436437
*
437438
* Example: key1="value1" key2="value2" ...
438439
*
439-
* @param array $keys array of accepted keys
440+
* @param array $keys array of accepted keys
440441
* @param string $valueSeparator separator between key and value
441442
* @param string $fieldSeparator separator between key/value pairs
442443
* @param string $quote quoting sign

lib/internal/Magento/Framework/Module/PackageInfo.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
use Magento\Framework\Component\ComponentRegistrar;
99

1010
/**
11-
* Provide information of dependencies and conflicts in composer.json files, mapping of package name to module name,
12-
* and mapping of module name to package version
11+
* Provide information of dependencies and conflicts in composer.json files.
12+
*
13+
* Mapping of package name to module name, and mapping of module name to package version.
1314
*/
1415
class PackageInfo
1516
{

0 commit comments

Comments
 (0)