@@ -4,17 +4,17 @@ |
||
4 | 4 | use phoponent\framework\classe\xphp_tag; |
5 | 5 | |
6 | 6 | class Mon_premier_tag extends xphp_tag { |
7 | - public function render(): string { |
|
8 | - $model = $this->get_model('props_gestion') |
|
7 | + public function render(): string { |
|
8 | + $model = $this->get_model('props_gestion') |
|
9 | 9 | ->set('id', $this->attribute('id').(!is_null($this->attribute('date')) ? '-'.$this->attribute('date') : '')) |
10 | 10 | ->set('class', $this->attribute('class')) |
11 | 11 | ->set('value', $this->value() !== '' ? $this->value() : __CLASS__); |
12 | - list($class, $id, $content) = $model->get('infos'); |
|
12 | + list($class, $id, $content) = $model->get('infos'); |
|
13 | 13 | |
14 | - return $this->get_view('balise')->set_vars([ |
|
15 | - 'id' => $id, |
|
14 | + return $this->get_view('balise')->set_vars([ |
|
15 | + 'id' => $id, |
|
16 | 16 | 'class' => $class, |
17 | 17 | 'content' => $content, |
18 | 18 | ])->render(); |
19 | - } |
|
19 | + } |
|
20 | 20 | } |
21 | 21 | \ No newline at end of file |
@@ -4,8 +4,8 @@ |
||
4 | 4 | use phoponent\framework\classe\xphp_tag; |
5 | 5 | |
6 | 6 | class Clock extends xphp_tag { |
7 | - public function render(): string { |
|
8 | - $result = $this->get_view('horloge')->render(); |
|
9 | - return $result; |
|
10 | - } |
|
7 | + public function render(): string { |
|
8 | + $result = $this->get_view('horloge')->render(); |
|
9 | + return $result; |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | \ No newline at end of file |
@@ -420,7 +420,7 @@ discard block |
||
420 | 420 | return $responseArray; |
421 | 421 | } else { |
422 | 422 | if (is_array($responseArray[0])) { |
423 | - return array_reduce($responseArray[0], function ($carry, $item) { |
|
423 | + return array_reduce($responseArray[0], function($carry, $item) { |
|
424 | 424 | $carry .= $item[0]; |
425 | 425 | |
426 | 426 | return $carry; |
@@ -481,6 +481,6 @@ discard block |
||
481 | 481 | */ |
482 | 482 | private function isValidLocale($lang) |
483 | 483 | { |
484 | - return (bool) preg_match('/^([a-z]{2})(-[A-Z]{2})?$/', $lang); |
|
484 | + return (bool)preg_match('/^([a-z]{2})(-[A-Z]{2})?$/', $lang); |
|
485 | 485 | } |
486 | 486 | } |