Completed
Pull Request — master (#122)
by Christopher
13:42 queued 08:32
created
tests/testType.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -30,6 +30,9 @@  discard block
 block discarded – undo
30 30
         return parent::isNullInstanceOf($var, $instanceOf);
31 31
     }
32 32
 
33
+    /**
34
+     * @param string $instanceOf
35
+     */
33 36
     public function isValidArray(array $arr = null, $instanceOf, $minCount = -1, $maxCount = -1)
34 37
     {
35 38
         return parent::isValidArray($arr, $instanceOf, $minCount, $maxCount);
@@ -40,6 +43,9 @@  discard block
 block discarded – undo
40 43
         return parent::isChildArrayOK($arr, $msg);
41 44
     }
42 45
 
46
+    /**
47
+     * @param null|string $url
48
+     */
43 49
     public function isURLValid($url)
44 50
     {
45 51
         return parent::isURLValid($url);
@@ -50,6 +56,9 @@  discard block
 block discarded – undo
50 56
         return true;
51 57
     }
52 58
 
59
+    /**
60
+     * @return boolean
61
+     */
53 62
     public function isObjectNullOrOK(IsOK $object = null, &$msg = null)
54 63
     {
55 64
         return parent::isObjectNullOrOK($object, $msg);
Please login to merge, or discard this patch.
tests/MetadataManagerTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType;
12 12
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType;
13 13
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType;
14
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType;
15
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType;
16 14
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType;
17 15
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType;
18 16
 use AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx;
Please login to merge, or discard this patch.
tests/v3/edm/TEntityPropertyTypeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType;
6 6
 use AlgoWeb\ODataMetadata\Tests\TestCase;
7
-use Mockery as m;
8 7
 
9 8
 class TEntityPropertyTypeTest extends TestCase
10 9
 {
Please login to merge, or discard this patch.
tests/v3/edm/ssdl/TEntityPropertyTypeTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 use AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityPropertyType;
8 8
 use AlgoWeb\ODataMetadata\Tests\TestCase;
9
-use Mockery as m;
10 9
 
11 10
 class TEntityPropertyTypeTest extends TestCase
12 11
 {
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TQualifiedNameTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
 {
10 10
     use xsdRestrictions;
11 11
 
12
+    /**
13
+     * @return boolean
14
+     */
12 15
     public function isTQualifiedNameValid($string)
13 16
     {
14 17
         assert($this instanceof IsOK);
Please login to merge, or discard this patch.
tests/MetadataManagerNavigationTest.php 1 patch
Unused Use Statements   -14 removed lines patch added patch discarded remove patch
@@ -2,21 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace AlgoWeb\ODataMetadata\Tests;
4 4
 
5
-use AlgoWeb\ODataMetadata\IsOK;
6 5
 use AlgoWeb\ODataMetadata\MetadataManager;
7
-use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer;
8
-use AlgoWeb\ODataMetadata\MetadataV3\edm\Schema;
9
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TAssociationType;
10
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypePropertyType;
11
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypeType;
12
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType;
13
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType;
14
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType;
15
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType;
16
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType;
17
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType;
18
-use AlgoWeb\ODataMetadata\MetadataV3\edmx\Edmx;
19
-use Mockery as m;
20 6
 
21 7
 class MetadataManagerNavigationTest extends \PHPUnit_Framework_TestCase
22 8
 {
Please login to merge, or discard this patch.
src/MetadataManager.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -52,6 +52,11 @@  discard block
 block discarded – undo
52 52
         return $cereal->serialize($this->getEdmx(), 'xml');
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $name
57
+     * @param TTextType $summary
58
+     * @param TTextType $longDescription
59
+     */
55 60
     public function addEntityType($name, $accessType = 'Public', $summary = null, $longDescription = null)
56 61
     {
57 62
         $NewEntity = new TEntityTypeType();
@@ -116,6 +121,14 @@  discard block
 block discarded – undo
116 121
         return $NewProperty;
117 122
     }
118 123
 
124
+    /**
125
+     * @param string $name
126
+     * @param string $type
127
+     * @param string $defaultValue
128
+     * @param string $storeGeneratedPattern
129
+     * @param TTextType $summary
130
+     * @param TTextType $longDescription
131
+     */
119 132
     public function addPropertyToEntityType(
120 133
         TEntityTypeType $entityType,
121 134
         $name,
@@ -145,6 +158,11 @@  discard block
 block discarded – undo
145 158
         return $NewProperty;
146 159
     }
147 160
 
161
+    /**
162
+     * @param string $principalMultiplicity
163
+     * @param string $principalProperty
164
+     * @param string $dependentMultiplicity
165
+     */
148 166
     public function addNavigationPropertyToEntityType(
149 167
         TEntityTypeType $principalType,
150 168
         $principalMultiplicity,
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer/AssociationSetAnonymousType.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * isset end.
113 113
      *
114
-     * @param  scalar $index
114
+     * @param  integer $index
115 115
      * @return bool
116 116
      */
117 117
     public function issetEnd($index)
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     /**
123 123
      * unset end.
124 124
      *
125
-     * @param  scalar $index
125
+     * @param  integer $index
126 126
      * @return void
127 127
      */
128 128
     public function unsetEnd($index)
Please login to merge, or discard this patch.
src/MetadataV3/edm/Groups/GExpressionTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
     /**
143 143
      * Sets a new binary.
144 144
      *
145
-     * @param  mixed $binary
145
+     * @param  string $binary
146 146
      * @return self
147 147
      */
148 148
     public function setBinary($binary)
Please login to merge, or discard this patch.