Test Setup Failed
Pull Request — master (#190)
by
unknown
10:36
created
lib/org/openpsa/relatedto/suspect.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $properties = array('fromClass', 'toClass', 'fromGuid', 'toGuid', 'fromComponent', 'toComponent', 'status', 'toExtra', 'toExtra');
93 93
         foreach ($properties as $property) {
94
-            if (   !empty($defaults->$property)
94
+            if (!empty($defaults->$property)
95 95
                 && empty($link->$property)) {
96 96
                 debug_add("Copying property '{$property}' ('{$defaults->$property}') from defaults");
97 97
                 $link->$property = $defaults->$property;
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         }
100 100
         if ($component) {
101 101
             debug_add('$component given, guessing direction');
102
-            if (   empty($link->toComponent)
102
+            if (empty($link->toComponent)
103 103
                 && !empty($link->fromComponent)) {
104 104
                 debug_add("Setting property 'toComponent' to '{$component}'");
105 105
                 $link->toComponent = $component;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         }
111 111
         if (is_object($obj)) {
112 112
             debug_add('$obj given, guessing direction');
113
-            if (   empty($link->toGuid)
113
+            if (empty($link->toGuid)
114 114
                 && !empty($link->fromGuid)) {
115 115
                 $link->toClass = get_class($obj);
116 116
                 $link->toGuid = $obj->guid;
Please login to merge, or discard this patch.
lib/org/openpsa/documents/midcom/indexer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
  */
14 14
 class org_openpsa_documents_midcom_indexer extends midcom_helper_datamanager2_indexer_client
15 15
 {
16
-    public function prepare_document(midcom_services_indexer_document &$document, midcom_helper_datamanager2_datamanager $dm)
16
+    public function prepare_document(midcom_services_indexer_document & $document, midcom_helper_datamanager2_datamanager $dm)
17 17
     {
18 18
         if (is_a($dm->storage->object, 'midcom_db_topic')) {
19 19
             $document->title = $dm->storage->object->extra;
Please login to merge, or discard this patch.
lib/org/openpsa/documents/handler/directory/edit.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
     {
52 52
         $this->_load_schemadb();
53 53
         $this->_controller = midcom_helper_datamanager2_controller::create('simple');
54
-        $this->_controller->schemadb =& $this->_schemadb;
54
+        $this->_controller->schemadb = & $this->_schemadb;
55 55
         $this->_controller->set_storage($this->_request_data['directory'], $this->_schema);
56 56
         if (!$this->_controller->initialize()) {
57 57
             throw new midcom_error("Failed to initialize a DM2 controller instance for task {$this->_directory->id}.");
Please login to merge, or discard this patch.
lib/org/openpsa/documents/directory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $ownerwg = $this->get_parameter('org.openpsa.core', 'orgOpenpsaOwnerWg');
21 21
         $accesstype = $this->get_parameter('org.openpsa.core', 'orgOpenpsaAccesstype');
22 22
 
23
-        if (   $ownerwg
23
+        if ($ownerwg
24 24
             && $accesstype) {
25 25
             // Sync the object's ACL properties into MidCOM ACL system
26 26
             $sync = new org_openpsa_core_acl_synchronizer();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     private function _update_parent_timestamp()
42 42
     {
43 43
         $parent = $this->get_parent();
44
-        if (   $parent
44
+        if ($parent
45 45
             && $parent->component == 'org.openpsa.documents') {
46 46
             midcom::get()->auth->request_sudo('org.openpsa.documents');
47 47
 
Please login to merge, or discard this patch.
lib/org/openpsa/httplib/main.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
         $request->addHeader('User-Agent: Midgard/' . substr(mgd_version(), 0, 4));
116 116
 
117 117
         // Handle basic auth
118
-        if (   !empty($username)
118
+        if (!empty($username)
119 119
             && !empty($password)) {
120 120
             // Set basic auth
121 121
             $request->addHeader('Authorization: Basic ' . base64_encode($username . ':' . $password));
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,8 @@
 block discarded – undo
129 129
 
130 130
         try {
131 131
             $response = $browser->send($request);
132
-        } catch (Exception $e) {
132
+        }
133
+        catch (Exception $e) {
133 134
             $this->error = $e->getMessage();
134 135
             debug_add("Got error '{$this->error}' from HTTP request", MIDCOM_LOG_INFO);
135 136
             return false;
Please login to merge, or discard this patch.
lib/org/openpsa/httplib/exec/test_post.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
 } else {
19 19
     $client = new org_openpsa_httplib();
20
-    if (   !empty($_REQUEST['username'])
20
+    if (!empty($_REQUEST['username'])
21 21
         && !empty($_REQUEST['password'])) {
22 22
         $client->basicauth['user'] = $_REQUEST['username'];
23 23
         $client->basicauth['password'] = $_REQUEST['password'];
Please login to merge, or discard this patch.
lib/org/openpsa/mail/exec/test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 midcom::get()->auth->require_admin_user();
3 3
 
4
-if (   empty($_POST['to'])
4
+if (empty($_POST['to'])
5 5
     || empty($_POST['from'])) {
6 6
     ?>
7 7
     <h2>Send test email</h2>
Please login to merge, or discard this patch.
lib/org/openpsa/mail/template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
         foreach ($this->_parameters as $key => $value) {
112 112
             $this->_patterns[] = "/__({$key})__/";
113 113
 
114
-            if (   is_array($value)
114
+            if (is_array($value)
115 115
                 || is_object($value)) {
116 116
                 $this->_patterns[] = "/__({$key})_([^ \.>\"-]*?)__/";
117 117
             }
Please login to merge, or discard this patch.
lib/org/openpsa/invoices/handler/scheduled.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@  discard block
 block discarded – undo
57 57
         try {
58 58
             $deliverable = org_openpsa_sales_salesproject_deliverable_dba::get_cached($at_entry->arguments['deliverable']);
59 59
             $salesproject = org_openpsa_sales_salesproject_dba::get_cached($deliverable->salesproject);
60
-        } catch (midcom_error $e) {
60
+        }
61
+        catch (midcom_error $e) {
61 62
             $e->log();
62 63
             return $invoice;
63 64
         }
@@ -95,7 +96,8 @@  discard block
 block discarded – undo
95 96
                 $object = $classname::get_cached($id);
96 97
                 $invoice[$fieldname] = $object->render_link();
97 98
                 $invoice['index_' . $fieldname] = $object->get_label();
98
-            } catch (midcom_error $e) {
99
+            }
100
+            catch (midcom_error $e) {
99 101
                 $e->log();
100 102
             }
101 103
         }
Please login to merge, or discard this patch.