Mygento_Yandexdelivery_Block_Version   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 7 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