Completed
Branch master (7d7b3f)
by Ori
01:38
created
src/Factory.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,6 +227,8 @@  discard block
 block discarded – undo
227 227
     /**
228 228
      * allows extending classes to add custom sources
229 229
      * used by unit tests to add a mock http source.
230
+     * @param string $source
231
+     * @return string
230 232
      */
231 233
     protected static function normalizeHttpSource($source)
232 234
     {
@@ -236,6 +238,7 @@  discard block
 block discarded – undo
236 238
     /**
237 239
      * allows extending classes to add custom sources
238 240
      * used by unit tests to add a mock http source.
241
+     * @param string $source
239 242
      */
240 243
     protected static function isHttpSource($source)
241 244
     {
@@ -249,7 +252,7 @@  discard block
 block discarded – undo
249 252
      *   - normalized basePath.
250 253
      *
251 254
      * @param $source
252
-     * @param $basePath
255
+     * @param null|string $basePath
253 256
      *
254 257
      * @return object
255 258
      *
Please login to merge, or discard this patch.
src/Validators/BaseValidator.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 abstract class BaseValidator extends SchemaValidator
11 11
 {
12
+    /**
13
+     * @param string $basePath
14
+     */
12 15
     public function __construct($descriptor, $basePath = null)
13 16
     {
14 17
         $this->basePath = $basePath;
@@ -122,6 +125,9 @@  discard block
 block discarded – undo
122 125
         $this->validateSchemaUrl($this->getValidationSchemaUrl());
123 126
     }
124 127
 
128
+    /**
129
+     * @param string $url
130
+     */
125 131
     protected function validateSchemaUrl($url)
126 132
     {
127 133
         $validator = new \JsonSchema\Validator();
@@ -141,7 +147,7 @@  discard block
 block discarded – undo
141 147
      * Add an error to the validator object - errors are aggregated and returned by validate function.
142 148
      *
143 149
      * @param int        $code
144
-     * @param null|mixed $extraDetails
150
+     * @param string $extraDetails
145 151
      */
146 152
     protected function addError($code, $extraDetails = null)
147 153
     {
Please login to merge, or discard this patch.
src/Validators/DatapackageValidator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         return ResourceValidator::validate($resourceDescriptor, $this->basePath);
71 71
     }
72 72
 
73
+    /**
74
+     * @param string $profile
75
+     */
73 76
     protected function getJsonSchemaFileFromRegistry($profile)
74 77
     {
75 78
         if ($filename = Registry::getJsonSchemaFile($profile)) {
Please login to merge, or discard this patch.