Test Setup Failed
Branch master (e26bf9)
by Diego
04:02
created
Category
src/DiegoSouza/Zimbra/ZimbraApiClient.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
         $this->domain = $emailDomain;
30 30
         $this->logger = $logger;
31 31
 
32
-        $this->api->getClient()->on('before.request', function ($request) {
32
+        $this->api->getClient()->on('before.request', function($request) {
33 33
             $this->logger->debug("SOAP REQUEST: {$request}");
34 34
         });
35 35
 
36
-        $this->api->getClient()->on('after.request', function ($response) {
36
+        $this->api->getClient()->on('after.request', function($response) {
37 37
             $this->logger->debug("SOAP RESPONSE: {$response}");
38 38
         });
39 39
     }
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $dynamic = false;
44 44
         $attr = $this->createKeyPair();
45 45
 
46
-        return $this->api->createDistributionList("{$name}@{$this->domain}", $dynamic, [$attr]);
46
+        return $this->api->createDistributionList("{$name}@{$this->domain}", $dynamic, [ $attr ]);
47 47
     }
48 48
 
49 49
     public function deleteDistributionList($id)
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $dl = new DistributionListSelector(DistributionListBy::ID(), $id);
73 73
 
74
-        return $this->api->getDistributionList($dl, $limit, $offset, $sortAscending, [$attr]);
74
+        return $this->api->getDistributionList($dl, $limit, $offset, $sortAscending, [ $attr ]);
75 75
     }
76 76
 
77 77
     public function getDistributionListByName($name)
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
         $dl = new DistributionListSelector(DistributionListBy::NAME(), $name);
85 85
 
86
-        return $this->api->getDistributionList($dl, $limit, $offset, $sortAscending, [$attr]);
86
+        return $this->api->getDistributionList($dl, $limit, $offset, $sortAscending, [ $attr ]);
87 87
     }
88 88
 
89 89
     public function getDistributionListMembership($distListName)
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
     public function modifyCoS($accountId, $cosId)
107 107
     {
108 108
         $attr = $this->createKeyPair('zimbraCOSId', $cosId);
109
-        return $this->api->modifyAccount($accountId, [$attr]);
109
+        return $this->api->modifyAccount($accountId, [ $attr ]);
110 110
     }
111 111
 
112 112
     public function removeDistributionListMember($listId, $member)
113 113
     {
114
-        $dlms = [$member];
115
-        $accounts = [];
114
+        $dlms = [ $member ];
115
+        $accounts = [ ];
116 116
 
117 117
         return $this->api->removeDistributionListMember($listId, $dlms, $accounts);
118 118
     }
Please login to merge, or discard this patch.
src/DiegoSouza/Zimbra/ZimbraServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
         $this->app->singleton(
20 20
             ZimbraApiClient::class,
21
-            function () use ($host, $emailDomain, $user, $password, $logger) {
21
+            function() use ($host, $emailDomain, $user, $password, $logger) {
22 22
                 return new ZimbraApiClient($host, $emailDomain, $user, $password, $logger);
23 23
             }
24 24
         );
Please login to merge, or discard this patch.