Passed
Push — master ( e8f302...6e92d1 )
by Andreas
28:16
created
lib/org/openpsa/helpers/fileinfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
          * if nothing matched so far and the subtype is alphanumeric, uppercase it on the theory
65 65
          * that it's probably a file extension
66 66
          */
67
-        if (   $st_orig == $subtype
67
+        if ($st_orig == $subtype
68 68
             && preg_match('/^[a-z0-9]+$/', $subtype)) {
69 69
             $subtype = strtoupper($subtype);
70 70
         }
Please login to merge, or discard this patch.
lib/org/openpsa/documents/document.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             return;
85 85
         }
86 86
         $parent = $this->get_parent();
87
-        if (   $parent
87
+        if ($parent
88 88
             && $parent->component == 'org.openpsa.documents') {
89 89
             midcom::get()->auth->request_sudo('org.openpsa.documents');
90 90
 
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             $backup_attachment = $backup->create_attachment($original_attachment->name, $original_attachment->title, $original_attachment->mimetype);
155 155
 
156 156
             $original_handle = $original_attachment->open('r');
157
-            if (   !$backup_attachment
157
+            if (!$backup_attachment
158 158
                 || !$original_handle) {
159 159
                 // Failed to copy the attachment, abort
160 160
                 return $backup->delete();
Please login to merge, or discard this patch.