@@ -163,7 +163,7 @@ |
||
163 | 163 | protected function initialize() |
164 | 164 | { |
165 | 165 | $this->acl = $this->dic->get(Acl::class); |
166 | - $this->accountHistoryService = $this->dic->get(AccountHistoryService::class);; |
|
166 | + $this->accountHistoryService = $this->dic->get(AccountHistoryService::class); ; |
|
167 | 167 | |
168 | 168 | $this->view->assign('sk', $this->context->generateSecurityKey()); |
169 | 169 | } |
@@ -125,7 +125,7 @@ |
||
125 | 125 | AccountSearchItem::$isDemoMode = $this->configData->isDemoEnabled(); |
126 | 126 | |
127 | 127 | if (\SP\Services\Account\AccountSearchItem::$wikiEnabled) { |
128 | - $wikiFilter = array_map(function ($value) { |
|
128 | + $wikiFilter = array_map(function($value) { |
|
129 | 129 | return preg_quote($value, '/'); |
130 | 130 | }, $this->configData->getWikiFilter()); |
131 | 131 |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return [ |
45 | 45 | Request::class => \DI\create(Request::class) |
46 | 46 | ->constructor(\Klein\Request::createFromGlobals()), |
47 | - ContextInterface::class => function (ContainerInterface $c) { |
|
47 | + ContextInterface::class => function(ContainerInterface $c) { |
|
48 | 48 | switch (APP_MODULE) { |
49 | 49 | case 'web': |
50 | 50 | return $c->get(\SP\Core\Context\SessionContext::class); |
@@ -52,15 +52,15 @@ discard block |
||
52 | 52 | return $c->get(\SP\Core\Context\StatelessContext::class); |
53 | 53 | } |
54 | 54 | }, |
55 | - Config::class => function (ContainerInterface $c) { |
|
55 | + Config::class => function(ContainerInterface $c) { |
|
56 | 56 | return new Config(new XmlHandler(new FileHandler(CONFIG_FILE)), $c->get(ContextInterface::class), $c); |
57 | 57 | }, |
58 | - ConfigData::class => function (Config $config) { |
|
58 | + ConfigData::class => function(Config $config) { |
|
59 | 59 | return $config->getConfigData(); |
60 | 60 | }, |
61 | 61 | DBStorageInterface::class => \DI\create(MySQLHandler::class) |
62 | 62 | ->constructor(\DI\factory([DatabaseConnectionData::class, 'getFromConfig'])), |
63 | - Actions::class => function (ContainerInterface $c) { |
|
63 | + Actions::class => function(ContainerInterface $c) { |
|
64 | 64 | return new Actions($c->get(FileCache::class), new XmlHandler(new FileHandler(ACTIONS_FILE))); |
65 | 65 | }, |
66 | 66 | Acl::class => \DI\autowire(Acl::class) |
@@ -112,7 +112,7 @@ |
||
112 | 112 | return; |
113 | 113 | } |
114 | 114 | |
115 | - $this->context =& $context['context']; |
|
115 | + $this->context = & $context['context']; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -216,7 +216,7 @@ |
||
216 | 216 | return ''; |
217 | 217 | } |
218 | 218 | |
219 | - return implode(PHP_EOL, array_map(function ($detail) use ($translate) { |
|
219 | + return implode(PHP_EOL, array_map(function($detail) use ($translate) { |
|
220 | 220 | return $this->formatDetail($detail, $translate); |
221 | 221 | }, $this->details)); |
222 | 222 | } |
@@ -218,7 +218,7 @@ |
||
218 | 218 | |
219 | 219 | if (count($this->details) > 1) { |
220 | 220 | if ($translate === true) { |
221 | - return implode(PHP_EOL, array_map(function ($detail) use ($translate) { |
|
221 | + return implode(PHP_EOL, array_map(function($detail) use ($translate) { |
|
222 | 222 | return $this->formatDetail($detail, $translate); |
223 | 223 | }, $this->details)); |
224 | 224 | } |
@@ -150,7 +150,7 @@ |
||
150 | 150 | public function setRuntimeFilter($class, $method) |
151 | 151 | { |
152 | 152 | if (method_exists($class, $method)) { |
153 | - $this->_runtimeFilter = function ($filter) use ($method) { |
|
153 | + $this->_runtimeFilter = function($filter) use ($method) { |
|
154 | 154 | // new \ReflectionMethod($class, $method); |
155 | 155 | return $filter->{$method}(); |
156 | 156 | }; |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public static function getArray(array $array): array |
64 | 64 | { |
65 | - return array_map(function ($value) { |
|
65 | + return array_map(function($value) { |
|
66 | 66 | if ($value !== null) { |
67 | 67 | if (is_numeric($value)) { |
68 | 68 | return Filter::getInt($value); |
@@ -143,7 +143,7 @@ |
||
143 | 143 | $this->eventDispatcher->notifyEvent('send.mail', |
144 | 144 | new Event($this, EventMessage::factory() |
145 | 145 | ->addDescription(__u('Correo enviado')) |
146 | - ->addDetail(__u('Destinatario'), implode(',', array_map(function ($value) { |
|
146 | + ->addDetail(__u('Destinatario'), implode(',', array_map(function($value) { |
|
147 | 147 | return $value[0]; |
148 | 148 | }, $this->mailer->getToAddresses())))) |
149 | 149 | ); |