@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\UserConfigurationDictionaryObjectTypesType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\UserConfigurationDictionaryObjectTypesType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\UserConfigurationPropertyType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\UserConfigurationPropertyType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Enumeration\ViewFilterType. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Enumeration\ViewFilterType. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API\Enumeration; |
7 | 7 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: gareth |
|
5 | - * Date: 27-8-15 |
|
6 | - * Time: 10:27 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: gareth |
|
5 | + * Date: 27-8-15 |
|
6 | + * Time: 10:27 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace jamesiarmes\PEWS\API; |
10 | 10 |
@@ -12,7 +12,7 @@ |
||
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 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Contains \jamesiarmes\PEWS\API\Type. |
|
4 | - */ |
|
3 | + * Contains \jamesiarmes\PEWS\API\Type. |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace jamesiarmes\PEWS\API; |
7 | 7 |
@@ -122,7 +122,7 @@ discard block |
||
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 |
||
162 | 162 | return ''; |
163 | 163 | } |
164 | 164 | |
165 | - return (string)$this->_; |
|
165 | + return (string) $this->_; |
|
166 | 166 | } |
167 | 167 | } |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: gareth |
|
5 | - * Date: 20-7-15 |
|
6 | - * Time: 16:27 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: gareth |
|
5 | + * Date: 20-7-15 |
|
6 | + * Time: 16:27 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace jamesiarmes\PEWS; |
10 | 10 |
@@ -70,36 +70,36 @@ |
||
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 | ] |
@@ -20,14 +20,14 @@ |
||
20 | 20 | |
21 | 21 | private $shutdownRegistered = false; |
22 | 22 | |
23 | - private static $instances = [ ]; |
|
23 | + private static $instances = []; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @var Client |
27 | 27 | */ |
28 | 28 | private $client; |
29 | 29 | |
30 | - public static function getInstance($options = [ ]) |
|
30 | + public static function getInstance($options = []) |
|
31 | 31 | { |
32 | 32 | foreach (self::$instances as $instance) { |
33 | 33 | if ($instance['options'] == $options) { |
@@ -196,7 +196,7 @@ |
||
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 | ) |
@@ -89,10 +89,10 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Get a list of calendar items between two dates/times |
91 | 91 | * |
92 | - * @param string|DateTime $start |
|
93 | - * @param string|DateTime $end |
|
92 | + * @param string $start |
|
93 | + * @param string $end |
|
94 | 94 | * @param array $options |
95 | - * @return CalendarItemType[]|Type\FindItemParentType |
|
95 | + * @return Type |
|
96 | 96 | */ |
97 | 97 | public function getCalendarItems($start = '12:00 AM', $end = '11:59 PM', $options = array()) |
98 | 98 | { |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | /** |
132 | 132 | * @param $id |
133 | 133 | * @param $changeKey |
134 | - * @return Type\CalendarItemType |
|
134 | + * @return Type |
|
135 | 135 | */ |
136 | 136 | public function getCalendarItem($id, $changeKey) |
137 | 137 | { |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | * |
200 | 200 | * @param null $syncState |
201 | 201 | * @param array $options |
202 | - * @return mixed |
|
202 | + * @return Type |
|
203 | 203 | */ |
204 | 204 | public function listChanges($syncState = null, $options = array()) |
205 | 205 | { |