Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 25293d9

Browse files
committed
[TASK] Updated based on code standards
1 parent 28c0467 commit 25293d9

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed
Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
1-
<?php
2-
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
5-
*/
6-
namespace Magento\Swagger\Block;
7-
8-
use Magento\Framework\View\Element\Template;
9-
10-
/**
11-
* Class Index
12-
* @package Magento\Swagger\Block
13-
*/
14-
class Index extends Template
15-
{
16-
/**
17-
* @return mixed|string
18-
*/
19-
public function getParamStore()
20-
{
21-
return ($this->getRequest()->getParam('store')) ? $this->getRequest()->getParam('store') : 'all';
22-
}
23-
24-
/**
25-
* @return string
26-
*/
27-
public function getSchemaUrl()
28-
{
29-
return rtrim($this->getBaseUrl(), '/') . '/rest/' . $this->getParamStore() . '/schema?services=all';
30-
}
31-
}
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Swagger\Block;
7+
8+
use Magento\Framework\View\Element\Template;
9+
10+
/**
11+
* Class Index
12+
*
13+
* @package Magento\Swagger\Block
14+
*/
15+
class Index extends Template
16+
{
17+
/**
18+
* @return mixed|string
19+
*/
20+
public function getParamStore()
21+
{
22+
return ($this->getRequest()->getParam('store')) ? $this->getRequest()->getParam('store') : 'all';
23+
}
24+
25+
/**
26+
* @return string
27+
*/
28+
public function getSchemaUrl()
29+
{
30+
return rtrim($this->getBaseUrl(), '/') . '/rest/' . $this->getParamStore() . '/schema?services=all';
31+
}
32+
}

0 commit comments

Comments
 (0)