Cancelled
Pull Request — master (#11)
by Laurens
23:42
created
src/Client/ProductClient.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -8,13 +8,9 @@
 block discarded – undo
8 8
 use LauLamanApps\IzettleApi\API\Product\Discount;
9 9
 use LauLamanApps\IzettleApi\API\Product\Library;
10 10
 use LauLamanApps\IzettleApi\API\Product\Product;
11
-use LauLamanApps\IzettleApi\Client\Product\CategoryBuilder;
12 11
 use LauLamanApps\IzettleApi\Client\Product\CategoryBuilderInterface;
13
-use LauLamanApps\IzettleApi\Client\Product\DiscountBuilder;
14 12
 use LauLamanApps\IzettleApi\Client\Product\DiscountBuilderInterface;
15
-use LauLamanApps\IzettleApi\Client\Product\LibraryBuilder;
16 13
 use LauLamanApps\IzettleApi\Client\Product\LibraryBuilderInterface;
17
-use LauLamanApps\IzettleApi\Client\Product\ProductBuilder;
18 14
 use LauLamanApps\IzettleApi\Client\Product\ProductBuilderInterface;
19 15
 use LauLamanApps\IzettleApi\IzettleClientInterface;
20 16
 use Ramsey\Uuid\UuidInterface;
Please login to merge, or discard this patch.
src/Client/Purchase/PurchaseBuilder.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -78,6 +78,9 @@  discard block
 block discarded – undo
78 78
         );
79 79
     }
80 80
 
81
+    /**
82
+     * @param string $key
83
+     */
81 84
     private function getBoolFromKey($key, array $data): ?bool
82 85
     {
83 86
         if (!array_key_exists($key, $data)) {
@@ -87,6 +90,9 @@  discard block
 block discarded – undo
87 90
         return $data[$key];
88 91
     }
89 92
 
93
+    /**
94
+     * @param string $key
95
+     */
90 96
     private function getCoordinatesFromKey($key, array $data): ?Coordinates
91 97
     {
92 98
         if (!array_key_exists($key, $data)) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use DateTime;
8 8
 use LauLamanApps\IzettleApi\API\Purchase\Coordinates;
9 9
 use LauLamanApps\IzettleApi\API\Purchase\Purchase;
10
-use LauLamanApps\IzettleApi\API\Purchase\PurchaseHistory;
11 10
 use LauLamanApps\IzettleApi\API\Purchase\User;
12 11
 use Money\Currency;
13 12
 use Money\Money;
Please login to merge, or discard this patch.
src/Client/Purchase/PurchaseHistoryBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace LauLamanApps\IzettleApi\Client\Purchase;
6 6
 
7 7
 use LauLamanApps\IzettleApi\API\Purchase\PurchaseHistory;
8
-use Psr\Http\Message\ResponseInterface;
9 8
 
10 9
 final class PurchaseHistoryBuilder implements PurchaseHistoryBuilderInterface
11 10
 {
Please login to merge, or discard this patch.
tests/Unit/Client/Product/ProductParserTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
         ];
118 118
     }
119 119
 
120
+    /**
121
+     * @param string $filename
122
+     */
120 123
     private function getDataFromFile($filename): array
121 124
     {
122 125
         $singleProductJson = file_get_contents(dirname(__FILE__) . '/json-files/' . $filename);
Please login to merge, or discard this patch.
tests/Unit/Client/ProductClientTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -288,6 +288,10 @@  discard block
 block discarded – undo
288 288
         );
289 289
     }
290 290
 
291
+    /**
292
+     * @param string $url
293
+     * @param string[] $data
294
+     */
291 295
     private function getIzettleGetMock($url, $data): IzettleClientInterface
292 296
     {
293 297
         $responseMock = Mockery::mock(ResponseInterface::class);
@@ -303,6 +307,9 @@  discard block
 block discarded – undo
303 307
         return $izettleClientMock;
304 308
     }
305 309
 
310
+    /**
311
+     * @param string $url
312
+     */
306 313
     private function getIzettlePostMock($url, $postData): IzettleClientInterface
307 314
     {
308 315
         $izettleClientMock = Mockery::mock(IzettleClientInterface::class);
@@ -315,6 +322,9 @@  discard block
 block discarded – undo
315 322
         return $izettleClientMock;
316 323
     }
317 324
 
325
+    /**
326
+     * @param string $url
327
+     */
318 328
     private function getIzettleDeleteMock($url): IzettleClientInterface
319 329
     {
320 330
         $izettleClientMock = Mockery::mock(IzettleClientInterface::class);
Please login to merge, or discard this patch.
tests/Unit/Client/PurchaseClientTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -60,6 +60,9 @@
 block discarded – undo
60 60
         $purchaseClient->getPurchase($purchaseUuid);
61 61
     }
62 62
 
63
+    /**
64
+     * @param string[] $data
65
+     */
63 66
     private function getIzettleMock($url, $data): IzettleClientInterface
64 67
     {
65 68
         $responseMock = Mockery::mock(ResponseInterface::class);
Please login to merge, or discard this patch.