Completed
Push — master ( 5141e1...277d2d )
by Gareth
05:27
created
src/Caster.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -70,36 +70,36 @@
 block discarded – undo
70 70
     {
71 71
         return [
72 72
             'DateTime' => [
73
-                'string' => function ($value) {
73
+                'string' => function($value) {
74 74
                     return new \DateTime($value);
75 75
                 }
76 76
             ],
77 77
             'dateTime' => [
78
-                'string' => function ($value) {
78
+                'string' => function($value) {
79 79
                     return new \DateTime($value);
80 80
                 }
81 81
             ],
82 82
             'date' => [
83
-                'string' => function ($value) {
83
+                'string' => function($value) {
84 84
                     return new \DateTime($value);
85 85
                 }
86 86
             ],
87 87
             'time' => [
88
-                'string' => function ($value) {
88
+                'string' => function($value) {
89 89
                     return new \DateTime($value);
90 90
                 }
91 91
             ],
92 92
             'ExchangeFormat' => [
93
-                'DateTime' => function ($value) {
93
+                'DateTime' => function($value) {
94 94
                     return $value->format('c');
95 95
                 },
96
-                'dateTime' => function ($value) {
96
+                'dateTime' => function($value) {
97 97
                     return $value->format('c');
98 98
                 },
99
-                'date' => function ($value) {
99
+                'date' => function($value) {
100 100
                     return $value->format('Y-m-d');
101 101
                 },
102
-                'time' => function ($value) {
102
+                'time' => function($value) {
103 103
                     return $value->format('H:i:s');
104 104
                 }
105 105
             ]
Please login to merge, or discard this patch.
src/API/MagicMethodsTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             }
116 116
         }
117 117
 
118
-        throw new \Exception('Property ' . $names[0] . ' does not exist');
118
+        throw new \Exception('Property '.$names[0].' does not exist');
119 119
     }
120 120
 
121 121
     /**
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         }
131 131
 
132 132
         if (!$this->exists($name)) {
133
-            throw new \Exception('Property ' . $name . ' does not exist');
133
+            throw new \Exception('Property '.$name.' does not exist');
134 134
         }
135 135
 
136 136
         return $name;
Please login to merge, or discard this patch.
bin/generateModels.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once(__DIR__ . "/../vendor/autoload.php");
3
+require_once(__DIR__."/../vendor/autoload.php");
4 4
 
5 5
 use Symfony\Component\Console\Application;
6 6
 use garethp\ews\Generator\ConvertToPHP;
7 7
 
8
-error_reporting(error_reporting() &~E_NOTICE);
8
+error_reporting(error_reporting() & ~E_NOTICE);
9 9
 
10 10
 $cli = new Application('Convert XSD to PHP classes Command Line Interface', "2.0");
11 11
 $cli->setCatchExceptions(true);
Please login to merge, or discard this patch.
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/Type.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
         }
124 124
 
125 125
         if (is_array($property)) {
126
-            return array_map(function ($property) {
126
+            return array_map(function($property) {
127 127
                 if ($property instanceof Type) {
128 128
                     return $property->toXmlObject();
129 129
                 }
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.