Passed
Push — develop ( 73b4e9...8d0058 )
by Daniel
05:19
created
event/listener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 	 */
87 87
 	public function add_viewonline_location(\phpbb\event\data $event)
88 88
 	{
89
-		if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.' . $this->php_ext . '/content/') === 0)
89
+		if ($event['on_page'][1] == 'app' && strrpos($event['row']['session_page'], 'app.'.$this->php_ext.'/content/') === 0)
90 90
 		{
91 91
 			$types = join('|', $this->content_types->get_forum_types());
92 92
 			preg_match("/\/content\/($types)(\/[0-9]\/.*)?/is", $event['row']['session_page'], $match);
@@ -126,13 +126,13 @@  discard block
 block discarded – undo
126 126
 	{
127 127
 		$list = $this->content_types->get_all_types();
128 128
 
129
-		$text = $this->language->lang('CONTENT_TYPES') . '|' . $this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n";
129
+		$text = $this->language->lang('CONTENT_TYPES').'|'.$this->helper->route('blitze_content_types', array(), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n";
130 130
 
131 131
 		foreach ($list as $type => $entity)
132 132
 		{
133 133
             /** @var \blitze\content\model\entity\type $entity */
134
-            $text .= "\t" . $entity->get_content_langname() . '|';
135
-			$text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH) . "\n";
134
+            $text .= "\t".$entity->get_content_langname().'|';
135
+			$text .= $this->helper->route('blitze_content_type', array('type' => $type), false, '', UrlGeneratorInterface::RELATIVE_PATH)."\n";
136 136
 		}
137 137
 
138 138
 		return trim($text);
Please login to merge, or discard this patch.
services/views/driver/base_view.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 
139 139
         foreach ($posts_data as $topic_id => $posts)
140 140
         {
141
-            $post_data	= array_shift($posts);
141
+            $post_data = array_shift($posts);
142 142
             $topic_data	= $topics_data[$topic_id];
143 143
             $topic_data = array_merge(
144 144
                 $this->fields->show($content_type, $topic_data, $post_data, $users_cache, $attachments, $update_count, $topic_tracking_info),
@@ -250,8 +250,8 @@  discard block
 block discarded – undo
250 250
         $this->pagination->generate_template_pagination(
251 251
             array(
252 252
                 'routes' => array(
253
-                    'blitze_content_' . $route_type,
254
-                    'blitze_content_' . $route_type . '_page',
253
+                    'blitze_content_'.$route_type,
254
+                    'blitze_content_'.$route_type.'_page',
255 255
                 ),
256 256
                 'params' => $params,
257 257
             ),
Please login to merge, or discard this patch.