Index: trunk/extensions/Translate/ffs/PhpVariables.php |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | * |
6 | 6 | * @author Niklas Laxström |
7 | 7 | * @author Siebrand Mazeland |
8 | | - * @copyright Copyright © 2008, Niklas Laxström, Siebrand Mazeland |
| 8 | + * @copyright Copyright © 2008-2010, Niklas Laxström, Siebrand Mazeland |
9 | 9 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
10 | 10 | * @file |
11 | 11 | */ |
— | — | @@ -20,10 +20,8 @@ |
21 | 21 | /** |
22 | 22 | * Reads all \@author tags from the file and returns array of authors. |
23 | 23 | * |
24 | | - * @param $filename From which file to get the authors. |
25 | 24 | * @return Array of authors. |
26 | | - * |
27 | | - * FIXME: possible to refactor to reduce duplication? (copy from Wiki.php) |
| 25 | + * @todo Possible to refactor to reduce duplication? (copy from Wiki.php) |
28 | 26 | */ |
29 | 27 | public function parseAuthors() { |
30 | 28 | if ( $this->filename === false ) { |
— | — | @@ -42,7 +40,7 @@ |
43 | 41 | * Basically the same, with different author prefix and separator between |
44 | 42 | * headers and messages. |
45 | 43 | * |
46 | | - * FIXME: possible to refactor to reduce duplication? |
| 44 | + * @todo Possible to refactor to reduce duplication? |
47 | 45 | */ |
48 | 46 | protected function parseHeader() { |
49 | 47 | $authors = array(); |
Index: trunk/extensions/Translate/ffs/OpenLayers.php |
— | — | @@ -5,6 +5,7 @@ |
6 | 6 | * @author Robert Leverington |
7 | 7 | * @copyright Copyright © 2009 Robert Leverington |
8 | 8 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later |
| 9 | + * @file |
9 | 10 | */ |
10 | 11 | |
11 | 12 | class OpenLayersFormatReader extends SimpleFormatReader { |
— | — | @@ -41,19 +42,20 @@ |
42 | 43 | private function leftTrim( $string ) { |
43 | 44 | $string = ltrim( $string ); |
44 | 45 | $string = ltrim( $string, '"' ); |
45 | | - |
46 | 46 | return $string; |
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Parse OpenLayer JavaScript language class. |
51 | | - * Known issues: |
| 51 | + * |
| 52 | + * @param $mangler StringMangler |
| 53 | + * @return \array Messages from the file. |
| 54 | + * |
| 55 | + * @todo Known issues: |
52 | 56 | * - It is a requirement for key names to be enclosed in single |
53 | 57 | * quotation marks, and for messages to be enclosed in double. |
54 | 58 | * - The last key-value pair must have a comma at the end. |
55 | 59 | * - Uses seperate $this->leftTrim() function, this is undersired. |
56 | | - * @params $mangler StringMangler |
57 | | - * @return Array: Messages from file. |
58 | 60 | */ |
59 | 61 | public function parseMessages( StringMangler $mangler ) { |
60 | 62 | $data = file_get_contents( $this->filename ); |
— | — | @@ -110,6 +112,7 @@ |
111 | 113 | } |
112 | 114 | |
113 | 115 | class OpenLayersFormatWriter extends SimpleFormatWriter { |
| 116 | + |
114 | 117 | /** |
115 | 118 | * Export a languages messages. |
116 | 119 | * @param $target File handler. |