Passed
Push — master ( 98502e...866c3b )
by y
01:37
created
src/Task/Like.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         'user' => User::class
17 17
     ];
18 18
 
19
-    protected function _setData (array $data): void {
19
+    protected function _setData(array $data): void {
20 20
         unset($data['gid']); // useless, likes aren't entities.
21 21
         parent::_setData($data);
22 22
     }
Please login to merge, or discard this patch.
src/Task/Attachment.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         'parent' => Task::class
33 33
     ];
34 34
 
35
-    final public function __toString (): string {
35
+    final public function __toString(): string {
36 36
         return "attachments/{$this->getGid()}";
37 37
     }
38 38
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param string $file
45 45
      * @return $this
46 46
      */
47
-    public function upload (string $file) {
47
+    public function upload(string $file) {
48 48
         // api returns compact version. reload.
49 49
         /** @var array $remote */
50 50
         $remote = $this->api->upload("{$this->getParent()}/attachments", $file);
Please login to merge, or discard this patch.
src/User/TaskList.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
         'workspace' => Workspace::class
31 31
     ];
32 32
 
33
-    final public function __toString (): string {
33
+    final public function __toString(): string {
34 34
         return "user_task_lists/{$this->getGid()}";
35 35
     }
36 36
 
37 37
     /**
38 38
      * @return Task[]
39 39
      */
40
-    public function getIncompleteTasks () {
40
+    public function getIncompleteTasks() {
41 41
         return $this->getTasks(['completed_since' => 'now']);
42 42
     }
43 43
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      *
47 47
      * @return ArrayIterator|Task[]
48 48
      */
49
-    public function getIterator () {
49
+    public function getIterator() {
50 50
         return new ArrayIterator($this->getTasks());
51 51
     }
52 52
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param array $filter
59 59
      * @return Task[]
60 60
      */
61
-    public function getTasks (array $filter = []) {
61
+    public function getTasks(array $filter = []) {
62 62
         return $this->loadAll(Task::class, "{$this}/tasks", $filter);
63 63
     }
64 64
 }
65 65
\ No newline at end of file
Please login to merge, or discard this patch.
src/CustomField.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
         'enum_options' => [EnumOption::class],
41 41
     ];
42 42
 
43
-    final public function __toString (): string {
43
+    final public function __toString(): string {
44 44
         return "custom_fields/{$this->getGid()}";
45 45
     }
46 46
 
47
-    final protected function _getDir (): string {
47
+    final protected function _getDir(): string {
48 48
         return 'custom_fields';
49 49
     }
50 50
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $name
57 57
      * @return EnumOption
58 58
      */
59
-    public function addEnumOption (string $name) {
59
+    public function addEnumOption(string $name) {
60 60
         /** @var EnumOption $option */
61 61
         $option = $this->factory(EnumOption::class);
62 62
         $option->setName($name);
@@ -72,35 +72,35 @@  discard block
 block discarded – undo
72 72
     /**
73 73
      * @return bool
74 74
      */
75
-    public function hasNotificationsEnabled (): bool {
75
+    public function hasNotificationsEnabled(): bool {
76 76
         return $this->_is('has_notifications_enabled');
77 77
     }
78 78
 
79 79
     /**
80 80
      * @return bool
81 81
      */
82
-    public function isEnum (): bool {
82
+    public function isEnum(): bool {
83 83
         return $this->getResourceSubtype() === self::TYPE_ENUM;
84 84
     }
85 85
 
86 86
     /**
87 87
      * @return bool
88 88
      */
89
-    public function isGlobalToWorkspace (): bool {
89
+    public function isGlobalToWorkspace(): bool {
90 90
         return $this->_is('is_global_to_workspace');
91 91
     }
92 92
 
93 93
     /**
94 94
      * @return bool
95 95
      */
96
-    final public function isNumber (): bool {
96
+    final public function isNumber(): bool {
97 97
         return $this->getResourceSubtype() === self::TYPE_NUMBER;
98 98
     }
99 99
 
100 100
     /**
101 101
      * @return bool
102 102
      */
103
-    final public function isText (): bool {
103
+    final public function isText(): bool {
104 104
         return $this->getResourceSubtype() === self::TYPE_TEXT;
105 105
     }
106 106
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      * @param bool $flag
109 109
      * @return $this
110 110
      */
111
-    public function setGlobalToWorkspace (bool $flag) {
111
+    public function setGlobalToWorkspace(bool $flag) {
112 112
         return $this->_set('is_global_to_workspace', $flag);
113 113
     }
114 114
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      * @param bool $flag
117 117
      * @return $this
118 118
      */
119
-    public function setNotificationsEnabled (bool $flag) {
119
+    public function setNotificationsEnabled(bool $flag) {
120 120
         return $this->_set('has_notifications_enabled', $flag);
121 121
     }
122 122
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param callable $cmp `fn( EnumOption $a, EnumOption $b ): int`
125 125
      * @return $this
126 126
      */
127
-    public function sortEnumOptions (callable $cmp) {
127
+    public function sortEnumOptions(callable $cmp) {
128 128
         if ($options = $this->getEnumOptions()) {
129 129
             $prev = $options[0]; // first option on remote
130 130
             usort($options, $cmp);
Please login to merge, or discard this patch.
src/Portfolio.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,11 +39,11 @@  discard block
 block discarded – undo
39 39
         'workspace' => Workspace::class
40 40
     ];
41 41
 
42
-    final public function __toString (): string {
42
+    final public function __toString(): string {
43 43
         return "portfolios/{$this->getGid()}";
44 44
     }
45 45
 
46
-    final protected function _getDir (): string {
46
+    final protected function _getDir(): string {
47 47
         return 'portfolios';
48 48
     }
49 49
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param Project $item
53 53
      * @return $this
54 54
      */
55
-    public function addItem (Project $item) {
55
+    public function addItem(Project $item) {
56 56
         $this->api->post("{$this}/addItem", ['item' => $item->getGid()]);
57 57
         return $this;
58 58
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @param User $user
62 62
      * @return $this
63 63
      */
64
-    public function addMember (User $user) {
64
+    public function addMember(User $user) {
65 65
         return $this->addMembers([$user]);
66 66
     }
67 67
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param User[] $users
70 70
      * @return $this
71 71
      */
72
-    public function addMembers (array $users) {
72
+    public function addMembers(array $users) {
73 73
         return $this->_addWithPost("{$this}/addMembers", [
74 74
             'members' => array_column($users, 'gid')
75 75
         ], 'members', $users);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @depends after-create
80 80
      * @return Project[]
81 81
      */
82
-    public function getItems () {
82
+    public function getItems() {
83 83
         return $this->loadAll(Project::class, "{$this}/items");
84 84
     }
85 85
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @param Project $item
89 89
      * @return $this
90 90
      */
91
-    public function removeItem (Project $item) {
91
+    public function removeItem(Project $item) {
92 92
         $this->api->post("{$this}/removeItem", ['item' => $item->getGid()]);
93 93
         return $this;
94 94
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param User $user
98 98
      * @return $this
99 99
      */
100
-    public function removeMember (User $user) {
100
+    public function removeMember(User $user) {
101 101
         return $this->removeMembers([$user]);
102 102
     }
103 103
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * @param User[] $users
106 106
      * @return $this
107 107
      */
108
-    public function removeMembers (array $users) {
108
+    public function removeMembers(array $users) {
109 109
         return $this->_removeWithPost("{$this}/removeMembers", [
110 110
             'members' => array_column($users, 'gid')
111 111
         ], 'members', $users);
Please login to merge, or discard this patch.
src/Team.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         'organization' => Workspace::class
26 26
     ];
27 27
 
28
-    final public function __toString (): string {
28
+    final public function __toString(): string {
29 29
         return "teams/{$this->getGid()}";
30 30
     }
31 31
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param User $user
34 34
      * @return $this
35 35
      */
36
-    public function addUser (User $user) {
36
+    public function addUser(User $user) {
37 37
         $this->api->post("{$this}/addUser", ['user' => $user->getGid()]);
38 38
         return $this;
39 39
     }
@@ -46,11 +46,11 @@  discard block
 block discarded – undo
46 46
      * @param array $filter
47 47
      * @return Project[]
48 48
      */
49
-    public function getProjects (array $filter = ['archived' => false]) {
49
+    public function getProjects(array $filter = ['archived' => false]) {
50 50
         return $this->loadAll(Project::class, "{$this}/projects", $filter);
51 51
     }
52 52
 
53
-    public function getUrl (): string {
53
+    public function getUrl(): string {
54 54
         return "https://app.asana.com/0/{$this->getGid()}/overview";
55 55
     }
56 56
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @return User[]
63 63
      */
64
-    public function getUsers () {
64
+    public function getUsers() {
65 65
         return $this->loadAll(User::class, "{$this}/users");
66 66
     }
67 67
 
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param User $user
70 70
      * @return $this
71 71
      */
72
-    public function removeUser (User $user) {
72
+    public function removeUser(User $user) {
73 73
         $this->api->post("{$this}/removeUser", ['user' => $user->getGid()]);
74 74
         return $this;
75 75
     }
Please login to merge, or discard this patch.
src/Project/Section.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
         'project' => Project::class
29 29
     ];
30 30
 
31
-    final public function __toString (): string {
31
+    final public function __toString(): string {
32 32
         return "sections/{$this->getGid()}";
33 33
     }
34 34
 
35
-    final protected function _getDir (): string {
35
+    final protected function _getDir(): string {
36 36
         return "{$this->getProject()}/sections";
37 37
     }
38 38
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      *
44 44
      * @return Task[]
45 45
      */
46
-    public function getTasks () {
46
+    public function getTasks() {
47 47
         return $this->loadAll(Task::class, 'tasks', ['section' => $this->getGid()]);
48 48
     }
49 49
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @depends after-create
54 54
      * @return Task
55 55
      */
56
-    public function newTask () {
56
+    public function newTask() {
57 57
         /** @var Task $task */
58 58
         $task = $this->factory(Task::class);
59 59
         return $task->addToProject($this->getProject(), $this);
Please login to merge, or discard this patch.
src/User.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         'workspaces' => [Workspace::class]
29 29
     ];
30 30
 
31
-    final public function __toString (): string {
31
+    final public function __toString(): string {
32 32
         return "users/{$this->getGid()}";
33 33
     }
34 34
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param Workspace $workspace
37 37
      * @return $this
38 38
      */
39
-    public function addToWorkspace (Workspace $workspace) {
39
+    public function addToWorkspace(Workspace $workspace) {
40 40
         return $this->_addWithPost("{$workspace}/addUser", [
41 41
             'user' => $this->getGid()
42 42
         ], 'workspaces', [$workspace]);
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @return string[]
47 47
      */
48
-    public function getCacheKeys () {
48
+    public function getCacheKeys() {
49 49
         $keys = parent::getCacheKeys();
50 50
 
51 51
         // only include email as a key if it's loaded
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param Workspace $workspace
61 61
      * @return Portfolio[]
62 62
      */
63
-    public function getFavoritePortfolios (Workspace $workspace) {
63
+    public function getFavoritePortfolios(Workspace $workspace) {
64 64
         return $this->getFavorites(Portfolio::class, Portfolio::TYPE, $workspace);
65 65
     }
66 66
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param Workspace $workspace
69 69
      * @return Project[]
70 70
      */
71
-    public function getFavoriteProjects (Workspace $workspace) {
71
+    public function getFavoriteProjects(Workspace $workspace) {
72 72
         return $this->getFavorites(Project::class, Project::TYPE, $workspace);
73 73
     }
74 74
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param Workspace $workspace
77 77
      * @return Tag[]
78 78
      */
79
-    public function getFavoriteTags (Workspace $workspace) {
79
+    public function getFavoriteTags(Workspace $workspace) {
80 80
         return $this->getFavorites(Tag::class, Tag::TYPE, $workspace);
81 81
     }
82 82
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param Workspace $workspace
85 85
      * @return Team[]
86 86
      */
87
-    public function getFavoriteTeams (Workspace $workspace) {
87
+    public function getFavoriteTeams(Workspace $workspace) {
88 88
         return $this->getFavorites(Team::class, Team::TYPE, $workspace);
89 89
     }
90 90
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * @param Workspace $workspace
93 93
      * @return User[]
94 94
      */
95
-    public function getFavoriteUsers (Workspace $workspace) {
95
+    public function getFavoriteUsers(Workspace $workspace) {
96 96
         return $this->getFavorites(self::class, self::TYPE, $workspace);
97 97
     }
98 98
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param Workspace $workspace
103 103
      * @return array
104 104
      */
105
-    protected function getFavorites (string $class, string $resourceType, Workspace $workspace) {
105
+    protected function getFavorites(string $class, string $resourceType, Workspace $workspace) {
106 106
         return $this->loadAll($class, "{$this}/favorites", [
107 107
             'resource_type' => $resourceType,
108 108
             'workspace' => $workspace->getGid()
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param Workspace $workspace
118 118
      * @return Task[]
119 119
      */
120
-    public function getIncompleteTasks (Workspace $workspace) {
120
+    public function getIncompleteTasks(Workspace $workspace) {
121 121
         return $this->getTasks($workspace, ['completed_since' => 'now']);
122 122
     }
123 123
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * @param Workspace $workspace
126 126
      * @return Portfolio[]
127 127
      */
128
-    public function getPortfolios (Workspace $workspace) {
128
+    public function getPortfolios(Workspace $workspace) {
129 129
         return $this->loadAll(Portfolio::class, "portfolios", [
130 130
             'workspace' => $workspace->getGid(),
131 131
             'owner' => $this->getGid()
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      * @param Workspace $workspace
137 137
      * @return TaskList
138 138
      */
139
-    public function getTaskList (Workspace $workspace) {
139
+    public function getTaskList(Workspace $workspace) {
140 140
         return $this->load(TaskList::class, "{$this}/user_task_list", [
141 141
             'workspace' => $workspace->getGid()
142 142
         ]);
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param string[] $filter
152 152
      * @return Task[]
153 153
      */
154
-    public function getTasks (Workspace $workspace, array $filter = []) {
154
+    public function getTasks(Workspace $workspace, array $filter = []) {
155 155
         $filter['assignee'] = $this->getGid();
156 156
         $filter['workspace'] = $workspace->getGid();
157 157
         return $this->loadAll(Task::class, 'tasks', $filter);
@@ -165,13 +165,13 @@  discard block
 block discarded – undo
165 165
      * @param Workspace $organization
166 166
      * @return Team[]
167 167
      */
168
-    public function getTeams (Workspace $organization) {
168
+    public function getTeams(Workspace $organization) {
169 169
         return $this->loadAll(Team::class, "{$this}/teams", [
170 170
             'organization' => $organization->getGid()
171 171
         ]);
172 172
     }
173 173
 
174
-    public function getUrl (): string {
174
+    public function getUrl(): string {
175 175
         return "https://app.asana.com/0/{$this->getGid()}/list";
176 176
     }
177 177
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @param Workspace $workspace
180 180
      * @return $this
181 181
      */
182
-    public function removeFromWorkspace (Workspace $workspace) {
182
+    public function removeFromWorkspace(Workspace $workspace) {
183 183
         return $this->_removeWithPost("{$workspace}/removeUser", [
184 184
             'user' => $this->getGid()
185 185
         ], 'workspaces', [$workspace]);
Please login to merge, or discard this patch.
src/Project.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
         'workspace' => Workspace::class
68 68
     ];
69 69
 
70
-    final public function __toString (): string {
70
+    final public function __toString(): string {
71 71
         return "projects/{$this->getGid()}";
72 72
     }
73 73
 
74
-    final protected function _getDir (): string {
74
+    final protected function _getDir(): string {
75 75
         return 'projects';
76 76
     }
77 77
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param User $user
81 81
      * @return $this
82 82
      */
83
-    public function addMember (User $user) {
83
+    public function addMember(User $user) {
84 84
         return $this->addMembers([$user]);
85 85
     }
86 86
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param User[] $users
90 90
      * @return $this
91 91
      */
92
-    public function addMembers (array $users) {
92
+    public function addMembers(array $users) {
93 93
         return $this->_addWithPost("{$this}/addMembers", [
94 94
             'members' => array_column($users, 'gid')
95 95
         ], 'members', $users);
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * @param string $target
101 101
      * @return ProjectWebhook
102 102
      */
103
-    public function addWebhook (string $target) {
103
+    public function addWebhook(string $target) {
104 104
         /** @var ProjectWebhook $webhook */
105 105
         $webhook = $this->factory(ProjectWebhook::class);
106 106
         return $webhook->create($this, $target);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      * @param array $schedule
126 126
      * @return Job
127 127
      */
128
-    public function duplicate (string $name, array $include, Team $team = null, array $schedule = []) {
128
+    public function duplicate(string $name, array $include, Team $team = null, array $schedule = []) {
129 129
         $data = ['name' => $name];
130 130
         if ($team) {
131 131
             $data['team'] = $team->getGid();
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * @param null|string $token
148 148
      * @return ProjectEvent[]|TaskEvent[]|StoryEvent[]
149 149
      */
150
-    public function getEvents (&$token) {
150
+    public function getEvents(&$token) {
151 151
         return $this->api->sync($this, $token);
152 152
     }
153 153
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      * @depends after-create
156 156
      * @return Section[]
157 157
      */
158
-    public function getSections () {
158
+    public function getSections() {
159 159
         return $this->loadAll(Section::class, "{$this}/sections");
160 160
     }
161 161
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * @depends after-create
164 164
      * @return Status[]
165 165
      */
166
-    public function getStatuses () {
166
+    public function getStatuses() {
167 167
         return $this->loadAll(Status::class, "{$this}/project_statuses");
168 168
     }
169 169
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
      * @param array $filter
177 177
      * @return Task[]
178 178
      */
179
-    public function getTasks (array $filter = []) {
179
+    public function getTasks(array $filter = []) {
180 180
         $filter['project'] = $this->getGid();
181 181
         return $this->loadAll(Task::class, "tasks", $filter);
182 182
     }
@@ -185,25 +185,25 @@  discard block
 block discarded – undo
185 185
      * @depends after-create
186 186
      * @return string
187 187
      */
188
-    public function getUrl (): string {
188
+    public function getUrl(): string {
189 189
         return "https://app.asana.com/0/{$this->getGid()}";
190 190
     }
191 191
 
192 192
     /**
193 193
      * @return ProjectWebhook[]
194 194
      */
195
-    public function getWebhooks () {
195
+    public function getWebhooks() {
196 196
         return $this->loadAll(ProjectWebhook::class, 'webhooks', [
197 197
             'workspace' => $this->getWorkspace()->getGid(),
198 198
             'resource' => $this->getGid()
199 199
         ]);
200 200
     }
201 201
 
202
-    public function isBoard (): bool {
202
+    public function isBoard(): bool {
203 203
         return $this->getLayout() === self::LAYOUT_BOARD;
204 204
     }
205 205
 
206
-    public function isList (): bool {
206
+    public function isList(): bool {
207 207
         return $this->getLayout() === self::LAYOUT_LIST;
208 208
     }
209 209
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * @depends after-create
212 212
      * @return Section
213 213
      */
214
-    public function newSection () {
214
+    public function newSection() {
215 215
         return $this->factory(Section::class, ['project' => $this]);
216 216
     }
217 217
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @depends after-create
220 220
      * @return Status
221 221
      */
222
-    public function newStatus () {
222
+    public function newStatus() {
223 223
         return $this->factory(Status::class);
224 224
     }
225 225
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      * @depends after-create
230 230
      * @return Task
231 231
      */
232
-    public function newTask () {
232
+    public function newTask() {
233 233
         return $this->getSections()[0]->newTask();
234 234
     }
235 235
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
      * @param User $user
239 239
      * @return $this
240 240
      */
241
-    public function removeMember (User $user) {
241
+    public function removeMember(User $user) {
242 242
         return $this->removeMembers([$user]);
243 243
     }
244 244
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * @param User[] $users
248 248
      * @return $this
249 249
      */
250
-    public function removeMembers (array $users) {
250
+    public function removeMembers(array $users) {
251 251
         return $this->_removeWithPost("{$this}/removeMembers", [
252 252
             'members' => array_column($users, 'gid')
253 253
         ], 'members', $users);
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
      * @param null|Team $team
259 259
      * @return $this
260 260
      */
261
-    public function setTeam (?Team $team) {
261
+    public function setTeam(?Team $team) {
262 262
         if ($team and !$this->hasWorkspace()) {
263 263
             $this->setWorkspace($team->getOrganization());
264 264
         }
Please login to merge, or discard this patch.