Passed
Pull Request — master (#272)
by
unknown
06:50
created
src/API/ExchangeWebServices/MiddlewareFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 {
14 14
     public function getSoapCall()
15 15
     {
16
-        return function (MiddlewareRequest $request) {
16
+        return function(MiddlewareRequest $request) {
17 17
             $client = $this->getClient();
18 18
             $response = $client->__call($request->getName(), $request->getArguments());
19 19
             $response = MiddlewareResponse::newResponse($response);
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     public function getTypeToXMLObject()
26 26
     {
27
-        return function (MiddlewareRequest $request, callable $next) {
27
+        return function(MiddlewareRequest $request, callable $next) {
28 28
             if ($request->getRequest() instanceof Type) {
29 29
                 $request->setRequest($request->getRequest()->toXmlObject());
30 30
             }
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function getStripSyncScopeForExchange2007()
37 37
     {
38
-        return function (MiddlewareRequest $request, callable $next) {
38
+        return function(MiddlewareRequest $request, callable $next) {
39 39
             $requestObj = $request->getRequest();
40 40
 
41 41
             if ($request->getName() == "SyncFolderItems"
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function getProcessResponse()
53 53
     {
54
-        return function (MiddlewareRequest $request, callable $next) {
54
+        return function(MiddlewareRequest $request, callable $next) {
55 55
             $response = $next($request);
56 56
 
57 57
             $response->setResponse($this->processResponse($response->getResponse()));
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function getAddLastRequestToPagedResults()
64 64
     {
65
-        return function (MiddlewareRequest $request, callable $next) {
65
+        return function(MiddlewareRequest $request, callable $next) {
66 66
             $response = $next($request);
67 67
 
68 68
             $responseObject = $response->getResponse();
Please login to merge, or discard this patch.
src/API/NTLMSoapClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
             $headers[] = $this->ewsHeaders['timezone'];
111 111
         }
112 112
 
113
-        $headers = array_filter($headers, function ($header) {
113
+        $headers = array_filter($headers, function($header) {
114 114
             return $header instanceof SoapHeader;
115 115
         });
116 116
 
Please login to merge, or discard this patch.
src/Utilities/cloneValue.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     }
9 9
 
10 10
     if (is_array($value)) {
11
-        return array_map(function ($value) {
11
+        return array_map(function($value) {
12 12
             return cloneValue($value);
13 13
         }, $value);
14 14
     }
Please login to merge, or discard this patch.
src/API/ExchangeAutodiscover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@
 block discarded – undo
384 384
             $constant .= "_SP$minorVersion";
385 385
         }
386 386
 
387
-        return constant(ExchangeWebServices::class . "::$constant");
387
+        return constant(ExchangeWebServices::class."::$constant");
388 388
     }
389 389
 
390 390
     protected function parseVersionAfter2013($majorVersion, $minorVersion, $buildVersion)
Please login to merge, or discard this patch.
src/NotificationAPI.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public static function handlePullNotification($uri, callable $handle, array $options = array())
10 10
     {
11 11
         $server = new \SoapServer(
12
-            __DIR__ . '/../Resources/wsdl/notification-service.wsdl',
12
+            __DIR__.'/../Resources/wsdl/notification-service.wsdl',
13 13
             [
14 14
                 'uri' => $uri,
15 15
                 'classmap' => ClassMap::getClassMap(),
Please login to merge, or discard this patch.
src/Utilities/getFolderIds.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 {
9 9
     $folders = ensureIsArray($folderIds);
10 10
 
11
-    $folderIds = array_map(function (BaseFolderIdType $folderId) {
11
+    $folderIds = array_map(function(BaseFolderIdType $folderId) {
12 12
         return $folderId->toArray(true);
13 13
     }, $folders);
14 14
 
15
-    return array_reduce($folderIds, function ($folderIds, $folderId) {
15
+    return array_reduce($folderIds, function($folderIds, $folderId) {
16 16
         $folderIds[key($folderId)][] = current($folderId);
17 17
         return $folderIds;
18 18
     }, []);
Please login to merge, or discard this patch.
src/API.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     public function createFolders($names, BaseFolderIdType $parentFolder, $options = array(), $folderClass = null)
193 193
     {
194 194
         $names = Utilities\ensureIsArray($names);
195
-        $names = array_map(function ($name) use ($folderClass) {
195
+        $names = array_map(function($name) use ($folderClass) {
196 196
             return ['DisplayName' => $name, 'FolderClass' => $folderClass];
197 197
         }, $names);
198 198
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
     {
257 257
         $items = Utilities\ensureIsArray($items, true);
258 258
 
259
-        $items = array_map(function ($item) {
259
+        $items = array_map(function($item) {
260 260
             $item = Type\ItemIdType::buildFromArray($item);
261 261
 
262 262
             return $item->toArray();
Please login to merge, or discard this patch.
src/CalendarAPI.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
             ],
272 272
         ];
273 273
 
274
-        $users = array_map(function ($user) {
274
+        $users = array_map(function($user) {
275 275
             return [
276 276
                 'Email' => ['Address' => $user],
277 277
                 'AttendeeType' => 'Required',
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             throw new ExchangeException($responseMessage);
310 310
         }
311 311
 
312
-        $availabilities = array_map(function (FreeBusyResponseType $freeBusyResponseType) {
312
+        $availabilities = array_map(function(FreeBusyResponseType $freeBusyResponseType) {
313 313
             return str_split($freeBusyResponseType->getFreeBusyView()->getMergedFreeBusy());
314 314
         }, $availability->getFreeBusyResponseArray()->FreeBusyResponse);
315 315
 
Please login to merge, or discard this patch.
src/RestrictionFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     private static function formatExpression($preference, $expression)
21 21
     {
22 22
         if (count($expression) > 1 && is_array(current($expression))) {
23
-            return array_map(function ($subExpression) use ($preference) {
23
+            return array_map(function($subExpression) use ($preference) {
24 24
                 return self::formatExpression($preference, $subExpression)[0];
25 25
             }, $expression);
26 26
         }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             }
39 39
             $formattedRestrictionType[] = array(
40 40
                 'FieldURI' => array('FieldURI' => API\FieldURIManager::getFieldUriByName($key, $preference)),
41
-                'FieldURIOrConstant' => array('Constant' => array('Value' => (string)$value))
41
+                'FieldURIOrConstant' => array('Constant' => array('Value' => (string) $value))
42 42
             );
43 43
         }
44 44
 
Please login to merge, or discard this patch.