@@ -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 | /** |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | private $tags = [ |
44 | 44 | 'mail' => ['class' => 'luya\tag\tags\MailTag'], |
45 | - 'tel' => ['class' => 'luya\tag\tags\TelTag'], |
|
45 | + 'tel' => ['class' => 'luya\tag\tags\TelTag'], |
|
46 | 46 | ]; |
47 | 47 | |
48 | 48 | private static $_instance = null; |
@@ -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 |