@@ -76,7 +76,7 @@ |
||
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) { |
@@ -39,7 +39,7 @@ |
||
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 | } |
@@ -51,7 +51,7 @@ |
||
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 | } |
@@ -35,7 +35,7 @@ |
||
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 | } |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | ); |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | ); |
@@ -80,7 +80,7 @@ |
||
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 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | return $this->doCreate( |
16 | 16 | self::ENDPOINT, |
17 | 17 | $product, |
18 | - function ($response) use ($product) { |
|
18 | + function($response) use ($product) { |
|
19 | 19 | return (new ProductMapper())->map($product, $response); |
20 | 20 | } |
21 | 21 | ); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | return $this->doUpdate( |
28 | 28 | self::ENDPOINT."/{$product->getId()}", |
29 | 29 | $product, |
30 | - function ($response) use ($product) { |
|
30 | + function($response) use ($product) { |
|
31 | 31 | return (new ProductMapper())->map($product, $response); |
32 | 32 | } |
33 | 33 | ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | $orderBy, |
41 | 41 | $order, |
42 | 42 | $limit, |
43 | - function ($response) { |
|
43 | + function($response) { |
|
44 | 44 | return (new ProductsMapper())->map(new Collections\Products(), $response); |
45 | 45 | } |
46 | 46 | ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | self::ENDPOINT, |
53 | 53 | $orderBy, |
54 | 54 | $order, |
55 | - function ($response) { |
|
55 | + function($response) { |
|
56 | 56 | return (new ProductsMapper())->map(new Collections\Products(), $response); |
57 | 57 | } |
58 | 58 | ); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | $criteria, |
66 | 66 | $orderBy, |
67 | 67 | $order, |
68 | - function ($response) { |
|
68 | + function($response) { |
|
69 | 69 | return (new ProductsMapper())->map(new Collections\Products(), $response); |
70 | 70 | } |
71 | 71 | ); |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | return $this->doCreate( |
18 | 18 | self::ENDPOINT, |
19 | 19 | $item, |
20 | - function ($response) use ($item) { |
|
20 | + function($response) use ($item) { |
|
21 | 21 | return (new ItemMapper())->map($item, $response); |
22 | 22 | } |
23 | 23 | ); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | return $this->doCreate( |
29 | 29 | self::ENDPOINT.'/batch', |
30 | 30 | $items, |
31 | - function ($response) { |
|
31 | + function($response) { |
|
32 | 32 | return (new ItemsMapper())->map(new Collections\Inventory\Items(), $response); |
33 | 33 | } |
34 | 34 | ); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $orderBy, |
48 | 48 | $order, |
49 | 49 | $limit, |
50 | - function ($response) { |
|
50 | + function($response) { |
|
51 | 51 | return (new ItemsMapper())->map(new Collections\Inventory\Items(), $response); |
52 | 52 | } |
53 | 53 | ); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | self::ENDPOINT, |
60 | 60 | $orderBy, |
61 | 61 | $order, |
62 | - function ($response) { |
|
62 | + function($response) { |
|
63 | 63 | return (new ItemsMapper())->map(new Collections\Inventory\Items(), $response); |
64 | 64 | } |
65 | 65 | ); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $criteria, |
73 | 73 | $orderBy, |
74 | 74 | $order, |
75 | - function ($response) { |
|
75 | + function($response) { |
|
76 | 76 | return (new ItemsMapper())->map(new Collections\Inventory\Items(), $response); |
77 | 77 | } |
78 | 78 | ); |