@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | /** |
| 317 | 317 | * Delete resource from a resource set. |
| 318 | - * @param ResourceSet|null $sourceResourceSet |
|
| 318 | + * @param ResourceSet $sourceResourceSet |
|
| 319 | 319 | * @param object $sourceEntityInstance |
| 320 | 320 | * |
| 321 | 321 | * return bool true if resources sucessfully deteled, otherwise false. |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * @param ResourceSet $sourceResourceSet |
| 461 | 461 | * @param $sourceEntityInstance |
| 462 | 462 | * @param $data |
| 463 | - * @param $verb |
|
| 463 | + * @param string $verb |
|
| 464 | 464 | * @return mixed |
| 465 | 465 | * @throws ODataException |
| 466 | 466 | * @throws \POData\Common\InvalidOperationException |
@@ -3,9 +3,7 @@ |
||
| 3 | 3 | namespace AlgoWeb\PODataLaravel\Providers; |
| 4 | 4 | |
| 5 | 5 | use AlgoWeb\PODataLaravel\Controllers\MetadataControllerTrait; |
| 6 | -use AlgoWeb\PODataLaravel\Controllers\TestController; |
|
| 7 | 6 | use Illuminate\Routing\Controller; |
| 8 | -use Illuminate\Support\ServiceProvider; |
|
| 9 | 7 | use Illuminate\Support\Facades\Cache; |
| 10 | 8 | use AlgoWeb\PODataLaravel\Controllers\MetadataControllerContainer; |
| 11 | 9 | use Illuminate\Support\Facades\App; |
@@ -414,8 +414,8 @@ |
||
| 414 | 414 | * @param $first |
| 415 | 415 | * @param $property |
| 416 | 416 | * @param $last |
| 417 | - * @param $mult |
|
| 418 | - * @param $targ |
|
| 417 | + * @param string $mult |
|
| 418 | + * @param string $targ |
|
| 419 | 419 | */ |
| 420 | 420 | private function addRelationsHook(&$hooks, $first, $property, $last, $mult, $targ) |
| 421 | 421 | { |
@@ -3,12 +3,9 @@ |
||
| 3 | 3 | namespace AlgoWeb\PODataLaravel\Providers; |
| 4 | 4 | |
| 5 | 5 | use Illuminate\Support\Facades\App; |
| 6 | -use Illuminate\Support\ServiceProvider; |
|
| 7 | 6 | use Illuminate\Support\Facades\Cache; |
| 8 | 7 | use POData\Providers\Metadata\IMetadataProvider; |
| 9 | -use POData\Providers\Metadata\ResourceType; |
|
| 10 | 8 | use POData\Providers\Metadata\SimpleMetadataProvider; |
| 11 | -use Illuminate\Support\Facades\Route; |
|
| 12 | 9 | use Illuminate\Support\Facades\Schema as Schema; |
| 13 | 10 | |
| 14 | 11 | class MetadataProvider extends MetadataBaseProvider |
@@ -346,6 +346,7 @@ |
||
| 346 | 346 | |
| 347 | 347 | /** |
| 348 | 348 | * @param $sourceEntityInstance |
| 349 | + * @param Model $checkInstance |
|
| 349 | 350 | * @throws ODataException |
| 350 | 351 | */ |
| 351 | 352 | private function checkAuth($sourceEntityInstance, $checkInstance = null) |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | - * @return mixed |
|
| 70 | + * @return boolean |
|
| 71 | 71 | */ |
| 72 | 72 | protected function getIsDumping() |
| 73 | 73 | { |
@@ -395,6 +395,9 @@ discard block |
||
| 395 | 395 | return $this->stack; |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | + /** |
|
| 399 | + * @param string $containerName |
|
| 400 | + */ |
|
| 398 | 401 | protected function getEntryInstanceKey($entityInstance, ResourceType $resourceType, $containerName) |
| 399 | 402 | { |
| 400 | 403 | $typeName = $resourceType->getName(); |
@@ -426,7 +429,7 @@ discard block |
||
| 426 | 429 | /** |
| 427 | 430 | * @param $entryObject |
| 428 | 431 | * @param $type |
| 429 | - * @param $relativeUri |
|
| 432 | + * @param string $relativeUri |
|
| 430 | 433 | * @param $resourceType |
| 431 | 434 | * @return array |
| 432 | 435 | */ |
@@ -493,7 +496,7 @@ discard block |
||
| 493 | 496 | * Find a 'ExpandedProjectionNode' instance in the projection tree |
| 494 | 497 | * which describes the current segment. |
| 495 | 498 | * |
| 496 | - * @return ExpandedProjectionNode|null |
|
| 499 | + * @return null|\POData\UriProcessor\QueryProcessor\ExpandProjectionParser\RootProjectionNode|ExpandedProjectionNode |
|
| 497 | 500 | */ |
| 498 | 501 | protected function getCurrentExpandedProjectionNode() |
| 499 | 502 | { |
@@ -664,7 +667,7 @@ discard block |
||
| 664 | 667 | /** |
| 665 | 668 | * @param $entryObject |
| 666 | 669 | * @param $prop |
| 667 | - * @param $nuLink |
|
| 670 | + * @param ODataLink $nuLink |
|
| 668 | 671 | * @param $propKind |
| 669 | 672 | * @param $propName |
| 670 | 673 | */ |