Passed
Push — 3.0 ( 45706c...79e259 )
by Rubén
06:08
created
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.
app/modules/web/Controllers/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
             $this->checkForwarded();
65 65
 
66
-            $redirector = function ($route) use ($from) {
66
+            $redirector = function($route) use ($from) {
67 67
                 $uri = new Uri(Bootstrap::$SUBURI);
68 68
                 $uri->addParam('r', $route);
69 69
 
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/ConfigMailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             $configData->setMailSecurity($mailSecurity);
83 83
             $configData->setMailFrom($mailFrom);
84 84
             $configData->setMailRecipients($mailRecipients);
85
-            $configData->setMailEvents($this->request->analyzeArray('mail_events', function ($items) {
85
+            $configData->setMailEvents($this->request->analyzeArray('mail_events', function($items) {
86 86
                 return ConfigUtil::eventsAdapter($items);
87 87
             }, []));
88 88
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         return $this->saveConfig(
112 112
             $configData,
113 113
             $this->config,
114
-            function () use ($eventMessage) {
114
+            function() use ($eventMessage) {
115 115
                 $this->eventDispatcher->notifyEvent(
116 116
                     'save.config.mail',
117 117
                     new Event($this, $eventMessage)
Please login to merge, or discard this patch.