Passed
Push — master ( 984447...7073d8 )
by y
02:06
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/CustomField/EnumOption.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,23 +37,23 @@  discard block
 block discarded – undo
37 37
      * @param CustomField $customField
38 38
      * @param array $data
39 39
      */
40
-    public function __construct (CustomField $customField, array $data = []) {
40
+    public function __construct(CustomField $customField, array $data = []) {
41 41
         parent::__construct($customField, $data);
42 42
         $this->customField = $customField;
43 43
     }
44 44
 
45
-    final public function __toString (): string {
45
+    final public function __toString(): string {
46 46
         return "enum_options/{$this->getGid()}";
47 47
     }
48 48
 
49
-    final protected function _getDir (): string {
49
+    final protected function _getDir(): string {
50 50
         return "{$this->customField}/enum_options";
51 51
     }
52 52
 
53 53
     /**
54 54
      * @return CustomField
55 55
      */
56
-    public function getCustomField () {
56
+    public function getCustomField() {
57 57
         return $this->customField;
58 58
     }
59 59
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @param EnumOption $option
62 62
      * @return $this
63 63
      */
64
-    public function insertAfter (EnumOption $option) {
64
+    public function insertAfter(EnumOption $option) {
65 65
         assert($option->hasGid());
66 66
         if ($this->hasGid()) {
67 67
             $this->api->post("{$this->_getDir()}/insert", [
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param EnumOption $option
81 81
      * @return $this
82 82
      */
83
-    public function insertBefore (EnumOption $option) {
83
+    public function insertBefore(EnumOption $option) {
84 84
         assert($option->hasGid());
85 85
         if ($this->hasGid()) {
86 86
             $this->api->post("{$this->_getDir()}/insert", [
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/Base/AbstractEntity/WorkspaceTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param Workspace $workspace
18 18
      * @return $this
19 19
      */
20
-    public function setWorkspace (Workspace $workspace) {
20
+    public function setWorkspace(Workspace $workspace) {
21 21
         assert(!$this->hasGid());
22 22
         return $this->_set('workspace', $workspace);
23 23
     }
Please login to merge, or discard this patch.
src/Api/Cache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @param AbstractEntity $entity
34 34
      */
35
-    public function add (AbstractEntity $entity): void {
35
+    public function add(AbstractEntity $entity): void {
36 36
         if ($gid = $entity->getGid() and !$entity->isDiff()) {
37 37
             $this->entities[$gid] = $entity;
38 38
             foreach ($this->getKeys($entity) as $key) {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * @param Closure $factory `fn($caller): null|AbstractEntity`
53 53
      * @return null|mixed|AbstractEntity
54 54
      */
55
-    public function get (string $key, $caller, Closure $factory) {
55
+    public function get(string $key, $caller, Closure $factory) {
56 56
         if ($gid = $this->gids[$key] ?? null) {
57 57
             return $this->entities[$gid];
58 58
         }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      * @param AbstractEntity $entity
82 82
      * @return string[]
83 83
      */
84
-    protected function getKeys (AbstractEntity $entity) {
84
+    protected function getKeys(AbstractEntity $entity) {
85 85
         if (!$gid = $entity->getGid() or $entity->isDiff()) {
86 86
             return [];
87 87
         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      *
98 98
      * @param AbstractEntity $entity
99 99
      */
100
-    public function remove (AbstractEntity $entity): void {
100
+    public function remove(AbstractEntity $entity): void {
101 101
         unset($this->entities[$entity->getGid()]);
102 102
         foreach ($this->getKeys($entity) as $key) {
103 103
             unset($this->gids[$key]);
Please login to merge, or discard this patch.
src/Api/LoggerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,5 @@
 block discarded – undo
12 12
      * @param string $path
13 13
      * @param null|array $payload
14 14
      */
15
-    public function log (string $info, string $path, ?array $payload): void;
15
+    public function log(string $info, string $path, ?array $payload): void;
16 16
 }
17 17
\ 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
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
 
12 12
     const NAME = 'asana';
13 13
 
14
-    public function boot () {
14
+    public function boot() {
15 15
         $this->mergeConfigFrom(App::configPath('asana.php'), self::NAME);
16 16
     }
17 17
 
18
-    public function register () {
18
+    public function register() {
19 19
         $this->app->singleton(self::NAME, function($app) {
20 20
             $config = $app->config->get(self::NAME);
21 21
             return new Api($config['token']);
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/Base/AbstractEntity/DeleteTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * `DELETE`
15 15
      */
16
-    public function delete (): void {
16
+    public function delete(): void {
17 17
         /** @var Api $api */
18 18
         $api = $this->api;
19 19
         $api->delete($this);
Please login to merge, or discard this patch.