@@ -133,8 +133,8 @@ discard block |
||
| 133 | 133 | function pretty_print_coordinate($coordinate) |
| 134 | 134 | { |
| 135 | 135 | return sprintf("%0.0f° %2.3f", |
| 136 | - floor(abs($coordinate)), |
|
| 137 | - 60*(abs($coordinate)-floor(abs($coordinate))) |
|
| 136 | + floor(abs($coordinate)), |
|
| 137 | + 60*(abs($coordinate)-floor(abs($coordinate))) |
|
| 138 | 138 | ); |
| 139 | 139 | } |
| 140 | 140 | |
@@ -148,8 +148,8 @@ discard block |
||
| 148 | 148 | function pretty_print_coordinates($latitude, $longitude) |
| 149 | 149 | { |
| 150 | 150 | return sprintf("%s %s, %s %s", |
| 151 | - ($latitude>0)?"N":"S", org_routamc_positioning_utils::pretty_print_coordinate($latitude), |
|
| 152 | - ($longitude>0)?"E":"W", org_routamc_positioning_utils::pretty_print_coordinate($longitude) |
|
| 151 | + ($latitude>0)?"N":"S", org_routamc_positioning_utils::pretty_print_coordinate($latitude), |
|
| 152 | + ($longitude>0)?"E":"W", org_routamc_positioning_utils::pretty_print_coordinate($longitude) |
|
| 153 | 153 | ); |
| 154 | 154 | } |
| 155 | 155 | |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $data[] = array( |
| 58 | 58 | "guid" => $invoice->guid, |
| 59 | 59 | "number" => $invoice->number, |
| 60 | - "date" => $date, |
|
| 60 | + "date" => $date, |
|
| 61 | 61 | "status" => $invoice->get_status(), |
| 62 | 62 | "sum" => $invoice->sum |
| 63 | 63 | ); |
@@ -183,17 +183,17 @@ |
||
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | /** |
| 186 | - * Inserts a link detector to the given HTML source. All outgoing |
|
| 187 | - * HTTP links in the source HTML are replaced with the given |
|
| 188 | - * link detector address so that the token "URL" is replaced with |
|
| 189 | - * encoded form of the original link. It is expected that the link detector |
|
| 190 | - * address points to a script that records the passed link and |
|
| 191 | - * forwards the client to the real link target. |
|
| 192 | - * |
|
| 193 | - * @param string $html the HTML source |
|
| 194 | - * @param string $address the link detector address |
|
| 195 | - * @return HTML source with the link detector |
|
| 196 | - */ |
|
| 186 | + * Inserts a link detector to the given HTML source. All outgoing |
|
| 187 | + * HTTP links in the source HTML are replaced with the given |
|
| 188 | + * link detector address so that the token "URL" is replaced with |
|
| 189 | + * encoded form of the original link. It is expected that the link detector |
|
| 190 | + * address points to a script that records the passed link and |
|
| 191 | + * forwards the client to the real link target. |
|
| 192 | + * |
|
| 193 | + * @param string $html the HTML source |
|
| 194 | + * @param string $address the link detector address |
|
| 195 | + * @return HTML source with the link detector |
|
| 196 | + */ |
|
| 197 | 197 | private function _insert_link_detector($html, $address) |
| 198 | 198 | { |
| 199 | 199 | $address = addslashes($address); |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | |
| 176 | 176 | if ($this->_config->get('enable_notify')) |
| 177 | 177 | { |
| 178 | - $this->_new_comment->_send_notification = true; |
|
| 178 | + $this->_new_comment->_send_notification = true; |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | if (! $this->_new_comment->create()) |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | 111 | * Clear the index completely or by constraint. |
| 112 | - * |
|
| 112 | + * |
|
| 113 | 113 | * @return boolean Indicating success. |
| 114 | 114 | */ |
| 115 | 115 | function delete_all($constraint) |
@@ -813,7 +813,7 @@ |
||
| 813 | 813 | { |
| 814 | 814 | if ( $this->storage->object |
| 815 | 815 | && midcom::get()->config->get('indexer_backend') |
| 816 | - //check if there is an index_method set |
|
| 816 | + //check if there is an index_method set |
|
| 817 | 817 | && ( !array_key_exists('index_method', $this->_datamanager->schema->fields[$this->name]) |
| 818 | 818 | || |
| 819 | 819 | // do not index the attachment for index_method attachment & noindex |
@@ -274,7 +274,7 @@ |
||
| 274 | 274 | $html = " <tr>\n"; |
| 275 | 275 | if ($this->_type->sortable) |
| 276 | 276 | { |
| 277 | - $html .= " <td class=\"new sortable\"></td>\n"; |
|
| 277 | + $html .= " <td class=\"new sortable\"></td>\n"; |
|
| 278 | 278 | } |
| 279 | 279 | // Filename column |
| 280 | 280 | $html .= " <td class=\"new text\" colspan=\"2\">"; |
@@ -92,8 +92,8 @@ |
||
| 92 | 92 | */ |
| 93 | 93 | public function __construct(array &$schemadb) |
| 94 | 94 | { |
| 95 | - parent::__construct(); |
|
| 96 | - $this->_schemadb =& $schemadb; |
|
| 95 | + parent::__construct(); |
|
| 96 | + $this->_schemadb =& $schemadb; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * DM2 callback, has to create the new DBA object |
| 18 | 18 | * |
| 19 | - * It must return a reference to a freshly created object that should be populated |
|
| 19 | + * It must return a reference to a freshly created object that should be populated |
|
| 20 | 20 | * with the validated form data. It receives a reference to the controller instance |
| 21 | 21 | * calling it. |
| 22 | 22 | * |