Passed
Push — master ( 2ae3d8...1a6d7e )
by Gilmar
24:28
created
src/Entity/Order/Manager.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -37,6 +37,9 @@
 block discarded – undo
37 37
         $this->maps = $this->loadArrayFromFile(__DIR__.'/map/restful.map.php');
38 38
     }
39 39
 
40
+    /**
41
+     * @param string $decoratorName
42
+     */
40 43
     public function factoryDecorator(Order $order, $decoratorName)
41 44
     {
42 45
         $className = __NAMESPACE__.'\\Decorator\\'.$decoratorName;
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@
 block discarded – undo
14 14
 
15 15
 namespace Gpupo\NetshoesSdk\Entity\Order;
16 16
 
17
-use DateInterval;
18
-use DateTime;
19 17
 use Gpupo\CommonSdk\Entity\EntityInterface;
20 18
 use Gpupo\CommonSdk\Response;
21 19
 use Gpupo\CommonSdk\Traits\LoadTrait;
Please login to merge, or discard this patch.
src/Entity/Product/Sku/Manager.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @return Gpupo\Common\Entity\CollectionAbstract|null
39
+     * @return null|EntityInterface
40 40
      */
41 41
     public function findById($itemId)
42 42
     {
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
         return $this->hydrate($sku);
57 57
     }
58 58
 
59
+    /**
60
+     * @param string $type
61
+     */
59 62
     protected function getDetail(EntityInterface $sku, $type)
60 63
     {
61 64
         $response = $this->perform($this->factoryMap('get'.$type, ['sku' => $sku->getId()]));
@@ -102,6 +105,9 @@  discard block
 block discarded – undo
102 105
         ]), $entity->toJson());
103 106
     }
104 107
 
108
+    /**
109
+     * @param string $type
110
+     */
105 111
     public function saveDetail(Item $sku, $type)
106 112
     {
107 113
         $json = $sku->toJson($type);
Please login to merge, or discard this patch.
src/Traits/DateTimeTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -44,6 +44,9 @@  discard block
 block discarded – undo
44 44
         return $datetime->format('c');
45 45
     }
46 46
 
47
+    /**
48
+     * @param string $key
49
+     */
47 50
     protected function dateGet($key)
48 51
     {
49 52
         $value = $this->get($key);
@@ -55,6 +58,9 @@  discard block
 block discarded – undo
55 58
         }
56 59
     }
57 60
 
61
+    /**
62
+     * @param string $move
63
+     */
58 64
     protected function dateMove($move)
59 65
     {
60 66
         $date = new DateTime();
Please login to merge, or discard this patch.