Passed
Push — master ( 4f3bb7...6aa36d )
by Rubén
04:05
created
app/modules/web/Controllers/ConfigManagerController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@
 block discarded – undo
175 175
         $template->addTemplate('accounts');
176 176
         $template->assign('gdIsAvailable', $this->extensionChecker->checkGdAvailable());
177 177
 
178
-        $mimeTypesAvailable = array_map(function ($value) {
178
+        $mimeTypesAvailable = array_map(function($value) {
179 179
             return $value['type'];
180 180
         }, $this->dic->get(MimeTypes::class)->getMimeTypes());
181 181
 
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigWikiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             $eventMessage->addDescription(__u('Wiki disabled'));
79 79
         }
80 80
 
81
-        return $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
81
+        return $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
82 82
             $this->eventDispatcher->notifyEvent('save.config.wiki', new Event($this, $eventMessage));
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigDokuWikiController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
             $eventMessage->addDescription(__u('DokuWiki disabled'));
83 83
         }
84 84
 
85
-        return $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
85
+        return $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
86 86
             $this->eventDispatcher->notifyEvent('save.config.dokuwiki', new Event($this, $eventMessage));
87 87
         });
88 88
     }
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Grid/NotificationGrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,12 +142,12 @@
 block discarded – undo
142 142
         $gridData = new DataGridData();
143 143
         $gridData->setDataRowSourceId('id');
144 144
         $gridData->addDataRowSource('date', false,
145
-            function ($value) {
145
+            function($value) {
146 146
                 return DateUtil::getDateFromUnix($value);
147 147
             });
148 148
         $gridData->addDataRowSource('type');
149 149
         $gridData->addDataRowSource('component');
150
-        $gridData->addDataRowSource('description', false, function ($data) {
150
+        $gridData->addDataRowSource('description', false, function($data) {
151 151
             return Html::stripTags($data);
152 152
         });
153 153
         $gridData->addDataRowSourceWithIcon('checked', $this->icons->getIconEnabled()->setTitle(__('Read')));
Please login to merge, or discard this patch.
lib/SP/Core/Messages/TextFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     {
57 57
         return implode(
58 58
             $this->delimiter,
59
-            array_map(function ($value) use ($translate) {
59
+            array_map(function($value) use ($translate) {
60 60
                 return sprintf(
61 61
                     '%s: %s',
62 62
                     $translate ? __($value[0]) : $value[0]
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigAccountController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
         return $this->saveConfig(
109 109
             $configData,
110 110
             $this->config,
111
-            function () use ($eventMessage) {
111
+            function() use ($eventMessage) {
112 112
                 $this->eventDispatcher->notifyEvent(
113 113
                     'save.config.account',
114 114
                     new Event($this, $eventMessage)
Please login to merge, or discard this patch.
lib/SP/Providers/Auth/Ldap/LdapUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
         return implode(
81 81
             '',
82
-            array_map(function ($attribute) use ($value) {
82
+            array_map(function($attribute) use ($value) {
83 83
                 return sprintf('(%s=%s)', $attribute, $value);
84 84
             }, $attributes)
85 85
         );
Please login to merge, or discard this patch.
app/modules/web/Controllers/Helpers/Grid/PublicLinkGrid.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
         $gridData->addDataRowSource('getDateAddFormat', true);
130 130
         $gridData->addDataRowSource('getDateExpireFormat', true);
131 131
         $gridData->addDataRowSource('userLogin');
132
-        $gridData->addDataRowSource('notify', false, function ($value) {
132
+        $gridData->addDataRowSource('notify', false, function($value) {
133 133
             return $value ? __('ON') : __('OFF');
134 134
         });
135 135
         $gridData->addDataRowSource('getCountViewsString', true);
Please login to merge, or discard this patch.
lib/SP/Util/Util.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $sysTmp = sys_get_temp_dir();
46 46
         $file = 'syspass.test';
47 47
 
48
-        $checkDir = function ($dir) use ($file) {
48
+        $checkDir = function($dir) use ($file) {
49 49
             if (file_exists($dir . DIRECTORY_SEPARATOR . $file)) {
50 50
                 return $dir;
51 51
             }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                 if ($srcClass !== null) {
179 179
                     $serialized = preg_replace_callback(
180 180
                         '/:\d+:"\x00' . preg_quote($srcClass, '/') . '\x00(\w+)"/',
181
-                        function ($matches) {
181
+                        function($matches) {
182 182
                             return ':' . strlen($matches[1]) . ':"' . $matches[1] . '"';
183 183
                         },
184 184
                         $serialized);
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     public static function itemsIdAdapter(string $itemsId, $delimiter = ','): array
290 290
     {
291
-        return array_map(function ($value) {
291
+        return array_map(function($value) {
292 292
             return intval($value);
293 293
         }, explode($delimiter, $itemsId));
294 294
     }
Please login to merge, or discard this patch.