@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | ; |
| 133 | 133 | // extract data from CSV file |
| 134 | 134 | $interpreter = new Interpreter(); |
| 135 | - $interpreter->addObserver(function (array $row) use (&$valuesToImport) { |
|
| 135 | + $interpreter->addObserver(function(array $row) use (&$valuesToImport) { |
|
| 136 | 136 | $valuesToImport[] = array( |
| 137 | 137 | 'Label' => $row[0], |
| 138 | 138 | 'Login' => $row[1], |
@@ -956,7 +956,7 @@ discard block |
||
| 956 | 956 | break; |
| 957 | 957 | } |
| 958 | 958 | |
| 959 | -spl_autoload_register(function ($class) { |
|
| 959 | +spl_autoload_register(function($class) { |
|
| 960 | 960 | $prefix = 'League\\Csv\\'; |
| 961 | 961 | $base_dir = __DIR__.'/src/'; |
| 962 | 962 | $len = strlen($prefix); |
@@ -1805,7 +1805,7 @@ discard block |
||
| 1805 | 1805 | $antiXss = new protect\AntiXSS\AntiXSS(); |
| 1806 | 1806 | |
| 1807 | 1807 | // Protect against bad inputs |
| 1808 | - if (is_array($source_file) ||is_array($target_file)) { |
|
| 1808 | + if (is_array($source_file) || is_array($target_file)) { |
|
| 1809 | 1809 | return 'error_cannot_be_array'; |
| 1810 | 1810 | } |
| 1811 | 1811 | |
@@ -1958,7 +1958,7 @@ discard block |
||
| 1958 | 1958 | $newArr = array(); |
| 1959 | 1959 | |
| 1960 | 1960 | foreach ($arr as $key => $value) { |
| 1961 | - $newArr[ $key ] = (is_array($value) ? array_map_r($func, $value) : ( is_array($func) ? call_user_func_array($func, $value) : $func( $value ))); |
|
| 1961 | + $newArr[$key] = (is_array($value) ? array_map_r($func, $value) : (is_array($func) ? call_user_func_array($func, $value) : $func($value))); |
|
| 1962 | 1962 | } |
| 1963 | 1963 | |
| 1964 | 1964 | return $newArr; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | WHERE code = %s", |
| 52 | 52 | $_GET['code'] |
| 53 | 53 | ); |
| 54 | - if ( $data['timestamp'] == intval($_GET['stamp'])) { |
|
| 54 | + if ($data['timestamp'] == intval($_GET['stamp'])) { |
|
| 55 | 55 | // otv is too old |
| 56 | 56 | if ($data['timestamp'] < (time() - ($_SESSION['settings']['otv_expiration_period'] * 86400))) { |
| 57 | 57 | $html = "Link is too old!"; |