@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @access public |
88 | 88 | * |
89 | - * @param string $ps_file The path and name of the file to analyse. |
|
89 | + * @param string $ps_file_name The path and name of the file to analyse. |
|
90 | 90 | * @see http://dataprotocols.org/json-table-schema |
91 | 91 | * |
92 | 92 | * @return boolean Whether the file was successfully set. |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | * @access protected |
157 | 157 | * @static |
158 | 158 | * |
159 | - * @return true on success or throws exception on error. |
|
159 | + * @return boolean on success or throws exception on error. |
|
160 | 160 | */ |
161 | 161 | protected static function setCsvHeaderColumns() |
162 | 162 | { |
@@ -48,6 +48,7 @@ |
||
48 | 48 | * @access protected |
49 | 49 | * |
50 | 50 | * @param string The date format to validate against. |
51 | + * @param string $ps_format |
|
51 | 52 | * |
52 | 53 | * @return boolean Whether the input is valid. |
53 | 54 | */ |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $ls_reference_fields = implode(" || ', ' || ", $pa_reference_fields); |
28 | 28 | |
29 | - $ls_validation_sql = "SELECT |
|
29 | + $ls_validation_sql = "SELECT |
|
30 | 30 | COUNT(*) |
31 | 31 | FROM |
32 | 32 | $ps_reference_resource |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * This is an example of how you can use the JSON table module to validate |
|
4 | - * data from a CSV file against your own schema definition and then store |
|
5 | - * it in a PostgreSQL database. |
|
6 | - * |
|
7 | - * It's expected that this code should be used as a guide. Most likely |
|
8 | - * this code would converted into a function in an application or in an |
|
9 | - * API endpoint. |
|
10 | - * |
|
11 | - * To help make intended use of variables more understandable, this file, |
|
12 | - * along with the source code uses Hungarian Notation in the variable names. |
|
13 | - * |
|
14 | - * @see https://en.wikipedia.org/wiki/Hungarian_notation |
|
15 | - */ |
|
3 | + * This is an example of how you can use the JSON table module to validate |
|
4 | + * data from a CSV file against your own schema definition and then store |
|
5 | + * it in a PostgreSQL database. |
|
6 | + * |
|
7 | + * It's expected that this code should be used as a guide. Most likely |
|
8 | + * this code would converted into a function in an application or in an |
|
9 | + * API endpoint. |
|
10 | + * |
|
11 | + * To help make intended use of variables more understandable, this file, |
|
12 | + * along with the source code uses Hungarian Notation in the variable names. |
|
13 | + * |
|
14 | + * @see https://en.wikipedia.org/wiki/Hungarian_notation |
|
15 | + */ |
|
16 | 16 | use \JsonTable\Analyse; |
17 | 17 | use \JsonTable\Store; |
18 | 18 |