Mygento_Yandexdelivery_Block_Version::render()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
1
<?php
2
3
/**
4
 *
5
 *
6
 * @category Mygento
7
 * @package Mygento_Yandexdelivery
8
 * @copyright 2017 NKS LLC. (http://www.mygento.ru)
9
 * @license GPLv2
10
 */
11
class Mygento_Yandexdelivery_Block_Version extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
12
{
13
14
    /**
15
     *
16
     * @param Varien_Data_Form_Element_Abstract $element
17
     * @return string
18
     *
19
     * @SuppressWarnings("unused")
20
     */
21
    public function render(Varien_Data_Form_Element_Abstract $element)
22
    {
23
        $info = '<fieldset class="config success-msg" style="padding-left:30px;"><a target="_blank" href="https://www.mygento.ru/"><img style="margin-right:5px;" src="//www.mygento.ru/media/favicon/default/favicon.png" width="16" height="16" />' . $this->__('Magento Development') . '</a>';
24
        $info .= '<a style="float:right;margin-left: 20px;" target="_blank" href="https://github.com/mygento/yandexdelivery">' . $this->__('Module on Github') . '</a>';
25
        $info .= '<a style="float:right;" target="_blank" href="https://mygento.atlassian.net/wiki/pages/viewpage.action?pageId=3708567">' . $this->__('Extension instructions') . '</a></fieldset>';
26
        return $info;
27
    }
28
}
29