@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param \phpbb\language\language $language Language object |
| 34 | 34 | * @param \blitze\content\services\types $content_types Content types object |
| 35 | 35 | * @param string $php_ext php file extension |
| 36 | - */ |
|
| 36 | + */ |
|
| 37 | 37 | public function __construct(\phpbb\controller\helper $helper, \phpbb\language\language $language, \blitze\content\services\types $content_types, $php_ext) |
| 38 | 38 | { |
| 39 | 39 | $this->helper = $helper; |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | public function add_viewonline_location(\phpbb\event\data $event) |
| 87 | 87 | { |
| 88 | - if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/content/') === 0) |
|
| 88 | + if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/content/') === 0) |
|
| 89 | 89 | { |
| 90 | 90 | $types = join('|', $this->content_types->get_forum_types()); |
| 91 | 91 | preg_match("/\/content\/($types)(\/[0-9]\/.*)?/is", $event['row']['session_page'], $match); |
@@ -125,12 +125,12 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | $list = $this->content_types->get_all_types(); |
| 127 | 127 | |
| 128 | - $text = $this->language->lang('CONTENT_TYPES') . '|' . $this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 128 | + $text = $this->language->lang('CONTENT_TYPES').'|'.$this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 129 | 129 | |
| 130 | 130 | foreach ($list as $type => $entity) |
| 131 | 131 | { |
| 132 | - $text .= "\t" . $entity->get_content_langname() . '|'; |
|
| 133 | - $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n"; |
|
| 132 | + $text .= "\t".$entity->get_content_langname().'|'; |
|
| 133 | + $text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n"; |
|
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | return trim($text); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $value = $this->request->variable($name, $value); |
| 38 | 38 | $value = $this->get_image_src($value); |
| 39 | 39 | |
| 40 | - return ($value) ? '[img]' . $value . '[/img]' : ''; |
|
| 40 | + return ($value) ? '[img]'.$value.'[/img]' : ''; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | )); |
| 59 | 59 | |
| 60 | 60 | $this->ptemplate->assign_vars($data); |
| 61 | - $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field . '_field'); |
|
| 61 | + $field = $this->ptemplate->render_view('blitze/content', "fields/image.html", $field.'_field'); |
|
| 62 | 62 | |
| 63 | 63 | $data['field_value'] = $bbcode_value; |
| 64 | 64 | |
@@ -117,14 +117,14 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | private function get_image_html($image, $mode, array $field_props) |
| 119 | 119 | { |
| 120 | - $image = $image ?: '<img src="' . $field_props['default'] . '" class="postimage" alt="Image" />'; |
|
| 120 | + $image = $image ?: '<img src="'.$field_props['default'].'" class="postimage" alt="Image" />'; |
|
| 121 | 121 | |
| 122 | - $html = '<figure class="img-ui">' . $image . '</figure>'; |
|
| 122 | + $html = '<figure class="img-ui">'.$image.'</figure>'; |
|
| 123 | 123 | if ($mode !== 'block') |
| 124 | 124 | { |
| 125 | - $view_props = array_fill_keys(array($mode . '_size', $mode . '_align'), ''); |
|
| 125 | + $view_props = array_fill_keys(array($mode.'_size', $mode.'_align'), ''); |
|
| 126 | 126 | $image_props = array_filter(array_intersect_key($field_props, $view_props)); |
| 127 | - $html = '<div class="' . join(' ', $image_props) . '">' . $html . '</div>'; |
|
| 127 | + $html = '<div class="'.join(' ', $image_props).'">'.$html.'</div>'; |
|
| 128 | 128 | } |
| 129 | 129 | return $html; |
| 130 | 130 | } |