Completed
Push — master ( 6f5720...a297dc )
by Nikolay
07:30
created
QueryProcessor/ExpressionParser/Expressions/UnaryExpression.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
     /**
17 17
      * Construct a new instance of UnaryExpression
18 18
      * 
19
-     * @param unknown_type $child    Child expression
19
+     * @param AbstractExpression $child    Child expression
20 20
      * @param unknown_type $nodeType Expression node type
21
-     * @param unknown_type $type     Expression type
21
+     * @param \POData\Providers\Metadata\Type\IType $type     Expression type
22 22
      */
23 23
     public function __construct($child, $nodeType, $type)
24 24
     {
Please login to merge, or discard this patch.
src/POData/UriProcessor/QueryProcessor/FunctionDescription.php 1 patch
Doc Comments   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /** 
256 256
      * Get function description for string comparison
257 257
      * 
258
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
258
+     * @return FunctionDescription[]
259 259
      */
260 260
     public static function stringComparisonFunctions()
261 261
     {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     /**
271 271
      * Get function description for datetime comparison
272 272
      * 
273
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
273
+     * @return FunctionDescription[]
274 274
      */
275 275
     public static function dateTimeComparisonFunctions()
276 276
     {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     /**
286 286
      * Get function description for guid equality check
287 287
      * 
288
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
288
+     * @return FunctionDescription[]
289 289
      */
290 290
     public static function guidEqualityFunctions()
291 291
     {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     /**
301 301
      * Get function description for binary equality check
302 302
      * 
303
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
303
+     * @return FunctionDescription[]
304 304
      */
305 305
     public static function binaryEqualityFunctions()
306 306
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      * Get function descriptions for arithmetic operations
317 317
      * 
318
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
318
+     * @return FunctionDescription[]
319 319
      */
320 320
     public static function arithmeticOperationFunctions()
321 321
     {      
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     /**      
351 351
      * Get function descriptions for arithmetic add operations
352 352
      * 
353
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[] indexed by function name
353
+     * @return FunctionDescription[] indexed by function name
354 354
      */
355 355
     public static function addOperationFunctions()
356 356
     {
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     /**
361 361
      * Get function descriptions for arithmetic subtract operations
362 362
      * 
363
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[] indexed by function name
363
+     * @return FunctionDescription[] indexed by function name
364 364
      */
365 365
     public static function subtractOperationFunctions()
366 366
     {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     /**      
371 371
      * Get function descriptions for logical operations
372 372
      * 
373
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
373
+     * @return FunctionDescription[]
374 374
      */
375 375
     public static function logicalOperationFunctions()
376 376
     {
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
     /**
386 386
      * Get function descriptions for relational operations
387 387
      * 
388
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
388
+     * @return FunctionDescription[]
389 389
      */
390 390
     public static function relationalOperationFunctions()
391 391
     {
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
     /**
416 416
      * Get function descriptions for unary not operation
417 417
      * 
418
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
418
+     * @return FunctionDescription[]
419 419
      */
420 420
     public static function notOperationFunctions()
421 421
     {
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
     /**      
443 443
      * Get function description for unary negate operator
444 444
      * 
445
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[]
445
+     * @return FunctionDescription[]
446 446
      */
447 447
     public static function negateOperationFunctions()
448 448
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
      * 
658 658
      * @throws ODataException
659 659
      * 
660
-     * @return \POData\UriProcessor\QueryProcessor\FunctionDescription[] Array of matching functions
660
+     * @return FunctionDescription[] Array of matching functions
661 661
      */
662 662
     public static function verifyFunctionExists($expressionToken)
663 663
     {
Please login to merge, or discard this patch.
src/POData/UriProcessor/QueryProcessor/OrderByParser/OrderByLeafNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * 
73 73
      * @see library/POData/QueryProcessorOrderByParser.OrderByBaseNode::getResourceType()
74 74
      * 
75
-     * @return void
75
+     * @return \POData\Providers\Metadata\ResourceType
76 76
      */
77 77
     public function getResourceType()
78 78
     {
Please login to merge, or discard this patch.
src/POData/UriProcessor/QueryProcessor/OrderByParser/OrderByNode.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
      * 
90 90
      * @see library/POData/QueryProcessorOrderByParser.OrderByBaseNode::getResourceType()
91 91
      * 
92
-     * @return ResourceType
92
+     * @return \POData\Providers\Metadata\ResourceType
93 93
      */
94 94
     public function getResourceType()
95 95
     {
Please login to merge, or discard this patch.
src/POData/UriProcessor/RequestDescription.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
 	 * @param SegmentDescriptor[] $segmentDescriptors Description of segments in the resource path.
218 218
 	 * @param Url $requestUri
219 219
 	 * @param Version $serviceMaxVersion
220
-	 * @param $requestVersion
221
-	 * @param $maxRequestVersion
220
+	 * @param string|null $requestVersion
221
+	 * @param string|null $maxRequestVersion
222 222
 	 */
223 223
 	public function __construct($segmentDescriptors, Url $requestUri, Version $serviceMaxVersion, $requestVersion, $maxRequestVersion)
224 224
     {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
      *      (i) $bath
383 383
      *          http://server/NW.svc/$batch
384 384
      *       
385
-     * @return ResourceSetWrapper|null
385
+     * @return ResourceSetWrapper
386 386
      */
387 387
     public function getTargetResourceSetWrapper()
388 388
     {
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      *      (c) $bath
427 427
      *          http://server/NW.svc/$batch
428 428
      *      
429
-     * @return ResourceType|null
429
+     * @return ResourceType
430 430
      */
431 431
     public function getTargetResourceType()
432 432
     {
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
      *      (e) $bath
474 474
      *          http://server/NW.svc/$batch
475 475
      *      
476
-     * @return ResourceProperty|null
476
+     * @return ResourceProperty
477 477
      */
478 478
     public function getProjectedProperty()
479 479
     {
Please login to merge, or discard this patch.
POData/UriProcessor/ResourcePathProcessor/SegmentParser/KeyDescriptor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      *  KeyDescription. 
203 203
      *    
204 204
      * @param string        $keyPredicate   The predicate to parse
205
-     * @param KeyDescriptor &$keyDescriptor On return, Description of key after 
205
+     * @param KeyDescriptor KeyDescriptor On return, Description of key after 
206 206
      *                                      parsing
207 207
      * 
208 208
      * @return boolean True if the given values were parsed; false if there was 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
      * the type if valid this function provide the PHP value equivalent to 
455 455
      * the astoira URI key value
456 456
      * 
457
-     * @param unknown           $value     The Astoria URI key value
457
+     * @param string           $value     The Astoria URI key value
458 458
      * @param ExpressionTokenId $tokenId   The tokenId for $value literal
459 459
      * @param unknown           &$outValue After the invocation, this parameter 
460 460
      *                                     holds the PHP value equivalent to $value, 
Please login to merge, or discard this patch.
POData/UriProcessor/ResourcePathProcessor/SegmentParser/SegmentParser.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -142,6 +142,10 @@
 block discarded – undo
142 142
         }
143 143
     }
144 144
 
145
+    /**
146
+     * @param string $segment
147
+     * @param boolean $checkRights
148
+     */
145 149
     private function createNextSegment(SegmentDescriptor $previous, $segment, $checkRights){
146 150
         $previousKind = $previous->getTargetKind();
147 151
         if ($previousKind == TargetKind::METADATA()
Please login to merge, or discard this patch.
src/POData/Writers/Atom/AtomODataWriter.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 	}
103 103
 
104 104
     /** 
105
-     * @param ODataUrl $url the url to write.
105
+     * @param ODataURL $url the url to write.
106 106
      * 
107 107
      * @return AtomODataWriter
108 108
      */
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * Begin write odata links
121 121
      * 
122
-     * @param ODataUrlCollection $urls Object of ODataUrlCollection to start writing collection of url.
122
+     * @param ODataURLCollection $urls Object of ODataUrlCollection to start writing collection of url.
123 123
      *
124 124
      * 
125 125
      * @return AtomODataWriter
@@ -415,10 +415,10 @@  discard block
 block discarded – undo
415 415
     /**
416 416
      * XML write a basic data type (string, number, boolean, null)
417 417
      * 
418
-     * @param mixed  $value value to be written
418
+     * @param string  $value value to be written
419 419
      * @param string $type  data type of the value
420 420
      * 
421
-     * @return mixed
421
+     * @return string
422 422
      */
423 423
     protected function beforeWriteValue($value, $type = null)
424 424
     {
Please login to merge, or discard this patch.
src/POData/Writers/Json/JsonLightODataWriter.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
 	protected $baseUri;
44 44
 
45 45
 
46
+	/**
47
+	 * @param string $absoluteServiceUri
48
+	 */
46 49
 	public function __construct(JsonLightMetadataLevel $metadataLevel, $absoluteServiceUri)
47 50
 	{
48 51
 		if(strlen($absoluteServiceUri) == 0)
@@ -148,6 +151,9 @@  discard block
 block discarded – undo
148 151
 
149 152
 
150 153
 
154
+	/**
155
+	 * @param string $fragment
156
+	 */
151 157
 	protected function writeTopLevelMeta($fragment)
152 158
 	{
153 159
 		if($this->metadataLevel == JsonLightMetadataLevel::NONE())
Please login to merge, or discard this patch.