Completed
Push — master ( 92f615...81695c )
by Julien
02:57
created
Tests/Units/Mapping.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@
 block discarded – undo
202 202
      * getMappingArray
203 203
      *
204 204
      * @access private
205
-     * @return void
205
+     * @return ClassMetadata[]
206 206
      */
207 207
     private function getMappingArray()
208 208
     {
Please login to merge, or discard this patch.
Tests/Units/RestClient.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             ->then
72 72
                 ->object($this->testedInstance->get('/not-json'))
73 73
                     ->isInstanceOf('\GuzzleHttp\Psr7\Response')
74
-           ;
74
+            ;
75 75
     }
76 76
 
77 77
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
                     ->isInstanceOf('Mapado\RestClientSdk\Exception\RestException')
111 111
                     ->hasMessage('Error while deleting resource')
112 112
                     ->hasCode(2)
113
-           ;
113
+            ;
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
src/Model/ModelHydrator.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-      * convertId
37
-      *
38
-      * @param string $id
39
-      * @param string $modelName
40
-      * @access public
41
-      * @return string
42
-      */
36
+     * convertId
37
+     *
38
+     * @param string $id
39
+     * @param string $modelName
40
+     * @access public
41
+     * @return string
42
+     */
43 43
     public function convertId($id, $modelName)
44 44
     {
45 45
         // add slash if needed to have a valid hydra id
Please login to merge, or discard this patch.
Tests/Units/EntityRepository.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,6 @@
 block discarded – undo
125 125
     /**
126 126
      * testFindWithCache
127 127
      *
128
-     * @param mixed $method
129 128
      * @access public
130 129
      * @return void
131 130
      */
Please login to merge, or discard this patch.
Tests/Units/Model/Serializer.php 1 patch
Doc Comments   +10 added lines, -6 removed lines patch added patch discarded remove patch
@@ -670,7 +670,7 @@  discard block
 block discarded – undo
670 670
      * createNewCart
671 671
      *
672 672
      * @access private
673
-     * @return AbstractModel
673
+     * @return \Mapado\RestClientSdk\Tests\Model\Cart
674 674
      */
675 675
     private function createNewCart()
676 676
     {
@@ -689,7 +689,7 @@  discard block
 block discarded – undo
689 689
      * createCart
690 690
      *
691 691
      * @access private
692
-     * @return void
692
+     * @return \Mapado\RestClientSdk\Tests\Model\Cart
693 693
      */
694 694
     private function createCart()
695 695
     {
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
      * createKnownCartItem
704 704
      *
705 705
      * @access private
706
-     * @return AbstractModel
706
+     * @return \Mapado\RestClientSdk\Tests\Model\CartItem
707 707
      */
708 708
     private function createKnownCartItem()
709 709
     {
@@ -724,7 +724,7 @@  discard block
 block discarded – undo
724 724
      * createNewCartItem
725 725
      *
726 726
      * @access private
727
-     * @return AbstractModel
727
+     * @return \Mapado\RestClientSdk\Tests\Model\CartItem
728 728
      */
729 729
     private function createNewCartItem($addKnownedProduct = true)
730 730
     {
@@ -747,7 +747,7 @@  discard block
 block discarded – undo
747 747
      * createNewProduct
748 748
      *
749 749
      * @access private
750
-     * @return AbstractModel
750
+     * @return \Mapado\RestClientSdk\Tests\Model\Product
751 751
      */
752 752
     private function createNewProduct()
753 753
     {
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
      * createKnownedProduct
765 765
      *
766 766
      * @access private
767
-     * @return AbstractModel
767
+     * @return \Mapado\RestClientSdk\Tests\Model\Product
768 768
      */
769 769
     private function createKnownedProduct()
770 770
     {
@@ -787,6 +787,7 @@  discard block
 block discarded – undo
787 787
      * createNewInstance
788 788
      *
789 789
      * @access private
790
+     * @param Mapping $mapping
790 791
      * @return void
791 792
      */
792 793
     private function createNewInstance($mapping = null)
@@ -815,6 +816,9 @@  discard block
 block discarded – undo
815 816
         $this->testedInstance->setSdk($sdk);
816 817
     }
817 818
 
819
+    /**
820
+     * @param string $modelName
821
+     */
818 822
     private function getCartRepositoryMock($sdk, $restClient, $modelName)
819 823
     {
820 824
         $repository = new \mock\Mapado\RestClientSdk\EntityRepository(
Please login to merge, or discard this patch.