This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-31
lines changed
app/code/Magento/Swagger/Block Expand file tree Collapse file tree 1 file changed +32
-31
lines changed Original file line number Diff line number Diff line change 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
+ }
You can’t perform that action at this time.
0 commit comments