Passed
Pull Request — devel-3.0 (#1021)
by
unknown
04:23
created
lib/SP/Util/FileUtil.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,11 @@
 block discarded – undo
60 60
         $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST);
61 61
 
62 62
         foreach ($it as $file) {
63
-            if ($file->isDir()) rmdir($file->getPathname());
64
-            else unlink($file->getPathname());
63
+            if ($file->isDir()) {
64
+                rmdir($file->getPathname());
65
+            } else {
66
+                unlink($file->getPathname());
67
+            }
65 68
         }
66 69
 
67 70
         return rmdir($dir);
Please login to merge, or discard this patch.
lib/SP/Services/Mail/MailService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
lib/SP/Services/CustomField/CustomFieldCryptService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         try {
124 124
             $this->request = $request;
125 125
 
126
-            $this->processUpdateMasterPassword(function (CustomFieldData $customFieldData) {
126
+            $this->processUpdateMasterPassword(function(CustomFieldData $customFieldData) {
127 127
                 return Crypt::decrypt(
128 128
                     $customFieldData->getData(),
129 129
                     $customFieldData->getKey(),
Please login to merge, or discard this patch.
lib/SP/Services/CustomField/CustomFieldDefService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function delete($id)
103 103
     {
104
-        $this->transactionAware(function () use ($id) {
104
+        $this->transactionAware(function() use ($id) {
105 105
             $this->dic->get(CustomFieldService::class)
106 106
                 ->deleteCustomFieldDefinitionData($id);
107 107
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function deleteByIdBatch(array $ids)
124 124
     {
125
-        $this->transactionAware(function () use ($ids) {
125
+        $this->transactionAware(function() use ($ids) {
126 126
             $this->dic->get(CustomFieldService::class)
127 127
                 ->deleteCustomFieldDefinitionDataBatch($ids);
128 128
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
      */
153 153
     public function update(CustomFieldDefinitionData $itemData)
154 154
     {
155
-        return $this->transactionAware(function () use ($itemData) {
155
+        return $this->transactionAware(function() use ($itemData) {
156 156
             $customFieldDefinitionData = $this->getById($itemData->getId());
157 157
 
158 158
             // Delete the data used by the items using the previous definition
Please login to merge, or discard this patch.
lib/SP/Services/UserGroup/UserGroupService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     public function create($itemData)
125 125
     {
126
-        return $this->transactionAware(function () use ($itemData) {
126
+        return $this->transactionAware(function() use ($itemData) {
127 127
             $id = $this->userGroupRepository->create($itemData);
128 128
 
129 129
             if (count($itemData->getUsers()) > 0) {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function update($itemData)
143 143
     {
144
-        $this->transactionAware(function () use ($itemData) {
144
+        $this->transactionAware(function() use ($itemData) {
145 145
             $this->userGroupRepository->update($itemData);
146 146
 
147 147
             $this->userToUserGroupService->update($itemData->getId(), $itemData->getUsers());
Please login to merge, or discard this patch.
lib/SP/Services/Crypt/TemporaryMasterPassService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
     {
194 194
         $mailMessage = $this->getMessageForEmail($key);
195 195
 
196
-        $emails = array_map(function ($value) {
196
+        $emails = array_map(function($value) {
197 197
             return $value->email;
198 198
         }, $this->dic->get(UserService::class)->getUserEmailForGroup($groupId));
199 199
 
Please login to merge, or discard this patch.
lib/SP/Services/Crypt/MasterPassService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function changeMasterPassword(UpdateMasterPassRequest $request)
88 88
     {
89
-        $this->transactionAware(function () use ($request) {
89
+        $this->transactionAware(function() use ($request) {
90 90
             $this->accountCryptService->updateMasterPassword($request);
91 91
 
92 92
             $this->accountCryptService->updateHistoryMasterPassword($request);
Please login to merge, or discard this patch.
lib/SP/Services/User/UserPassService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,6 +262,6 @@
 block discarded – undo
262 262
     {
263 263
         $this->configData = $this->config->getConfigData();
264 264
         $this->userRepository = $this->dic->get(UserRepository::class);
265
-        $this->configService = $this->dic->get(ConfigService::class);;
265
+        $this->configService = $this->dic->get(ConfigService::class); ;
266 266
     }
267 267
 }
268 268
\ No newline at end of file
Please login to merge, or discard this patch.
lib/SP/Services/Ldap/LdapCheckService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
             ];
81 81
         }
82 82
 
83
-        array_walk($data['results'], function ($value) use (&$data) {
83
+        array_walk($data['results'], function($value) use (&$data) {
84 84
             $data['count'] += count($value['items']);
85 85
         });
86 86
 
Please login to merge, or discard this patch.