Passed
Push — master ( dc3f28...9cb9a1 )
by Andreas
16:51
created
lib/net/nehmer/blog/handler/archive.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -409,7 +409,8 @@
 block discarded – undo
409 409
             foreach ($this->_articles as $article_counter => $article) {
410 410
                 try {
411 411
                     $data['datamanager']->set_storage($article);
412
-                } catch (midcom_error $e) {
412
+                }
413
+                catch (midcom_error $e) {
413 414
                     $e->log();
414 415
                     continue;
415 416
                 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
         $year_data = [];
106 106
         $first_post = $this->_compute_welcome_first_post();
107 107
         $this->_request_data['first_post'] = $first_post;
108
-        $this->_request_data['total_count'] =& $total_count;
109
-        $this->_request_data['year_data'] =& $year_data;
108
+        $this->_request_data['total_count'] = & $total_count;
109
+        $this->_request_data['year_data'] = & $year_data;
110 110
         if (!$first_post) {
111 111
             return;
112 112
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
             if ($category) {
243 243
                 $category = trim(strip_tags($category));
244
-                if (   $data['datamanager']->get_schema('default')->has_field('categories')
244
+                if ($data['datamanager']->get_schema('default')->has_field('categories')
245 245
                     && !$data['datamanager']->get_schema('default')->get_field('categories')['type_config']['allow_multiple']) {
246 246
                     $qb->add_constraint('extra1', '=', $category);
247 247
                 } else {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     private function _set_startend_from_month(int $year, int $month)
308 308
     {
309
-        if (   $month < 1
309
+        if ($month < 1
310 310
             || $month > 12) {
311 311
             throw new midcom_error_notfound("The month {$month} is not valid.");
312 312
         }
Please login to merge, or discard this patch.
lib/midcom/style/midcom_datamanager_unlock.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,8 @@
 block discarded – undo
7 7
 try {
8 8
     $person = new midcom_db_person($metadata->locker);
9 9
     $name = $person->name;
10
-} catch (midcom_error $e) {
10
+}
11
+catch (midcom_error $e) {
11 12
     $name = $l10n_midcom->get('unknown user');
12 13
     $e->log();
13 14
 }
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-wikipage-whatlinks.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@
 block discarded – undo
12 12
     foreach ($data['wikilinks'] as $link) {
13 13
         try {
14 14
             $page = new net_nemein_wiki_wikipage($link->frompage);
15
-        } catch (midcom_error $e) {
15
+        }
16
+        catch (midcom_error $e) {
16 17
             $e->log();
17 18
             continue;
18 19
         }
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-latest-item.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     </td>
23 23
     <td class="revisor">
24 24
         <?php
25
-        if (   $history['user']
25
+        if ($history['user']
26 26
             && $user = midcom::get()->auth->get_user($history['user'])) {
27 27
             $person_label = org_openpsa_widgets_contact::get($user->guid)->show_inline();
28 28
             echo "                    {$person_label}\n";
Please login to merge, or discard this patch.
lib/net/nehmer/comments/style/admin-comments-item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     $view['author'],
17 17
     $formatter->datetime($created));
18 18
 
19
-if (   midcom::get()->auth->admin
20
-   || (   midcom::get()->auth->user
19
+if (midcom::get()->auth->admin
20
+   || (midcom::get()->auth->user
21 21
        && $comment->can_do('midgard:delete'))) {
22 22
     $creator = $comment->metadata->creator;
23 23
     $created = $comment->metadata->created;
Please login to merge, or discard this patch.
lib/net/nehmer/blog/style/archive-welcome-start.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 
4 4
 if ($data['first_post']) {
5 5
     $summary .= ' ' . sprintf($data['l10n']->get('first post was made on %s.'),
6
-                              $data['l10n']->get_formatter()->date($data['first_post']));
6
+                                $data['l10n']->get_formatter()->date($data['first_post']));
7 7
 }
8 8
 ?>
9 9
 
Please login to merge, or discard this patch.
lib/net/nehmer/blog/style/view.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,8 @@
 block discarded – undo
35 35
             try {
36 36
                 $article = new midcom_db_article($related);
37 37
                 echo "<li><a href=\"" . midcom::get()->permalinks->create_permalink($article->guid) . "\">{$article->title}</a></li>\n";
38
-            } catch (midcom_error $e) {
38
+            }
39
+            catch (midcom_error $e) {
39 40
                 $e->log();
40 41
             }
41 42
         }
Please login to merge, or discard this patch.
lib/net/nehmer/blog/style/index-empty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,1 +1,1 @@
 block discarded – undo
1
-<p><?php $data['l10n']->show('no news found.');?></p>
2 1
\ No newline at end of file
2
+<p><?php $data['l10n']->show('no news found.'); ?></p>
3 3
\ No newline at end of file
Please login to merge, or discard this patch.
lib/org/openpsa/expenses/style/hours_grid.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
33 33
         $reporter_card = new org_openpsa_widgets_contact($reporter);
34 34
         $entry['index_reporter'] = $reporter->rname;
35 35
         $entry['reporter'] = $reporter_card->show_inline();
36
-    } catch (midcom_error $e) {
36
+    }
37
+    catch (midcom_error $e) {
37 38
         $e->log();
38 39
         $entry['index_reporter'] = '';
39 40
         $entry['reporter'] = '';
Please login to merge, or discard this patch.