@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -19,6 +19,6 @@ |
||
| 19 | 19 | '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', '[?]', |
| 20 | 20 | ); |
| 21 | 21 | |
| 22 | -$result =& $data; |
|
| 22 | +$result = & $data; |
|
| 23 | 23 | unset($data); |
| 24 | 24 | return $result; |
@@ -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; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | $config->setIgnoreHeaderLine("true"); |
| 138 | 138 | // extract data from CSV file |
| 139 | 139 | $interpreter = new Interpreter(); |
| 140 | - $interpreter->addObserver(function (array $row) use (&$valuesToImport) { |
|
| 140 | + $interpreter->addObserver(function(array $row) use (&$valuesToImport) { |
|
| 141 | 141 | $valuesToImport[] = array( |
| 142 | 142 | 'Label' => $row[0], |
| 143 | 143 | 'Login' => $row[1], |
@@ -966,7 +966,7 @@ discard block |
||
| 966 | 966 | break; |
| 967 | 967 | } |
| 968 | 968 | |
| 969 | -spl_autoload_register(function ($class) { |
|
| 969 | +spl_autoload_register(function($class) { |
|
| 970 | 970 | $prefix = 'League\\Csv\\'; |
| 971 | 971 | $base_dir = __DIR__.'/src/'; |
| 972 | 972 | $len = strlen($prefix); |
@@ -199,7 +199,7 @@ |
||
| 199 | 199 | } elseif (null !== filter_input(INPUT_POST, 'change_pw_origine', FILTER_SANITIZE_STRING) |
| 200 | 200 | && ((filter_input(INPUT_POST, 'change_pw_origine', FILTER_SANITIZE_STRING) === "admin_change" |
| 201 | 201 | || filter_input(INPUT_POST, 'change_pw_origine', FILTER_SANITIZE_STRING) === "user_change" |
| 202 | - ) && ($_SESSION['user_admin'] === "1"|| $_SESSION['user_manager'] === "1" |
|
| 202 | + ) && ($_SESSION['user_admin'] === "1" || $_SESSION['user_manager'] === "1" |
|
| 203 | 203 | || $_SESSION['user_can_manage_all_users'] === "1") |
| 204 | 204 | ) |
| 205 | 205 | ) { |