Passed
Pull Request — master (#1631)
by Rubén
03:57
created
lib/SP/Services/Crypt/TemporaryMasterPassService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
     {
195 195
         $mailMessage = $this->getMessageForEmail($key);
196 196
 
197
-        $emails = array_map(function ($value) {
197
+        $emails = array_map(function($value) {
198 198
             return $value->email;
199 199
         }, $this->dic->get(UserService::class)->getUserEmailForGroup($groupId));
200 200
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $mailMessage = $this->getMessageForEmail($key);
215 215
 
216
-        $emails = array_map(function ($value) {
216
+        $emails = array_map(function($value) {
217 217
             return $value->email;
218 218
         }, $this->dic->get(UserService::class)->getUserEmailForAll());
219 219
 
Please login to merge, or discard this patch.
app/modules/web/Controllers/ConfigGeneralController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $syslogPort = $this->request->analyzeInt('remotesyslog_port', 0);
87 87
 
88 88
         $configData->setLogEnabled($logEnabled);
89
-        $configData->setLogEvents($this->request->analyzeArray('log_events', function ($items) {
89
+        $configData->setLogEvents($this->request->analyzeArray('log_events', function($items) {
90 90
             return ConfigUtil::eventsAdapter($items);
91 91
         }, []));
92 92
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         return $this->saveConfig(
171 171
             $configData,
172 172
             $this->config,
173
-            function () use ($eventMessage, $configData) {
173
+            function() use ($eventMessage, $configData) {
174 174
                 if ($configData->isMaintenance()) {
175 175
                     Util::lockApp($this->session->getUserData()->getId(), 'config');
176 176
                 }
Please login to merge, or discard this patch.
app/modules/web/Controllers/TaskController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 
73 73
         try {
74 74
             $this->taskService->trackStatus($taskId,
75
-                function ($id, $message) {
75
+                function($id, $message) {
76 76
                     echo 'id: ', $id, PHP_EOL, 'data: ', $message, PHP_EOL, PHP_EOL;
77 77
 
78 78
                     ob_flush();
Please login to merge, or discard this patch.
app/modules/web/Controllers/ItemsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     public function notificationsAction()
116 116
     {
117 117
         $notifications = array_map(
118
-            function ($notification) {
118
+            function($notification) {
119 119
                 /** @@var $notification NotificationData */
120 120
                 return sprintf(
121 121
                     '(%s) - %s',
Please login to merge, or discard this patch.
app/modules/web/Controllers/Traits/ItemTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
      */
107 107
     protected function addCustomFieldsForItem($moduleId, $itemId, Request $request)
108 108
     {
109
-        $customFields = $request->analyzeArray('customfield', function ($values) {
110
-            return array_map(function ($value) {
109
+        $customFields = $request->analyzeArray('customfield', function($values) {
110
+            return array_map(function($value) {
111 111
                 return Filter::getString($value);
112 112
             }, $values);
113 113
         });
@@ -165,8 +165,8 @@  discard block
 block discarded – undo
165 165
      */
166 166
     protected function updateCustomFieldsForItem($moduleId, $itemId, Request $request)
167 167
     {
168
-        $customFields = $request->analyzeArray('customfield', function ($values) {
169
-            return array_map(function ($value) {
168
+        $customFields = $request->analyzeArray('customfield', function($values) {
169
+            return array_map(function($value) {
170 170
                 return Filter::getString($value);
171 171
             }, $values);
172 172
         });
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(ltrim(Bootstrap::$SUBURI, '/'));
68 68
                 $uri->addParam('r', $route);
69 69
 
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
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         $this->sessionLogout(
88 88
             $this->request,
89 89
             $this->configData,
90
-            function ($redirect) {
90
+            function($redirect) {
91 91
                 $this->router->response()
92 92
                     ->redirect($redirect)
93 93
                     ->send(true);
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
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         $this->sessionLogout(
88 88
             $this->request,
89 89
             $this->configData,
90
-            function ($redirect) {
90
+            function($redirect) {
91 91
                 $this->router->response()
92 92
                     ->redirect($redirect)
93 93
                     ->send(true);
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
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 return [
53 53
     Request::class => create(Request::class)
54 54
         ->constructor(\Klein\Request::createFromGlobals()),
55
-    ContextInterface::class => function (ContainerInterface $c) {
55
+    ContextInterface::class => function(ContainerInterface $c) {
56 56
         switch (APP_MODULE) {
57 57
             case 'web':
58 58
                 return $c->get(SessionContext::class);
@@ -60,24 +60,24 @@  discard block
 block discarded – undo
60 60
                 return $c->get(StatelessContext::class);
61 61
         }
62 62
     },
63
-    Config::class => function (ContainerInterface $c) {
63
+    Config::class => function(ContainerInterface $c) {
64 64
         return new Config(
65 65
             new XmlHandler(new FileHandler(CONFIG_FILE)),
66 66
             new FileCache(Config::CONFIG_CACHE_FILE),
67 67
             $c);
68 68
     },
69
-    ConfigData::class => function (Config $config) {
69
+    ConfigData::class => function(Config $config) {
70 70
         return $config->getConfigData();
71 71
     },
72 72
     DBStorageInterface::class => create(MySQLHandler::class)
73 73
         ->constructor(factory([DatabaseConnectionData::class, 'getFromConfig'])),
74
-    Actions::class => function (ContainerInterface $c) {
74
+    Actions::class => function(ContainerInterface $c) {
75 75
         return new Actions(
76 76
             new FileCache(Actions::ACTIONS_CACHE_FILE),
77 77
             new XmlHandler(new FileHandler(ACTIONS_FILE))
78 78
         );
79 79
     },
80
-    MimeTypes::class => function () {
80
+    MimeTypes::class => function() {
81 81
         return new MimeTypes(
82 82
             new FileCache(MimeTypes::MIME_CACHE_FILE),
83 83
             new XmlHandler(new FileHandler(MIMETYPES_FILE))
Please login to merge, or discard this patch.