Completed
Push — master ( 888b36...941487 )
by Christopher
06:06
created
src/MetadataV4/edm/IsOKTraits/TNamespaceNameTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 {
9 9
     use xsdRestrictions;
10 10
 
11
+    /**
12
+     * @param string $TNamespaceName
13
+     */
11 14
     protected function isTNamespaceNameValid($TNamespaceName)
12 15
     {
13 16
         if (!$this->isNCName($TNamespaceName)) {
Please login to merge, or discard this patch.
src/MetadataV3/edm/EntityContainer/AssociationSetAnonymousType.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer;
4 4
 
5 5
 use AlgoWeb\ODataMetadata\IsOK;
6
-use AlgoWeb\ODataMetadata\IsOKTraits\IsOKToolboxTrait;
7 6
 use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType;
8 7
 use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GEmptyElementExtensibilityTrait;
9 8
 use AlgoWeb\ODataMetadata\MetadataV3\edm\IsOKTraits\TQualifiedNameTrait;
Please login to merge, or discard this patch.
edm/EntityContainer/AssociationSetAnonymousType/EndAnonymousType.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType;
4 4
 
5 5
 use AlgoWeb\ODataMetadata\IsOK;
6
-use AlgoWeb\ODataMetadata\IsOKTraits\IsOKToolboxTrait;
7 6
 use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GEmptyElementExtensibilityTrait;
8 7
 use AlgoWeb\ODataMetadata\MetadataV3\edm\IsOKTraits\TSimpleIdentifierTrait;
9
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType;
10 8
 
11 9
 /**
12 10
  * Class representing EndAnonymousType
Please login to merge, or discard this patch.
src/MetadataV4/edm/IsOKTraits/TSimpleIdentifierTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 {
9 9
     use xsdRestrictions;
10 10
 
11
+    /**
12
+     * @param string $TSimpleIdentifier
13
+     */
11 14
     protected function isTSimpleIdentifierValid($TSimpleIdentifier)
12 15
     {
13 16
         if (!$this->isNCName($TSimpleIdentifier)) {
Please login to merge, or discard this patch.
src/MetadataV3/edm/IsOKTraits/TPathTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
 {
9 9
     use xsdRestrictions;
10 10
 
11
+    /**
12
+     * @param string $string
13
+     */
11 14
     public function isTPathValid($string)
12 15
     {
13 16
         // The below pattern represents the allowed identifiers in ECMA specification plus the '/' for path segment
Please login to merge, or discard this patch.
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.
src/MetadataManager.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType;
16 16
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType;
17 17
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType;
18
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType;
19
-use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType;
20 18
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType;
21 19
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyRefType;
22 20
 use AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType;
Please login to merge, or discard this patch.
Doc Comments   +22 added lines patch added patch discarded remove patch
@@ -54,6 +54,11 @@  discard block
 block discarded – undo
54 54
         return $cereal->serialize($this->getEdmx(), "xml");
55 55
     }
56 56
 
57
+    /**
58
+     * @param string $name
59
+     * @param TTextType $summary
60
+     * @param TTextType $longDescription
61
+     */
57 62
     public function addEntityType($name, $accessType = "Public", $summary = null, $longDescription = null)
58 63
     {
59 64
         $NewEntity = new TEntityTypeType();
@@ -118,6 +123,14 @@  discard block
 block discarded – undo
118 123
         return $NewProperty;
119 124
     }
120 125
 
126
+    /**
127
+     * @param string $name
128
+     * @param string $type
129
+     * @param string $defaultValue
130
+     * @param string $storeGeneratedPattern
131
+     * @param TTextType $summary
132
+     * @param TTextType $longDescription
133
+     */
121 134
     public function addPropertyToEntityType(
122 135
         TEntityTypeType $entityType,
123 136
         $name,
@@ -147,6 +160,11 @@  discard block
 block discarded – undo
147 160
         return $NewProperty;
148 161
     }
149 162
 
163
+    /**
164
+     * @param string $principalMultiplicity
165
+     * @param string $principalProperty
166
+     * @param string $dependentMultiplicity
167
+     */
150 168
     public function addNavigationPropertyToEntityType(
151 169
         TEntityTypeType $principalType,
152 170
         $principalMultiplicity,
@@ -301,6 +319,10 @@  discard block
 block discarded – undo
301 319
         return $association;
302 320
     }
303 321
 
322
+    /**
323
+     * @param string $principalEntitySetName
324
+     * @param string $dependentEntitySetName
325
+     */
304 326
     protected function createAssocationSetForAssocation(
305 327
         TAssociationType $association,
306 328
         $principalEntitySetName,
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.