Completed
Pull Request — master (#194)
by
unknown
15:06
created
lib/net/nehmer/static/handler/admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
      */
29 29
     private function load_controller()
30 30
     {
31
-        if (    $this->_config->get('simple_name_handling')
31
+        if ($this->_config->get('simple_name_handling')
32 32
              && !midcom::get()->auth->admin) {
33 33
             foreach ($this->_request_data['schemadb']->all() as $schema) {
34
-                $field =& $schema->get_field('name');
34
+                $field = & $schema->get_field('name');
35 35
                 $field['readonly'] = true;
36 36
             }
37 37
         }
Please login to merge, or discard this patch.
lib/net/nehmer/static/handler/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
     private function load_controller($schemaname, array $defaults)
33 33
     {
34 34
         if ($this->_config->get('simple_name_handling')) {
35
-            $field =& $this->_request_data['schemadb']->get($schemaname)->get_field('name');
35
+            $field = & $this->_request_data['schemadb']->get($schemaname)->get_field('name');
36 36
             $field['hidden'] = true;
37 37
         }
38 38
         $dm = new datamanager($this->_request_data['schemadb']);
Please login to merge, or discard this patch.
lib/org/openpsa/products/handler/product/csv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function _load_data($handler_id, array &$args, array &$data)
55 55
     {
56
-        if (   empty($_POST)
56
+        if (empty($_POST)
57 57
             && $data['session']->exists('POST_data')) {
58 58
             $_POST = $data['session']->get('POST_data');
59 59
             $data['session']->remove('POST_data');
Please login to merge, or discard this patch.
lib/midcom/helper/toolbar/node.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         }
38 38
         $buttons = [];
39 39
         $workflow = new midcom\workflow\datamanager;
40
-        if (   $this->topic->can_do('midgard:update')
40
+        if ($this->topic->can_do('midgard:update')
41 41
             && $this->topic->can_do('midcom.admin.folder:topic_management')) {
42 42
             $buttons[] = $workflow->get_button("__ais/folder/edit/", [
43 43
                 MIDCOM_TOOLBAR_LABEL => midcom::get()->i18n->get_string('edit folder', 'midcom.admin.folder'),
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ]);
50 50
         }
51 51
 
52
-        if (   $urltopic->can_do('midgard:update')
52
+        if ($urltopic->can_do('midgard:update')
53 53
             && $urltopic->can_do('midcom.admin.folder:topic_management')) {
54 54
             // Allow to move other than root folder
55 55
             if ($urltopic->guid !== midcom::get()->config->get('midcom_root_topic_guid')) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             }
62 62
         }
63 63
 
64
-        if (   $this->topic->can_do('midgard:update')
64
+        if ($this->topic->can_do('midgard:update')
65 65
             && $this->topic->can_do('midcom.admin.folder:topic_management')) {
66 66
             $buttons[] = [
67 67
                 MIDCOM_TOOLBAR_URL => "__ais/folder/order/",
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             ];
79 79
         }
80 80
         $buttons = array_merge($buttons, $this->get_approval_controls($this->topic, false));
81
-        if (   $this->topic->can_do('midcom.admin.folder:template_management')
81
+        if ($this->topic->can_do('midcom.admin.folder:template_management')
82 82
             && midcom::get()->auth->can_user_do('midgard.admin.asgard:manage_objects', null, 'midgard_admin_asgard_plugin')) {
83 83
             $enabled = false;
84 84
             $styleeditor_url = '';
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             ];
104 104
         }
105 105
 
106
-        if (   $this->topic->can_do('midgard:create')
106
+        if ($this->topic->can_do('midgard:create')
107 107
             && $this->topic->can_do('midcom.admin.folder:topic_management')) {
108 108
             $buttons[] = $workflow->get_button("__ais/folder/create/", [
109 109
                 MIDCOM_TOOLBAR_LABEL => midcom::get()->i18n->get_string('create subfolder', 'midcom.admin.folder'),
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
                 MIDCOM_TOOLBAR_ACCESSKEY => 'f',
112 112
             ]);
113 113
         }
114
-        if (   $urltopic->guid !== midcom::get()->config->get('midcom_root_topic_guid')
114
+        if ($urltopic->guid !== midcom::get()->config->get('midcom_root_topic_guid')
115 115
             && $urltopic->can_do('midgard:delete')
116 116
             && $urltopic->can_do('midcom.admin.folder:topic_management')) {
117 117
             $workflow = new midcom\workflow\delete(['object' => $urltopic, 'recursive' => true]);
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/importer/csv.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,11 +55,11 @@
 block discarded – undo
55 55
         foreach (array_filter($csv_line) as $field => $value) {
56 56
             // Process the row accordingly
57 57
             $field_matching = $this->_settings['fields'][$field];
58
-            if (   $field_matching
58
+            if ($field_matching
59 59
                 && strstr($field_matching, ':')) {
60 60
                 list($schemadb, $schema_field) = explode(':', $field_matching);
61 61
 
62
-                if (   !array_key_exists($schemadb, $this->_schemadbs)
62
+                if (!array_key_exists($schemadb, $this->_schemadbs)
63 63
                     || !$this->_schemadbs[$schemadb]->get('default')->has_field($schema_field)) {
64 64
                     // Invalid matching, skip
65 65
                     continue;
Please login to merge, or discard this patch.
lib/net/nehmer/blog/handler/admin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@
 block discarded – undo
48 48
         $this->article->require_do('midgard:update');
49 49
 
50 50
         $schemadb = $data['schemadb'];
51
-        if (   $this->_config->get('simple_name_handling')
51
+        if ($this->_config->get('simple_name_handling')
52 52
             && !midcom::get()->auth->can_user_do('midcom:urlname')) {
53 53
             foreach ($schemadb->all() as $schema) {
54
-                $field =& $schema->get_field('name');
54
+                $field = & $schema->get_field('name');
55 55
                 $field['readonly'] = true;
56 56
             }
57 57
         }
Please login to merge, or discard this patch.
lib/net/nehmer/blog/handler/create.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
 
40 40
         $schema_name = $args[0];
41 41
         $schemadb = $data['schemadb'];
42
-        if (   $this->_config->get('simple_name_handling')
42
+        if ($this->_config->get('simple_name_handling')
43 43
             && !midcom::get()->auth->can_user_do('midcom:urlname')) {
44 44
             foreach ($schemadb->all() as $schema) {
45
-                $field =& $schema->get_field('name');
45
+                $field = & $schema->get_field('name');
46 46
                 $field['readonly'] = true;
47 47
             }
48 48
         }
Please login to merge, or discard this patch.
lib/net/nemein/wiki/style/view-wikipage-raw.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,6 +7,6 @@
 block discarded – undo
7 7
     <?php
8 8
 
9 9
 } else {
10
-    echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub')."</p>";
10
+    echo "<p class=\"stub\">" . $data['l10n']->get('this page is stub') . "</p>";
11 11
 }
12 12
 ?>
13 13
\ No newline at end of file
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.