@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * @param \blitze\content\services\form\fields_factory $fields_factory Fields factory object |
| 30 | 30 | * @param \blitze\content\model\mapper_factory $mapper_factory Mapper factory object |
| 31 | 31 | * @param \blitze\content\services\views\views_factory $views_factory Views factory object |
| 32 | - */ |
|
| 32 | + */ |
|
| 33 | 33 | public function __construct(\phpbb\auth\auth $auth, \phpbb\controller\helper $controller_helper, \phpbb\language\language $language, \phpbb\template\template $template, \phpbb\user $user, \blitze\sitemaker\services\auto_lang $auto_lang, \blitze\content\services\types $content_types, \blitze\content\services\form\fields_factory $fields_factory, \blitze\content\model\mapper_factory $mapper_factory, \blitze\content\services\views\views_factory $views_factory) |
| 34 | 34 | { |
| 35 | 35 | parent::__construct($auth, $controller_helper, $language, $template, $user, $auto_lang, $fields_factory, $views_factory); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function display_field(array $data) |
| 38 | 38 | { |
| 39 | - return '<a href="tel:' . $data['field_value'] . '">' . preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']) . '</a>'; |
|
| 39 | + return '<a href="tel:'.$data['field_value'].'">'.preg_replace("/^1?(\d{3})(\d{3})(\d{4})$/", "$1-$2-$3", $data['field_value']).'</a>'; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $value = $this->request->variable($name, $value); |
| 20 | 20 | $value = $this->get_image_src($value); |
| 21 | 21 | |
| 22 | - return ($value) ? '[img]' . $value . '[/img]' : ''; |
|
| 22 | + return ($value) ? '[img]'.$value.'[/img]' : ''; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | $data['field_value'] = $this->get_image_src($bbcode_value); |
| 35 | 35 | |
| 36 | 36 | $this->ptemplate->assign_vars($data); |
| 37 | - $field = $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field . '_field'); |
|
| 37 | + $field = $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field.'_field'); |
|
| 38 | 38 | |
| 39 | 39 | $data['field_value'] = $bbcode_value; |
| 40 | 40 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function display_field(array $data) |
| 48 | 48 | { |
| 49 | - return ($data['field_value']) ? '<div class="img-ui">' . $data['field_value'] . '</div>' : ''; |
|
| 49 | + return ($data['field_value']) ? '<div class="img-ui">'.$data['field_value'].'</div>' : ''; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function get_field_value($name, $default) |
| 31 | 31 | { |
| 32 | 32 | $default = is_array($default) ? $default : explode("\n", $default); |
| 33 | - $value = $this->request->variable($name, $default, true); |
|
| 33 | + $value = $this->request->variable($name, $default, true); |
|
| 34 | 34 | |
| 35 | 35 | if (empty($value) && $this->request->server('REQUEST_METHOD') !== 'POST') |
| 36 | 36 | { |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | $this->set_field_options($name, $data, $selected); |
| 69 | 69 | $this->ptemplate->assign_vars($data); |
| 70 | 70 | |
| 71 | - return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field . '_field'); |
|
| 71 | + return $this->ptemplate->render_view('blitze/content', "fields/$field.twig", $field.'_field'); |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | /** |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | foreach ($data['field_props']['options'] as $option) |
| 91 | 91 | { |
| 92 | 92 | $options[] = array( |
| 93 | - 'id' => 'smc-'. $name . '-' . $count, |
|
| 93 | + 'id' => 'smc-'.$name.'-'.$count, |
|
| 94 | 94 | 'label' => $this->language->lang($option), |
| 95 | 95 | 'selected' => (in_array($option, $selected, true)) ? true : false, |
| 96 | 96 | 'value' => $option, |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | public function get_field_value($name, $default) |
| 57 | 57 | { |
| 58 | 58 | $default = is_array($default) ? $default : explode("\n", $default); |
| 59 | - $value = $this->request->variable($name, array(0 => ''), true); |
|
| 59 | + $value = $this->request->variable($name, array(0 => ''), true); |
|
| 60 | 60 | |
| 61 | 61 | return $value ? $value : $default; |
| 62 | 62 | } |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | */ |
| 103 | 103 | protected function make_box($color) |
| 104 | 104 | { |
| 105 | - $style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: ' . $color; |
|
| 106 | - return ($color) ? '<div style="' . $style . '" title="' . $color . '"></div>' : ''; |
|
| 105 | + $style = 'display: inline-block; width: 15px; height: 15px; border: 1 solid #fff; border-radius: 4px; background-color: '.$color; |
|
| 106 | + return ($color) ? '<div style="'.$style.'" title="'.$color.'"></div>' : ''; |
|
| 107 | 107 | } |
| 108 | 108 | } |