Passed
Push — master ( 293021...6fdc28 )
by Andreas
12:55
created
lib/net/nehmer/blog/handler/feed.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         if ($category) {
50 50
             // This is not a predefined category from configuration, check if site maintainer allows us to show it
51
-            if (   !in_array($category, $data['categories'])
51
+            if (!in_array($category, $data['categories'])
52 52
                 && !$this->_config->get('categories_custom_enable')) {
53 53
                 throw new midcom_error('Custom category support is disabled');
54 54
             }
Please login to merge, or discard this patch.
lib/net/nehmer/blog/handler/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $this->_topic->require_do('midgard:create');
30 30
 
31 31
         $schemadb = $data['schemadb'];
32
-        if (   $this->_config->get('simple_name_handling')
32
+        if ($this->_config->get('simple_name_handling')
33 33
             && !midcom::get()->auth->can_user_do('midcom:urlname')) {
34 34
             foreach ($schemadb->all() as $schema) {
35 35
                 $schema->get_field('name')['readonly'] = true;
Please login to merge, or discard this patch.
lib/net/nehmer/blog/style/feeds-item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
 $item->title = $data['article']->title;
19 19
 
20
-if (   $data['config']->get('link_to_external_url')
20
+if ($data['config']->get('link_to_external_url')
21 21
     && !empty($data['article']->url)) {
22 22
     $item->link = $data['article']->url;
23 23
 } else {
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     $item->description .= '<div class="abstract">' . $view['abstract'] . '</div>';
34 34
 }
35 35
 
36
-if (   array_key_exists('image', $view)
36
+if (array_key_exists('image', $view)
37 37
     && $data['config']->get('rss_use_image')) {
38 38
     $item->description .= "\n<div class=\"image\">" . $view['image'] . '</div>';
39 39
 }
Please login to merge, or discard this patch.
lib/org/openpsa/reports/handler/base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             $data['query'] = new org_openpsa_reports_query_dba($guid);
76 76
             $data['query']->require_do('midgard:update');
77 77
         } else {
78
-            $data['query']= new org_openpsa_reports_query_dba();
78
+            $data['query'] = new org_openpsa_reports_query_dba();
79 79
             $data['query']->component = $this->_component;
80 80
         }
81 81
 
Please login to merge, or discard this patch.
lib/net/nemein/redirector/handler/redirect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         // Catch first the configuration option for showing editing interface instead
36 36
         // of redirecting administrators
37
-        if (   $this->_topic->can_do('net.nemein.redirector:noredirect')
37
+        if ($this->_topic->can_do('net.nemein.redirector:noredirect')
38 38
             && !$this->_config->get('admin_redirection')) {
39 39
             return new midcom_response_relocate($this->router->generate('edit', ['tinyurl' => $tinyurl]));
40 40
         }
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $data['url'] = net_nemein_redirector_viewer::topic_links_to($this->_config);
70 70
 
71
-        if (   $this->_config->get('redirection_type') !== null
72
-            && (   !$this->_topic->can_do('net.nemein.redirector:noredirect')
71
+        if ($this->_config->get('redirection_type') !== null
72
+            && (!$this->_topic->can_do('net.nemein.redirector:noredirect')
73 73
                 || $this->_config->get('admin_redirection'))) {
74 74
             return $this->redirect($data['url']);
75 75
         }
Please login to merge, or discard this patch.
lib/net/nehmer/static/viewer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             }
55 55
         }
56 56
 
57
-        if (   $this->_topic->can_do('midgard:update')
57
+        if ($this->_topic->can_do('midgard:update')
58 58
             && $this->_topic->can_do('midcom:component_config')) {
59 59
                 $buttons[] = $workflow->get_button($this->router->generate('config'), [
60 60
                 MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('component configuration'),
Please login to merge, or discard this patch.
lib/midcom/core/query.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             $this->_user_id = midcom::get()->auth->acl->get_user_id();
103 103
         }
104 104
 
105
-        if (   $this->hide_invisible
105
+        if ($this->hide_invisible
106 106
             && !$this->_visibility_checks_added) {
107 107
             if (!midcom::get()->config->get('show_hidden_objects')) {
108 108
                 $this->add_constraint('metadata.hidden', '=', false);
Please login to merge, or discard this patch.
lib/midcom/connection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
             if ($part === '') {
202 202
                 continue;
203 203
             }
204
-            if (    midcom::get()->config->get('theme')
204
+            if (midcom::get()->config->get('theme')
205 205
                 && !$args_started
206 206
                 && self::check_page_exists($part)) {
207 207
                 $page_style .= '/' . $part;
Please login to merge, or discard this patch.
lib/midcom/core/dbaobject.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             }
72 72
             $this->__object = $id;
73 73
         } else {
74
-            if (   is_int($id)
74
+            if (is_int($id)
75 75
                 && $id < 1) {
76 76
                 throw new midcom_error($id . ' is not a valid database ID');
77 77
             }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             }
86 86
 
87 87
             //Some useful information for performance tuning
88
-            if (   midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG
88
+            if (midcom::get()->config->get('log_level') >= MIDCOM_LOG_DEBUG
89 89
                 && $this->__object->guid) {
90 90
                 static $guids = [];
91 91
                 static $total = 0;
Please login to merge, or discard this patch.