Skip to content

Commit 3cc831c

Browse files
committed
SwiftOtter-SOP-348 Restore redundant PHPDoc blocks
1 parent 58a66a2 commit 3cc831c

File tree

2 files changed

+14
-6
lines changed
  • app/code/Magento

2 files changed

+14
-6
lines changed

app/code/Magento/Catalog/Controller/Category/View.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class View extends Action implements HttpGetActionInterface, HttpPostActionInter
112112
private $logger;
113113

114114
/**
115+
* Constructor
116+
*
115117
* @param Context $context
116118
* @param Design $catalogDesign
117119
* @param Session $catalogSession
@@ -164,7 +166,9 @@ public function __construct(
164166
}
165167

166168
/**
167-
* @return Category|false
169+
* Initialize requested category object
170+
*
171+
* @return Category|bool
168172
*/
169173
protected function _initCategory()
170174
{
@@ -198,6 +202,8 @@ protected function _initCategory()
198202
}
199203

200204
/**
205+
* Category view action
206+
*
201207
* @return ResultInterface
202208
* @throws NoSuchEntityException
203209
*/
@@ -294,6 +300,8 @@ private function addPageLayoutHandles(Page $page, Category $category): void
294300
}
295301

296302
/**
303+
* Get page type based on category
304+
*
297305
* @param Category $category
298306
* @return string
299307
*/
@@ -308,6 +316,8 @@ private function getPageType(Category $category): string
308316
}
309317

310318
/**
319+
* Apply custom layout updates
320+
*
311321
* @param Page $page
312322
* @param DataObject $settings
313323
* @return void
@@ -330,6 +340,8 @@ private function applyLayoutUpdates(
330340
}
331341

332342
/**
343+
* Checks for toolbar actions
344+
*
333345
* @return bool
334346
*/
335347
private function shouldRedirectOnToolbarAction(): bool

app/code/Magento/CatalogSearch/Controller/Result/Index.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ class Index extends \Magento\Framework\App\Action\Action implements HttpGetActio
2424
/**
2525
* No results default handle.
2626
*/
27-
const DEFAULT_NO_RESULT_HANDLE = 'catalogsearch_result_index_noresults';
27+
public const DEFAULT_NO_RESULT_HANDLE = 'catalogsearch_result_index_noresults';
2828

2929
/**
30-
* Catalog session
31-
*
3230
* @var Session
3331
*/
3432
protected $_catalogSession;
@@ -44,8 +42,6 @@ class Index extends \Magento\Framework\App\Action\Action implements HttpGetActio
4442
private $_queryFactory;
4543

4644
/**
47-
* Catalog Layer Resolver
48-
*
4945
* @var Resolver
5046
*/
5147
private $layerResolver;

0 commit comments

Comments
 (0)