Passed
Push — master ( 459a10...bba38e )
by Andreas
20:19
created
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/net/nehmer/static/handler/view.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             ]);
41 41
         }
42 42
 
43
-        if (   $this->_article->topic === $this->_topic->id
43
+        if ($this->_article->topic === $this->_topic->id
44 44
             && $this->_article->can_do('midgard:delete')) {
45 45
             $delete = $this->get_workflow('delete', ['object' => $this->_article]);
46 46
             $buttons[] = $delete->get_button($this->router->generate('delete', ['guid' => $this->_article->guid]));
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $this->_datamanager->set_storage($this->_article);
82 82
 
83 83
         $arg = $this->_article->name ?: $this->_article->guid;
84
-        if (   $arg != 'index'
84
+        if ($arg != 'index'
85 85
             && $this->_config->get('hide_navigation')) {
86 86
             $this->add_breadcrumb("{$arg}/", $this->_article->title);
87 87
         }
@@ -91,13 +91,13 @@  discard block
 block discarded – undo
91 91
         midcom::get()->metadata->set_request_metadata($this->_article->metadata->revised, $this->_article->guid);
92 92
         $this->bind_view_to_object($this->_article, $this->_datamanager->get_schema()->get_name());
93 93
 
94
-        if (   $this->_config->get('indexinnav')
94
+        if ($this->_config->get('indexinnav')
95 95
             || $this->_config->get('autoindex')
96 96
             || $this->_article->name != 'index') {
97 97
             $this->set_active_leaf($this->_article->id);
98 98
         }
99 99
 
100
-        if (   $this->_config->get('folder_in_title')
100
+        if ($this->_config->get('folder_in_title')
101 101
             && $this->_topic->extra != $this->_article->title) {
102 102
             midcom::get()->head->set_pagetitle("{$this->_topic->extra}: {$this->_article->title}");
103 103
         } else {
Please login to merge, or discard this patch.