Completed
Push — master ( 2eb0ee...664b37 )
by Gabriel
02:30
created
src/RequestHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         return $headers;
77 77
     }
78 78
 
79
-    private function encodeParams($params = null): ?string
79
+    private function encodeParams($params = null): ? string
80 80
     {
81 81
         $body = null;
82 82
         if ($params) {
Please login to merge, or discard this patch.
src/Mapper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
      * @param array $data
10 10
      * @param string $entityClass
11 11
      * @param string $mapperClass
12
-     * @return Collection|mixed
12
+     * @return Collection
13 13
      */
14 14
     protected function create(Collection $collection, array $data, string $entityClass, string $mapperClass)
15 15
     {
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @param array $data
26 26
      * @param string $entityClass
27 27
      * @param string $mapperClass
28
-     * @return Collection|mixed
28
+     * @return Collection
29 29
      */
30 30
     protected function replace(Collection $collection, array $data, string $entityClass, string $mapperClass)
31 31
     {
Please login to merge, or discard this patch.
src/Models/Category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         return $this->name;
40 40
     }
41 41
 
42
-    public function getCreation(): ?DateTime
42
+    public function getCreation(): ? DateTime
43 43
     {
44 44
         return $this->creation;
45 45
     }
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
     public function jsonSerialize(): array
53 53
     {
54
-        return array_map(function (JsonSerializable $item) {
54
+        return array_map(function(JsonSerializable $item) {
55 55
             return $item->jsonSerialize();
56 56
         }, $this->items);
57 57
     }
Please login to merge, or discard this patch.
src/Models/Variable.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
         return $this->elements;
36 36
     }
37 37
 
38
-    public function getCreation(): ?DateTime
38
+    public function getCreation(): ? DateTime
39 39
     {
40 40
         return $this->creation;
41 41
     }
Please login to merge, or discard this patch.
src/Models/Inventory/Item.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@
 block discarded – undo
36 36
         $this->attributes = clone $this->attributes;
37 37
     }
38 38
 
39
+    /**
40
+     * @return string
41
+     */
39 42
     public function getId(): ? string
40 43
     {
41 44
         return $this->id;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use JsonSerializable;
7 7
 use Waredesk\Collections\Inventory\Items\Activities;
8 8
 use Waredesk\Collections\Inventory\Items\Attributes;
9
-use Waredesk\Collections\Inventory\Items\Codes;
10 9
 use Waredesk\Entity;
11 10
 use Waredesk\ReplaceableEntity;
12 11
 
Please login to merge, or discard this patch.
src/Variables.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         return $this->doCreate(
16 16
             self::ENDPOINT,
17 17
             $variable,
18
-            function ($response) use ($variable) {
18
+            function($response) use ($variable) {
19 19
                 return (new VariableMapper())->map($variable, $response);
20 20
             }
21 21
         );
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         return $this->doUpdate(
28 28
             self::ENDPOINT."/{$variable->getId()}",
29 29
             $variable,
30
-            function ($response) use ($variable) {
30
+            function($response) use ($variable) {
31 31
                 return (new VariableMapper())->map($variable, $response);
32 32
             }
33 33
         );
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             $orderBy,
47 47
             $order,
48 48
             $limit,
49
-            function ($response) {
49
+            function($response) {
50 50
                 return (new VariablesMapper())->map(new Collections\Variables(), $response);
51 51
             }
52 52
         );
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             self::ENDPOINT,
59 59
             $orderBy,
60 60
             $order,
61
-            function ($response) {
61
+            function($response) {
62 62
                 return (new VariablesMapper())->map(new Collections\Variables(), $response);
63 63
             }
64 64
         );
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             $criteria,
72 72
             $orderBy,
73 73
             $order,
74
-            function ($response) {
74
+            function($response) {
75 75
                 return (new VariablesMapper())->map(new Collections\Variables(), $response);
76 76
             }
77 77
         );
Please login to merge, or discard this patch.
src/Categories.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         return $this->doCreate(
16 16
             self::ENDPOINT,
17 17
             $category,
18
-            function ($response) use ($category) {
18
+            function($response) use ($category) {
19 19
                 return (new CategoryMapper())->map($category, $response);
20 20
             }
21 21
         );
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             $orderBy,
35 35
             $order,
36 36
             $limit,
37
-            function ($response) {
37
+            function($response) {
38 38
                 return (new CategoriesMapper())->map(new Collections\Categories(), $response);
39 39
             }
40 40
         );
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             self::ENDPOINT,
47 47
             $orderBy,
48 48
             $order,
49
-            function ($response) {
49
+            function($response) {
50 50
                 return (new CategoriesMapper())->map(new Collections\Categories(), $response);
51 51
             }
52 52
         );
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             $criteria,
60 60
             $orderBy,
61 61
             $order,
62
-            function ($response) {
62
+            function($response) {
63 63
                 return (new CategoriesMapper())->map(new Collections\Categories(), $response);
64 64
             }
65 65
         );
Please login to merge, or discard this patch.
src/Models/Product.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         return $this->note;
81 81
     }
82 82
 
83
-    public function getCreation(): ?DateTime
83
+    public function getCreation(): ? DateTime
84 84
     {
85 85
         return $this->creation;
86 86
     }
Please login to merge, or discard this patch.