@@ -27,6 +27,6 @@ |
||
27 | 27 | $this->_view = Yii::$app->getView(); |
28 | 28 | } |
29 | 29 | |
30 | - return $this->_view; |
|
30 | + return $this->_view; |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | \ No newline at end of file |
@@ -19,9 +19,9 @@ |
||
19 | 19 | */ |
20 | 20 | class LazyLoad extends Widget |
21 | 21 | { |
22 | - /** |
|
23 | - * @var string The path to the image you want to lazy load. |
|
24 | - */ |
|
22 | + /** |
|
23 | + * @var string The path to the image you want to lazy load. |
|
24 | + */ |
|
25 | 25 | public $src = null; |
26 | 26 | |
27 | 27 | /** |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function run() |
68 | 68 | { |
69 | - $this->class .= " " . $this->additionalClass; |
|
69 | + $this->class .= " ".$this->additionalClass; |
|
70 | 70 | |
71 | - if($this->onlyTags) { |
|
71 | + if ($this->onlyTags) { |
|
72 | 72 | return "class = \"$this->class\" |
73 | 73 | data-src = \"$this->src\" |
74 | 74 | data-width = \"$this->width\" |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | $tag = Html::tag('img', '', ['class' => $this->class, 'data-src' => $this->src, 'data-width' => $this->width, 'data-height' => $this->height]); |
81 | - $tag.= '<noscript><img class="'.$this->class.'" src="'.$this->src.'" /></noscript>'; |
|
81 | + $tag .= '<noscript><img class="'.$this->class.'" src="'.$this->src.'" /></noscript>'; |
|
82 | 82 | return $tag; |
83 | 83 | } |
84 | 84 | } |
85 | 85 | \ No newline at end of file |
@@ -8,22 +8,22 @@ |
||
8 | 8 | |
9 | 9 | class TelTag extends BaseTag |
10 | 10 | { |
11 | - public function readme() |
|
12 | - { |
|
13 | - return 'Generate a tel link which is commonly used on mobile websites in order create a click to call link. tel[+41 061 123 123] or with with a name instead of the phone number tel[+41 061 123 123](call us now!).'; |
|
14 | - } |
|
11 | + public function readme() |
|
12 | + { |
|
13 | + return 'Generate a tel link which is commonly used on mobile websites in order create a click to call link. tel[+41 061 123 123] or with with a name instead of the phone number tel[+41 061 123 123](call us now!).'; |
|
14 | + } |
|
15 | 15 | |
16 | - public function parse($value, $sub) |
|
17 | - { |
|
18 | - return Html::a(empty($sub) ? $value : $sub, 'tel:' . $this->ensureNumber($value)); |
|
19 | - } |
|
16 | + public function parse($value, $sub) |
|
17 | + { |
|
18 | + return Html::a(empty($sub) ? $value : $sub, 'tel:' . $this->ensureNumber($value)); |
|
19 | + } |
|
20 | 20 | |
21 | - private function ensureNumber($number) |
|
22 | - { |
|
23 | - if (!StringHelper::startsWith($number, '+')) { |
|
24 | - $number = '+'.$number; |
|
25 | - } |
|
21 | + private function ensureNumber($number) |
|
22 | + { |
|
23 | + if (!StringHelper::startsWith($number, '+')) { |
|
24 | + $number = '+'.$number; |
|
25 | + } |
|
26 | 26 | |
27 | - return str_replace(" ", "", $number); |
|
28 | - } |
|
27 | + return str_replace(" ", "", $number); |
|
28 | + } |
|
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | public function parse($value, $sub) |
17 | 17 | { |
18 | - return Html::a(empty($sub) ? $value : $sub, 'tel:' . $this->ensureNumber($value)); |
|
18 | + return Html::a(empty($sub) ? $value : $sub, 'tel:'.$this->ensureNumber($value)); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | private function ensureNumber($number) |