Completed
Branch master (09022f)
by Gareth
05:56 queued 03:06
created
src/API/NTLMSoapClient.php 3 patches
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,10 +90,8 @@
 block discarded – undo
90 90
     }
91 91
 
92 92
     /**
93
-     * @param mixed $location
94
-     * @param string $user
95
-     * @param string $password
96
-     * @param $wsdl
93
+     * @param string $location
94
+     * @param string $wsdl
97 95
      * @param array $options
98 96
      */
99 97
     public function __construct($location, $auth, $wsdl, $options = array())
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use jamesiarmes\PEWS\API\Type\ExchangeImpersonation;
6 6
 use SoapClient;
7
-use GuzzleHttp;
8 7
 use SoapHeader;
9 8
 use jamesiarmes\PEWS\HttpPlayback\HttpPlayback;
10 9
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
             $args[0] = $args[0]->toXmlObject();
107 107
         }
108 108
 
109
-        $headers = array (
109
+        $headers = array(
110 110
             $this->ewsHeaders['version'],
111 111
             $this->ewsHeaders['impersonation'],
112 112
         );
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
             $headers[] = $this->ewsHeaders['timezone'];
116 116
         }
117 117
 
118
-        $headers = array_filter($headers, function ($header) {
118
+        $headers = array_filter($headers, function($header) {
119 119
             if (!($header instanceof SoapHeader)) {
120 120
                 return false;
121 121
             }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         if (!empty($options['version'])) {
151 151
             $this->ewsHeaders['version'] = new SoapHeader(
152 152
                 'http://schemas.microsoft.com/exchange/services/2006/types',
153
-                'RequestServerVersion Version="' . $options['version'] . '"'
153
+                'RequestServerVersion Version="'.$options['version'].'"'
154 154
             );
155 155
         }
156 156
 
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function __getLastRequestHeaders()
233 233
     {
234
-        return implode('n', $this->__last_request_headers) . "\n";
234
+        return implode('n', $this->__last_request_headers)."\n";
235 235
     }
236 236
 
237 237
     /**
Please login to merge, or discard this patch.
src/API/Enumeration/ResponseCodeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2319,7 +2319,7 @@
 block discarded – undo
2319 2319
      *
2320 2320
      * @var string
2321 2321
      */
2322
-    const INVALID_RETENTION_TAG_TYPE_MISMATCH  = 'ErrorInvalidRetentionTagTypeMismatch';
2322
+    const INVALID_RETENTION_TAG_TYPE_MISMATCH = 'ErrorInvalidRetentionTagTypeMismatch';
2323 2323
 
2324 2324
     /**
2325 2325
      * This error occurs if the routing type that is passed for an
Please login to merge, or discard this patch.
src/API/Type.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
     public static function arrayIsAssoc($array)
124 124
     {
125
-        return (bool)count(array_filter(array_keys($array), 'is_string'));
125
+        return (bool) count(array_filter(array_keys($array), 'is_string'));
126 126
     }
127 127
 
128 128
     /**
@@ -162,6 +162,6 @@  discard block
 block discarded – undo
162 162
             return '';
163 163
         }
164 164
 
165
-        return (string)$this->_;
165
+        return (string) $this->_;
166 166
     }
167 167
 }
Please login to merge, or discard this patch.
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/Mail/MailAPI.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
 
197 197
     public function getAttachment(Type\AttachmentIdType $attachmentId)
198 198
     {
199
-        $request = array (
199
+        $request = array(
200 200
             'AttachmentIds' => array(
201 201
                 $attachmentId->toXmlObject()
202 202
             )
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @param Type\FolderIdType
76 76
      * @param array $options
77
-     * @return Type\MessageType[]
77
+     * @return Type
78 78
      */
79 79
     public function getMailItems($folderId = null, $options = array())
80 80
     {
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     /**
106 106
      * @param Type\FolderIdType $folderId
107 107
      * @param array $options
108
-     * @return Type\MessageType[]
108
+     * @return Type
109 109
      */
110 110
     public function getUnreadMailItems($folderId = null, $options = array())
111 111
     {
Please login to merge, or discard this patch.
src/Calendar/CalendarAPI.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * Get a list of calendar items between two dates/times
102 102
      *
103
-     * @param string|DateTime $start
104
-     * @param string|DateTime $end
103
+     * @param string $start
104
+     * @param string $end
105 105
      * @param array $options
106
-     * @return CalendarItemType[]|Type\FindItemParentType
106
+     * @return Type
107 107
      */
108 108
     public function getCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array())
109 109
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * @param $id
144 144
      * @param $changeKey
145
-     * @return Type\CalendarItemType
145
+     * @return Type
146 146
      */
147 147
     public function getCalendarItem($id, $changeKey)
148 148
     {
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      *
211 211
      * @param null $syncState
212 212
      * @param array $options
213
-     * @return API\Message\SyncFolderItemsResponseMessageType
213
+     * @return Type
214 214
      */
215 215
     public function listChanges($syncState = null, $options = array())
216 216
     {
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 jamesiarmes\PEWS\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/MagicMethodsTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 trait MagicMethodsTrait
14 14
 {
15
-    protected $_typeMap = [ ];
15
+    protected $_typeMap = [];
16 16
 
17 17
     public function __call($name, $arguments)
18 18
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         if (!$this->exists($name)) {
63
-            throw new \Exception('Property ' . $name . ' does not exist');
63
+            throw new \Exception('Property '.$name.' does not exist');
64 64
         }
65 65
 
66 66
         return $this->$name;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         }
74 74
 
75 75
         if (!$this->exists($name)) {
76
-            throw new \Exception('Property ' . $name . ' does not exist');
76
+            throw new \Exception('Property '.$name.' does not exist');
77 77
         }
78 78
 
79 79
         if (isset($this->_typeMap[$name])) {
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         }
93 93
 
94 94
         if (!$this->exists($name)) {
95
-            throw new \Exception('Property ' . $name . ' does not exist');
95
+            throw new \Exception('Property '.$name.' does not exist');
96 96
         }
97 97
 
98 98
         if (isset($this->_typeMap[$name])) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
 
126 126
         if (!$this->exists($name)) {
127
-            throw new \Exception('Property ' . $name . ' does not exist');
127
+            throw new \Exception('Property '.$name.' does not exist');
128 128
         }
129 129
 
130 130
         return ((bool) $this->$name);
Please login to merge, or discard this patch.
src/API/ExchangeWebServicesAuth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
         return array(
12 12
             'curl' => array(
13 13
                 CURLOPT_HTTPAUTH => CURLAUTH_BASIC | CURLAUTH_NTLM,
14
-                CURLOPT_USERPWD => $username . ':' . $password
14
+                CURLOPT_USERPWD => $username.':'.$password
15 15
             )
16 16
         );
17 17
     }
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         return array(
22 22
             'headers' => array(
23
-                'Authorization' => 'Bearer ' . $token
23
+                'Authorization' => 'Bearer '.$token
24 24
             )
25 25
         );
26 26
     }
Please login to merge, or discard this patch.