Completed
Branch master (79a5f1)
by Andreas
18:48
created
lib/org/routamc/positioning/country.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
     public function _on_creating()
31 31
     {
32 32
         $qb = org_routamc_positioning_country_dba::new_query_builder();
33
-        $qb->add_constraint('name', '=', (string)$this->name);
33
+        $qb->add_constraint('name', '=', (string) $this->name);
34 34
         $qb->set_limit(1);
35 35
         $matches = $qb->execute_unchecked();
36 36
         if (count($matches) > 0)
Please login to merge, or discard this patch.
lib/org/routamc/positioning/importer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@
 block discarded – undo
41 41
      */
42 42
     function normalize_coordinates($latitude, $longitude)
43 43
     {
44
-        return array
45
-        (
44
+        return array(
46 45
             'latitude' => (float) $latitude,
47 46
             'longitude' => (float) $longitude,
48 47
         );
Please login to merge, or discard this patch.
lib/org/routamc/positioning/person.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
     function seek_log($time = null)
53 53
     {
54
-        if (   is_null($this->_person)
54
+        if (is_null($this->_person)
55 55
             || !$this->_person->id)
56 56
         {
57 57
             return null;
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/exec/mark_duplicates.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 midcom::get()->auth->require_valid_user();
11 11
 
12 12
 // Get rid of output buffers (we need to make output to keep browser happy)
13
-while(@ob_end_flush());
13
+while (@ob_end_flush());
14 14
 
15 15
 echo "<p>\n";
16 16
 
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/style/show-group-subgroups-item.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
         if ($view_group->postalStreet)
22 22
         {
23 23
             echo "<li>{$view_group->postalStreet}, {$view_group->postalCity}</li>\n";
24
-        }
25
-        else if ($view_group->street)
24
+        } else if ($view_group->street)
26 25
         {
27 26
             echo "<li>{$view_group->street}, {$view_group->city}</li>\n";
28 27
         }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/style/show-group-persons-item.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
                data-ajax-url=\"{$prefix}group/{$data['group']->guid}/update_member_title/\"
18 18
                data-ajax-default=\"" . $data['l10n']->get('<title>') . "\" />
19 19
         </li>\n";
20
-}
21
-else
20
+} else
22 21
 {
23 22
     $contact->extra_html = "<li>{$data['member_title']}</li>\n";
24 23
 }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/style/show-group.php 1 patch
Spacing   +3 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
             case 'homepage':
36 36
                 echo "<h2>" . $data['l10n']->get('contact information') . "</h2>\n";
37 37
                 echo "<div><strong>" . $data['l10n']->get($fieldname) . ": </strong>";
38
-                echo '<a href="' .$fielddata . '">' . $fielddata . "</a></div>";
38
+                echo '<a href="' . $fielddata . '">' . $fielddata . "</a></div>";
39 39
                 break;
40 40
             case 'email':
41 41
                 echo "<div><strong>" . $data['l10n']->get($fieldname) . ": </strong>";
@@ -80,16 +80,14 @@  discard block
 block discarded – undo
80 80
         //TODO: Check for privileges somehow
81 81
         if ($invoices_url = $siteconfig->get_node_relative_url('org.openpsa.invoices'))
82 82
         {
83
-            $tabs[] = array
84
-            (
83
+            $tabs[] = array(
85 84
                 'url' => $invoices_url . "list/customer/all/{$data['group']->guid}/",
86 85
                 'title' => midcom::get()->i18n->get_string('invoices', 'org.openpsa.invoices'),
87 86
             );
88 87
         }
89 88
         if ($sales_url = $siteconfig->get_node_relative_url('org.openpsa.sales'))
90 89
         {
91
-            $tabs[] = array
92
-            (
90
+            $tabs[] = array(
93 91
                 'url' => $sales_url . "list/customer/{$data['group']->guid}/",
94 92
                 'title' => midcom::get()->i18n->get_string('salesprojects', 'org.openpsa.sales'),
95 93
             );
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/style/search-groups-item.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
         if ($data['group']->postalStreet)
18 18
         {
19 19
             echo "<li>{$data['group']->postalStreet}, {$data['group']->postalCity}</li>\n";
20
-        }
21
-        else if ($data['group']->street)
20
+        } else if ($data['group']->street)
22 21
         {
23 22
             echo "<li>{$data['group']->street}, {$data['group']->city}</li>\n";
24 23
         }
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/style/show-person-groups-item.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
13 13
         data-guid=\"" . $data['member']->guid . "\"
14 14
         data-ajax-default=\"" . $data['l10n']->get('<title>') . "\"
15 15
         data-ajax-url=\"{$prefix}group/{$group_guid}/update_member_title/\" />\n";
16
-}
17
-else
16
+} else
18 17
 {
19 18
     $view_title_form = $data['member_title'];
20 19
 }
@@ -40,8 +39,7 @@  discard block
 block discarded – undo
40 39
         if ($view_group->postalStreet)
41 40
         {
42 41
             echo "<li>{$view_group->postalStreet}, {$view_group->postalCity}</li>\n";
43
-        }
44
-        else if ($view_group->street)
42
+        } else if ($view_group->street)
45 43
         {
46 44
             echo "<li>{$view_group->street}, {$view_group->city}</li>\n";
47 45
         }
Please login to merge, or discard this patch.