Completed
Push — development ( c392ac...98d449 )
by Nils
08:13
created
sources/import.queries.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
sources/main.functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1805,7 +1805,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
otv.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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!";
Please login to merge, or discard this patch.