@@ -52,7 +52,7 @@ |
||
| 52 | 52 | */ |
| 53 | 53 | private function _find_suspects_event(midcom_core_dbaobject $object, org_openpsa_relatedto_dba $defaults, array &$links_array) |
| 54 | 54 | { |
| 55 | - if ( !is_array($object->participants) |
|
| 55 | + if (!is_array($object->participants) |
|
| 56 | 56 | || count($object->participants) < 2) { |
| 57 | 57 | //We have invalid list or less than two participants, abort |
| 58 | 58 | return; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | public function _on_watched_dba_delete(midcom_core_dbaobject $object) |
| 18 | 18 | { |
| 19 | 19 | $qb = org_openpsa_directmarketing_campaign_member_dba::new_query_builder(); |
| 20 | - if ( $object instanceof midcom_db_person |
|
| 20 | + if ($object instanceof midcom_db_person |
|
| 21 | 21 | || $object instanceof org_openpsa_contacts_person_dba) { |
| 22 | 22 | $qb->add_constraint('person', '=', $object->id); |
| 23 | 23 | } elseif ($object instanceof org_openpsa_directmarketing_campaign_dba) { |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | //Substyle handling |
| 72 | - if ( !empty($data['message_array']['substyle']) |
|
| 72 | + if (!empty($data['message_array']['substyle']) |
|
| 73 | 73 | && !preg_match('/^builtin:/', $data['message_array']['substyle'])) { |
| 74 | 74 | debug_add("Appending substyle {$data['message_array']['substyle']}"); |
| 75 | 75 | midcom::get()->style->append_substyle($data['message_array']['substyle']); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | private function _real_show_compose(array $data) |
| 121 | 121 | { |
| 122 | 122 | $prefix = ''; |
| 123 | - if ( !empty($data['message_array']['substyle']) |
|
| 123 | + if (!empty($data['message_array']['substyle']) |
|
| 124 | 124 | && preg_match('/^builtin:(.*)/', $data['message_array']['substyle'], $matches_style)) { |
| 125 | 125 | $prefix = $matches_style[1] . '-'; |
| 126 | 126 | } |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | return; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - if ( !is_writable($config['filename']) |
|
| 143 | + if (!is_writable($config['filename']) |
|
| 144 | 144 | && !is_writable(dirname($config['filename']))) { |
| 145 | 145 | debug_add("Error logging file {$config['filename']} is not writable", MIDCOM_LOG_WARN); |
| 146 | 146 | return; |