Passed
Push — master ( 6b1038...70f02e )
by Radosław
02:29
created
src/Field.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,6 @@
 block discarded – undo
142 142
 
143 143
     /**
144 144
      * Detect type of range passed as argument (int, float, date)
145
-     * @param array $value value to detect type of
146 145
      */
147 146
     protected function setValueRangeAutodetect(array $range)
148 147
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     protected function setRangeDate(array $range)
203 203
     {
204
-        usort($range, function($date1, $date2){
204
+        usort($range, function($date1, $date2) {
205 205
             return strtotime($date1) - strtotime($date2);
206 206
         });
207 207
         $this->fValues[self::VALUE_RANGE_DATE] = array_combine(
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      */
243 243
     public function isRangeDate(array $range)
244 244
     {
245
-        $dates = array_filter($range, function($item){
245
+        $dates = array_filter($range, function($item) {
246 246
             return preg_match(self::DATE_REGEX, $item);
247 247
         });
248 248
 
Please login to merge, or discard this patch.
tests/FieldTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
5
+use PHPUnit\Framework\TestCase;
6 6
 use Radowoj\Yaah\Field;
7 7
 
8 8
 class FieldTest extends TestCase
Please login to merge, or discard this patch.
src/Auction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     /**
23 23
      * Sets photos for auction
24
-     * @param array $photos array of photo file paths
24
+     * @param string[] $photos array of photo file paths
25 25
      */
26 26
     public function setPhotos(array $photos)
27 27
     {
Please login to merge, or discard this patch.
tests/AuctionTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
5
+use PHPUnit\Framework\TestCase;
6 6
 use Radowoj\Yaah\Auction;
7 7
 
8 8
 class AuctionTest extends TestCase
Please login to merge, or discard this patch.
tests/HelperTest.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
6
-use Radowoj\Yaah\Field;
5
+use PHPUnit\Framework\TestCase;
7 6
 use SoapClient;
8 7
 
9 8
 class HelperTest extends TestCase
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
         $this->soapClient->expects($this->once())
144 144
             ->method('doSomethingNotImplementedInHelper')
145 145
             ->with(
146
-                $this->callback(function($params){
146
+                $this->callback(function($params) {
147 147
                     return array_key_exists('param1', $params)
148 148
                         && array_key_exists('webapiKey', $params)
149 149
                         && $params['param1'] == 1337
Please login to merge, or discard this patch.
tests/ClientTest.php 1 patch
Unused Use Statements   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah;
4 4
 
5
-use PHPUnit\Framework\TestCase;
6
-use Radowoj\Yaah\Config;
7
-use Radowoj\Yaah\Client;
8
-
9
-use SoapClient;
5
+use PHPUnit\Framework\TestCase;
6
+use Radowoj\Yaah\Config;
7
+use Radowoj\Yaah\Client;
8
+use SoapClient;
10 9
 use SoapFault;
11 10
 
12 11
 class ClientTest extends TestCase
Please login to merge, or discard this patch.
src/Decorators/AuctionArrayMapDecorator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         $map = $this->getMap();
33 33
         $fields = [];
34
-        foreach($humanReadableArray as $key => $value) {
34
+        foreach ($humanReadableArray as $key => $value) {
35 35
             if (array_key_exists($key, $map)) {
36 36
                 $fields[$map[$key]] = $value;
37 37
             }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $flippedMap = array_flip($map);
48 48
         $humanReadableArray = [];
49 49
 
50
-        foreach($fields as $key => $value) {
50
+        foreach ($fields as $key => $value) {
51 51
             if (array_key_exists($key, $flippedMap)) {
52 52
                 $humanReadableArray[$flippedMap[$key]] = $value;
53 53
             }
Please login to merge, or discard this patch.
tests/Decorators/AuctionArrayMapDecoratorTest.php 1 patch
Unused Use Statements   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah\Decorators;
4 4
 
5
-use PHPUnit\Framework\TestCase;
6
-use Radowoj\Yaah\Auction;
7
-use Radowoj\Yaah\Decorators\AuctionArrayMapDecorator;
8
-use Radowoj\Yaah\Constants\AuctionTimespans;
9
-use Radowoj\Yaah\Constants\AuctionFids;
10
-use Radowoj\Yaah\Constants\Conditions;
11
-use Radowoj\Yaah\Constants\SaleFormats;
5
+use PHPUnit\Framework\TestCase;
6
+use Radowoj\Yaah\Auction;
7
+use Radowoj\Yaah\Decorators\AuctionArrayMapDecorator;
8
+use Radowoj\Yaah\Constants\AuctionTimespans;
9
+use Radowoj\Yaah\Constants\AuctionFids;
10
+use Radowoj\Yaah\Constants\Conditions;
11
+use Radowoj\Yaah\Constants\SaleFormats;
12 12
 use Radowoj\Yaah\Constants\ShippingPaidBy;
13 13
 
14 14
 class AuctionArrayMapDecoratorTest extends TestCase
Please login to merge, or discard this patch.
src/HelperFactory/HelperFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
 {
12 12
     protected $config = null;
13 13
 
14
+    /**
15
+     * @return \SoapClient
16
+     */
14 17
     abstract protected function getSoapClient();
15 18
 
16 19
     public function create(array $configArray)
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,10 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Radowoj\Yaah\HelperFactory;
4 4
 
5
-use Radowoj\Yaah\Config;
6
-use Radowoj\Yaah\Client;
5
+use Radowoj\Yaah\Config;
6
+use Radowoj\Yaah\Client;
7 7
 use Radowoj\Yaah\Helper;
8
-use Radowoj\Yaah\Exception;
9 8
 
10 9
 abstract class HelperFactory
11 10
 {
Please login to merge, or discard this patch.