Test Failed
Push — master ( eccbd5...d76f23 )
by Andreas
31:17
created
lib/net/nehmer/blog/handler/archive.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
         $year_data = [];
132 132
         $first_post = $this->_compute_welcome_first_post();
133 133
         $this->_request_data['first_post'] = $first_post;
134
-        $this->_request_data['total_count'] =& $total_count;
135
-        $this->_request_data['year_data'] =& $year_data;
134
+        $this->_request_data['total_count'] = & $total_count;
135
+        $this->_request_data['year_data'] = & $year_data;
136 136
         if (!$first_post) {
137 137
             return;
138 138
         }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         switch ($handler_id) {
264 264
             case 'archive-year-category':
265 265
                 $category = trim(strip_tags($args[1]));
266
-                if (   $data['datamanager']->get_schema('default')->has_field('categories')
266
+                if ($data['datamanager']->get_schema('default')->has_field('categories')
267 267
                     && !$data['datamanager']->get_schema('default')->get_field('categories')['type_config']['allow_multiple']) {
268 268
                     $qb->add_constraint('extra1', '=', (string) $category);
269 269
                 } else {
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
             throw new midcom_error_notfound("The year '{$year}' is not valid.");
351 351
         }
352 352
 
353
-        if (   $month < 1
353
+        if ($month < 1
354 354
             || $month > 12) {
355 355
             throw new midcom_error_notfound("The month {$month} is not valid.");
356 356
         }
Please login to merge, or discard this patch.