Completed
Push — master ( 309357...7ad46f )
by Andreas
18:00
created
lib/midgard/admin/asgard/style/midgard_admin_asgard_rcs_diff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $diff   = $data['diff'];
3 3
 $latest = $data['latest_revision'];
4
-$comment= $data['comment'];
4
+$comment = $data['comment'];
5 5
 $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
6 6
 ?>
7 7
 <div class="rcs_navigation">
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 <?php
16 16
 $changes = false;
17 17
 foreach ($diff as $attribute => $values) {
18
-    if (   !array_key_exists('diff', $values)
18
+    if (!array_key_exists('diff', $values)
19 19
         || !midcom_services_rcs::is_field_showable($attribute)
20 20
         || is_array($values['diff'])) {
21 21
         continue;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 if (!$changes) {
32
-    echo "<dt>". $data['l10n']->get('no changes in content') ."</dt>\n";
32
+    echo "<dt>" . $data['l10n']->get('no changes in content') . "</dt>\n";
33 33
 }
34 34
 ?>
35 35
 </dl>
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
admin/asgard/style/midgard_admin_asgard_object_attachments_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
                 $workflow = new midcom\workflow\delete(['object' => $file, 'label' => $file->name]);
22 22
                 $revisor = midcom::get()->auth->get_user($file->metadata->revisor);
23 23
                 $class = '';
24
-                if (   isset($data['file'])
24
+                if (isset($data['file'])
25 25
                     && $file->name == $data['file']->name) {
26 26
                     $class = ' class="selected"';
27 27
                 }
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/style/midgard_admin_asgard_shell_runner.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,8 @@
 block discarded – undo
61 61
     try {
62 62
         ?>&(data['code']:p);<?php
63 63
 
64
-    } catch (Exception $e) {
64
+    }
65
+    catch (Exception $e) {
65 66
         echo '<div class="shell-error">' . $e->getMessage() . '</div>';
66 67
         echo htmlentities($e->getTraceAsString());
67 68
     }
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/style/midgard_admin_asgard_welcome.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                     <?php
50 50
                     foreach ($type_choices as $value => $label) {
51 51
                         $selected = '';
52
-                        if (   isset($data['type_filter'])
52
+                        if (isset($data['type_filter'])
53 53
                             && $data['type_filter'] == $value) {
54 54
                             $selected = ' selected="selected"';
55 55
                         }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
                     <?php
65 65
                     foreach ($revised_after_choices as $value => $label) {
66 66
                         $selected = '';
67
-                        if (   isset($data['revised_after'])
67
+                        if (isset($data['revised_after'])
68 68
                             && $data['revised_after'] == date('Y-m-d H:i:s\Z', $value)) {
69 69
                             $selected = ' selected="selected"';
70 70
                         }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
                     <?php
83 83
                     foreach ($review_by_choices as $value => $label) {
84 84
                         $selected = '';
85
-                        if (   isset($data['revised_after'])
85
+                        if (isset($data['revised_after'])
86 86
                             && $data['review_by'] == $value) {
87 87
                             $selected = ' selected="selected"';
88 88
                         }
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
           <tr>
128 128
             <td colspan="5">
129 129
               <label for="select_all">
130
-                <input type="checkbox" name="select_all" id="select_all" value="" onclick="jQuery(this).check_all('#batch_process tbody');" /><?php echo $data['l10n']->get('select all');?>
130
+                <input type="checkbox" name="select_all" id="select_all" value="" onclick="jQuery(this).check_all('#batch_process tbody');" /><?php echo $data['l10n']->get('select all'); ?>
131 131
               </label>
132 132
               <label for="invert_selection">
133 133
                 <input type="checkbox" name="invert_selection" id="invert_selection" value="" onclick="jQuery(this).invert_selection('#batch_process tbody');" /><?php echo $data['l10n']->get('invert selection'); ?>
Please login to merge, or discard this patch.
lib/midgard/admin/asgard/style/midgard_admin_asgard_trash_type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         $child_indent = $indent + 20;
52 52
         echo "{$prefix}<tbody class=\"children\">\n";
53 53
         foreach ($child_types as $type => $children) {
54
-            if (   count($children) < 10
54
+            if (count($children) < 10
55 55
                 || isset($_GET['show_children'][$object->guid][$type])) {
56 56
                 foreach ($children as $child) {
57 57
                     midgard_admin_asgard_trash_type_show($child, $child_indent, "{$prefix}    ", false);
Please login to merge, or discard this patch.
lib/midgard/admin/user/style/midgard-admin-user-generate-passwords.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
 }
44 44
 
45
-if (   !is_numeric($n)
45
+if (!is_numeric($n)
46 46
     || $n <= 0
47 47
     || !is_numeric($length)
48 48
     || $length <= 0) {
Please login to merge, or discard this patch.
lib/midcom/admin/rcs/style/midcom-admin-rcs-diff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $diff   = $data['diff'];
3 3
 $latest = $data['latest_revision'];
4
-$comment= $data['comment'];
4
+$comment = $data['comment'];
5 5
 $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
6 6
 ?>
7 7
 <h1>&(data['view_title']);</h1>
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
 
31 31
     $changes = true;
32 32
 
33
-    echo "<dt>". $data['handler']->translate($attribute) ."</dt>\n";
33
+    echo "<dt>" . $data['handler']->translate($attribute) . "</dt>\n";
34 34
     echo "    <dd>\n";
35 35
     echo $values['diff'];
36 36
     echo "    </dd>\n";
37 37
 }
38 38
 
39 39
 if (!$changes) {
40
-    echo "<dt>". $data['l10n']->get('no changes in content') ."</dt>\n";
40
+    echo "<dt>" . $data['l10n']->get('no changes in content') . "</dt>\n";
41 41
 }
42 42
 ?>
43 43
 </dl>
44 44
\ No newline at end of file
Please login to merge, or discard this patch.
lib/midcom/admin/rcs/style/midcom-admin-rcs-preview.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     }
31 31
 
32 32
     // Three fold fallback in localization
33
-    echo "<dt>". $data['handler']->translate($attribute) ."</dt>\n";
33
+    echo "<dt>" . $data['handler']->translate($attribute) . "</dt>\n";
34 34
     echo "    <dd>" . nl2br($value) . "</dd>\n";
35 35
 }
36 36
 ?>
Please login to merge, or discard this patch.
lib/midcom/admin/folder/style/midcom-admin-folder-order-type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $count = count($data['navigation_items']);
5 5
 
6 6
 foreach ($data['navigation_items'] as $i => $item) {
7
-    if (   isset($item[MIDCOM_NAV_SORTABLE])
7
+    if (isset($item[MIDCOM_NAV_SORTABLE])
8 8
         && !$item[MIDCOM_NAV_SORTABLE]) {
9 9
         continue;
10 10
     }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     $icon = midcom_helper_reflector::get_object_icon($item[MIDCOM_NAV_OBJECT], true);
23 23
 
24 24
     // Actually we should skip all components that return the default icon as icon here!
25
-    if (   isset($item[MIDCOM_NAV_COMPONENT])
25
+    if (isset($item[MIDCOM_NAV_COMPONENT])
26 26
         && $item[MIDCOM_NAV_COMPONENT] !== 'net.nehmer.static'
27 27
         && $item[MIDCOM_NAV_COMPONENT] !== 'net.nehmer.blog'
28 28
         && ($tmp = midcom::get()->componentloader->get_component_icon($item[MIDCOM_NAV_COMPONENT], false))) {
Please login to merge, or discard this patch.