Completed
Pull Request — master (#9)
by Viacheslav
39:48
created
src/Schema.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@  discard block
 block discarded – undo
118 118
     private $__propertyToData = array();
119 119
 
120 120
 
121
+    /**
122
+     * @param string $dataName
123
+     */
121 124
     public function addPropertyMapping($dataName, $propertyName)
122 125
     {
123 126
         $this->__dataToProperty[$dataName] = $propertyName;
@@ -617,6 +620,9 @@  discard block
 block discarded – undo
617 620
     }
618 621
 
619 622
 
623
+    /**
624
+     * @param string $path
625
+     */
620 626
     private function fail(InvalidValue $exception, $path)
621 627
     {
622 628
         if ($path !== '#') {
@@ -710,6 +716,9 @@  discard block
 block discarded – undo
710 716
         return $this;
711 717
     }
712 718
 
719
+    /**
720
+     * @param string $className
721
+     */
713 722
     public function getMeta($className)
714 723
     {
715 724
         if (isset($this->metaItems[$className])) {
Please login to merge, or discard this patch.
src/SchemaLoader.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         return $contents;
97 97
     }
98 98
 
99
+    /**
100
+     * @param string $path
101
+     */
99 102
     private function dumpSchemaDeeper(Schema $schema, $path)
100 103
     {
101 104
         $result = new \stdClass();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use PhpLang\ScopeExit;
6 6
 use Swaggest\JsonSchema\Constraint\Properties;
7 7
 use Swaggest\JsonSchema\Constraint\Ref;
8
-use Swaggest\JsonSchema\Constraint\Type;
9 8
 use Swaggest\JsonSchema\RemoteRef\BasicFetcher;
10 9
 
11 10
 /**
Please login to merge, or discard this patch.