Passed
Push — master ( 097ab9...fbd180 )
by y
02:12
created
src/Color.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * @return string
37 37
      */
38
-    public static function random () {
38
+    public static function random() {
39 39
         try {
40 40
             $colors = (new ReflectionClass(self::class))->getConstants();
41 41
             return $colors[array_rand($colors)];
Please login to merge, or discard this patch.
src/Webhook/AbstractWebhook.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
     }
31 31
     use DeleteTrait;
32 32
 
33
-    final public function __toString (): string {
33
+    final public function __toString(): string {
34 34
         return "webhooks/{$this->getGid()}";
35 35
     }
36 36
 
37
-    final protected function _getDir (): string {
37
+    final protected function _getDir(): string {
38 38
         return 'webhooks';
39 39
     }
40 40
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param string $target
44 44
      * @return $this
45 45
      */
46
-    public function create ($resource, string $target) {
46
+    public function create($resource, string $target) {
47 47
         $this->_set('resource', $resource);
48 48
         $this->_set('target', $target);
49 49
         return $this->_create();
Please login to merge, or discard this patch.
src/Error.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
      */
21 21
     protected $curlInfo;
22 22
 
23
-    public function __construct (int $code, string $message, array $curlInfo) {
23
+    public function __construct(int $code, string $message, array $curlInfo) {
24 24
         parent::__construct($message, $code);
25 25
         $this->curlInfo = $curlInfo;
26 26
     }
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @return array
30 30
      */
31
-    public function getCurlInfo (): array {
31
+    public function getCurlInfo(): array {
32 32
         return $this->curlInfo;
33 33
     }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
src/Api/Laravel/Facade/Asana.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,21 +49,21 @@
 block discarded – undo
49 49
     /**
50 50
      * @return Api
51 51
      */
52
-    final public static function getApi () {
52
+    final public static function getApi() {
53 53
         return static::getFacadeRoot();
54 54
     }
55 55
 
56 56
     /**
57 57
      * @return string
58 58
      */
59
-    public static function getFacadeAccessor () {
59
+    public static function getFacadeAccessor() {
60 60
         return AsanaServiceProvider::NAME;
61 61
     }
62 62
 
63 63
     /**
64 64
      * @return Api
65 65
      */
66
-    public static function getFacadeRoot () {
66
+    public static function getFacadeRoot() {
67 67
         return parent::getFacadeRoot();
68 68
     }
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.
src/Tag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,18 +31,18 @@
 block discarded – undo
31 31
         'workspace' => Workspace::class
32 32
     ];
33 33
 
34
-    final public function __toString (): string {
34
+    final public function __toString(): string {
35 35
         return "tags/{$this->getGid()}";
36 36
     }
37 37
 
38
-    final protected function _getDir (): string {
38
+    final protected function _getDir(): string {
39 39
         return 'tags';
40 40
     }
41 41
 
42 42
     /**
43 43
      * @return Task[]
44 44
      */
45
-    public function getTasks () {
45
+    public function getTasks() {
46 46
         return $this->loadAll(Task::class, "{$this}/tasks");
47 47
     }
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
src/Api/Laravel/AsanaServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
 
15 15
     const NAME = 'asana';
16 16
 
17
-    public function boot () {
17
+    public function boot() {
18 18
         $this->mergeConfigFrom(App::configPath('asana.php'), self::NAME);
19 19
     }
20 20
 
21
-    public function register () {
21
+    public function register() {
22 22
         // cli: announce config file
23 23
         if (App::runningInConsole() and !Str::contains($this->app->version(), 'Lumen')) {
24 24
             $this->publishes([__DIR__ . '/config/asana.php' => App::configPath('asana.php')], 'config');
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/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.