Passed
Pull Request — 3.0 (#1130)
by
unknown
03:27
created
app/modules/web/Controllers/ConfigLdapController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@
 block discarded – undo
97 97
                 return $this->returnJsonResponse(JsonResponse::JSON_SUCCESS, __u('No changes'));
98 98
             }
99 99
 
100
-            return $this->saveConfig($configData, $this->config, function () use ($eventMessage) {
100
+            return $this->saveConfig($configData, $this->config, function() use ($eventMessage) {
101 101
                 $this->eventDispatcher->notifyEvent('save.config.ldap', new Event($this, $eventMessage));
102 102
             });
103 103
         } catch (\Exception $e) {
Please login to merge, or discard this patch.
lib/SP/Services/Backup/FileBackupService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
190 190
     {
191 191
         $path = $this->path . DIRECTORY_SEPARATOR . AppInfoInterface::APP_NAME;
192 192
 
193
-        array_map(function ($file) {
193
+        array_map(function($file) {
194 194
             return @unlink($file);
195 195
         }, array_merge(
196 196
             glob($path . '_db-*'),
Please login to merge, or discard this patch.
app/modules/web/Controllers/ControllerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
             $this->session,
240 240
             $this->request,
241 241
             $this->configData,
242
-            function ($redirect) {
242
+            function($redirect) {
243 243
                 $this->router->response()
244 244
                     ->redirect($redirect)
245 245
                     ->send(true);
Please login to merge, or discard this patch.
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/SimpleControllerBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@
 block discarded – undo
239 239
             $this->session,
240 240
             $this->request,
241 241
             $this->configData,
242
-            function ($redirect) {
242
+            function($redirect) {
243 243
                 $this->router->response()
244 244
                     ->redirect($redirect)
245 245
                     ->send(true);
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.
lib/Definitions.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 return [
47 47
     Request::class => \DI\create(Request::class)
48 48
         ->constructor(\Klein\Request::createFromGlobals()),
49
-    ContextInterface::class => function (ContainerInterface $c) {
49
+    ContextInterface::class => function(ContainerInterface $c) {
50 50
         switch (APP_MODULE) {
51 51
             case 'web':
52 52
                 return $c->get(\SP\Core\Context\SessionContext::class);
@@ -54,24 +54,24 @@  discard block
 block discarded – undo
54 54
                 return $c->get(\SP\Core\Context\StatelessContext::class);
55 55
         }
56 56
     },
57
-    Config::class => function (ContainerInterface $c) {
57
+    Config::class => function(ContainerInterface $c) {
58 58
         return new Config(
59 59
             new XmlHandler(new FileHandler(CONFIG_FILE)),
60 60
             new FileCache(Config::CONFIG_CACHE_FILE),
61 61
             $c);
62 62
     },
63
-    ConfigData::class => function (Config $config) {
63
+    ConfigData::class => function(Config $config) {
64 64
         return $config->getConfigData();
65 65
     },
66 66
     DBStorageInterface::class => \DI\create(MySQLHandler::class)
67 67
         ->constructor(\DI\factory([DatabaseConnectionData::class, 'getFromConfig'])),
68
-    Actions::class => function (ContainerInterface $c) {
68
+    Actions::class => function(ContainerInterface $c) {
69 69
         return new Actions(
70 70
             new FileCache(Actions::ACTIONS_CACHE_FILE),
71 71
             new XmlHandler(new FileHandler(ACTIONS_FILE))
72 72
         );
73 73
     },
74
-    MimeTypes::class => function () {
74
+    MimeTypes::class => function() {
75 75
         return new MimeTypes(
76 76
             new FileCache(MimeTypes::MIME_CACHE_FILE),
77 77
             new XmlHandler(new FileHandler(MIMETYPES_FILE))
Please login to merge, or discard this patch.
lib/SP/Mvc/View/Template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
         $sk = $this->vars->get('sk');
362 362
 
363 363
         // An anonymous proxy function for handling views variables
364
-        $_getvar = function ($key, $default = null) {
364
+        $_getvar = function($key, $default = null) {
365 365
             if (DEBUG && !$this->vars->exists($key)) {
366 366
                 logger(sprintf(__('Unable to retrieve "%s" variable'), $key), 'WARN');
367 367
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
             return $this->vars->get($key, $default);
372 372
         };
373 373
 
374
-        $_getRoute = function ($path) use ($sk) {
374
+        $_getRoute = function($path) use ($sk) {
375 375
             $uri = new Uri(Bootstrap::$WEBROOT . Bootstrap::$SUBURI);
376 376
             $uri->addParam('r', $path);
377 377
             $uri->addParam('sk', $sk);
Please login to merge, or discard this patch.