Passed
Pull Request — devel-3.0 (#1021)
by
unknown
04:23
created
lib/SP/Services/Upgrade/UpgradePublicLink.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         );
59 59
 
60 60
         try {
61
-            $this->transactionAware(function () {
61
+            $this->transactionAware(function() {
62 62
                 $publicLinkService = $this->dic->get(PublicLinkService::class);
63 63
 
64 64
                 $queryData = new QueryData();
Please login to merge, or discard this patch.
lib/SP/Services/Upgrade/UpgradeConfigService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         $message = EventMessage::factory();
78 78
 
79 79
         if (isset($CONFIG) && is_array($CONFIG)) {
80
-            $paramMapper = function ($mapFrom, $mapTo) use ($CONFIG, $message, $configData) {
80
+            $paramMapper = function($mapFrom, $mapTo) use ($CONFIG, $message, $configData) {
81 81
                 if (isset($CONFIG[$mapFrom])) {
82 82
                     $message->addDetail(__u('Parámetro'), $mapFrom);
83 83
                     $configData->{$mapTo}($CONFIG[$mapFrom]);
Please login to merge, or discard this patch.
lib/SP/Services/Upgrade/UpgradeAuthToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         );
58 58
 
59 59
         try {
60
-            $this->transactionAware(function () {
60
+            $this->transactionAware(function() {
61 61
                 foreach ($this->authtokenService->getAllBasic() as $item) {
62 62
 
63 63
                     $itemData = clone $item;
Please login to merge, or discard this patch.
lib/SP/Http/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
107 107
      */
108 108
     public function resetParams()
109 109
     {
110
-        $this->params = array_filter($this->params, function ($key) {
110
+        $this->params = array_filter($this->params, function($key) {
111 111
             return strpos($key, '_') === 0;
112 112
         }, ARRAY_FILTER_USE_KEY);
113 113
 
Please login to merge, or discard this patch.
lib/SP/Http/Request.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             preg_match_all('/(?:for=([\w.:]+))|(?:for="\[([\w.:]+)\]")/i',
169 169
                 $forwarded, $matches)
170 170
         ) {
171
-            return array_filter(array_merge($matches[1], $matches[2]), function ($value) {
171
+            return array_filter(array_merge($matches[1], $matches[2]), function($value) {
172 172
                 return !empty($value);
173 173
             });
174 174
         }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
                 return $mapper($requestValue);
283 283
             }
284 284
 
285
-            return array_map(function ($value) {
285
+            return array_map(function($value) {
286 286
                 return is_numeric($value) ? Filter::getInt($value) : Filter::getString($value);
287 287
             }, $requestValue);
288 288
         }
Please login to merge, or discard this patch.
lib/SP/Config/ConfigUtil.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function filesExtsAdapter($filesAllowedExts)
45 45
     {
46
-        return array_map(function ($value) {
46
+        return array_map(function($value) {
47 47
             if (preg_match('/[^a-z0-9_-]+/i', $value)) {
48 48
                 return null;
49 49
             }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function mailAddressesAdapter($mailAddresses)
63 63
     {
64
-        return array_filter(explode(',', $mailAddresses), function ($value) {
64
+        return array_filter(explode(',', $mailAddresses), function($value) {
65 65
             return filter_var($value, FILTER_VALIDATE_EMAIL);
66 66
         });
67 67
     }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
      */
76 76
     public static function eventsAdapter(array $events)
77 77
     {
78
-        return array_filter($events, function ($value) {
78
+        return array_filter($events, function($value) {
79 79
             return preg_match('/^[a-z][a-z\.]+$/i', $value);
80 80
         });
81 81
     }
Please login to merge, or discard this patch.
lib/SP/Storage/Database/DatabaseUtil.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
     public static function checkDatabaseExist(DBStorageInterface $DBStorage, $dbName)
129 129
     {
130 130
         try {
131
-            $tables = implode(',', array_map(function ($value) {
131
+            $tables = implode(',', array_map(function($value) {
132 132
                 return '\'' . $value . '\'';
133 133
             }, self::$tables));
134 134
 
Please login to merge, or discard this patch.
lib/SP/Providers/Mail/MailProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
             if ($this->debug) {
76 76
                 $this->mailer->SMTPDebug = 2;
77
-                $this->mailer->Debugoutput = function ($str, $level) {
77
+                $this->mailer->Debugoutput = function($str, $level) {
78 78
                     logger($str, strtoupper($level));
79 79
                 };
80 80
             }
Please login to merge, or discard this patch.
lib/SP/Services/Account/AccountAclService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
         $userToUserGroupService = $this->dic->get(UserToUserGroupService::class);
269 269
 
270 270
         // Groups in whinch the user is listed in
271
-        $userGroups = array_map(function ($value) {
271
+        $userGroups = array_map(function($value) {
272 272
             return (int)$value->userGroupId;
273 273
         }, $userToUserGroupService->getGroupsForUser($this->userData->getId()));
274 274
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      */
302 302
     private function getUserInSecondaryUsers($userId)
303 303
     {
304
-        return array_values(array_filter($this->accountAclDto->getUsersId(), function ($value) use ($userId) {
304
+        return array_values(array_filter($this->accountAclDto->getUsersId(), function($value) use ($userId) {
305 305
             return (int)$value->id === $userId;
306 306
         }));
307 307
     }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 
335 335
         // Comprobar si el grupo del usuario está vinculado desde los grupos secundarios de la cuenta
336 336
         return array_filter($this->accountAclDto->getUserGroupsId(),
337
-            function ($value) use ($userGroupId, $isAccountFullGroupAccess, $userGroups) {
337
+            function($value) use ($userGroupId, $isAccountFullGroupAccess, $userGroups) {
338 338
                 return (int)$value->id === $userGroupId
339 339
                     // o... permitir los grupos que no sean el principal del usuario?
340 340
                     || ($isAccountFullGroupAccess
Please login to merge, or discard this patch.