Completed
Pull Request — develop (#300)
by John
06:42 queued 02:25
created
Alpha/Model/ActiveRecordProviderFactory.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
      * @throws Alpha\Exception\IllegalArguementException
74 74
      *
75
-     * @return Alpha\Model\ActiveRecordProviderInterface
75
+     * @return ActiveRecordProviderInterface|null
76 76
      *
77 77
      * @since 1.1
78 78
      */
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderInterface.php 1 patch
Doc Comments   +26 added lines, -8 removed lines patch added patch discarded remove patch
@@ -60,6 +60,7 @@  discard block
 block discarded – undo
60 60
      * Disconnects the current database connection if one exists (self::$connection is set).
61 61
      *
62 62
      * @since 1.1
63
+     * @return void
63 64
      */
64 65
     public static function disconnect();
65 66
 
@@ -100,7 +101,7 @@  discard block
 block discarded – undo
100 101
     /**
101 102
      * Populates the record object from the database table by the given attribute value.
102 103
      *
103
-     * @param string $atribute        The name of the attribute to load the record by.
104
+     * @param string $attribute        The name of the attribute to load the record by.
104 105
      * @param string $value           The value of the attribute to load the record by.
105 106
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type
106 107
      * @param array  $loadAttributes  The attributes to load from the database to this object (leave blank to load all attributes)
@@ -131,14 +132,14 @@  discard block
 block discarded – undo
131 132
     /**
132 133
      * Loads all of the objects of this class by the specified attribute into an array which is returned.
133 134
      *
134
-     * @param string $atribute        The attribute to load the objects by.
135
+     * @param string $attribute        The attribute to load the objects by.
135 136
      * @param string $value           The value of the attribute to load the objects by.
136 137
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
137 138
      * @param int    $limit           The amount (limit) of objects to load, useful for pagination.
138 139
      * @param string $orderBy         The name of the field to sort the objects by.
139 140
      * @param string $order           The order to sort the objects by.
140 141
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type.
141
-     * @param array  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
142
+     * @param string[]  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
142 143
      *
143 144
      * @return array An array containing objects of this type of business object.
144 145
      *
@@ -152,14 +153,14 @@  discard block
 block discarded – undo
152 153
     /**
153 154
      * Loads all of the record objects of this class by the specified attributes into an array which is returned.
154 155
      *
155
-     * @param array  $atributes       The attributes to load the records by.
156
+     * @param array  $attributes       The attributes to load the records by.
156 157
      * @param array  $values          The values of the attributes to load the records by.
157 158
      * @param int    $start           The start of the SQL LIMIT clause, useful for pagination.
158 159
      * @param int    $limit           The amount (limit) of records to load, useful for pagination.
159 160
      * @param string $orderBy         The name of the field to sort the records by.
160 161
      * @param string $order           The order to sort the records by.
161 162
      * @param bool   $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type
162
-     * @param array  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
163
+     * @param string[]  $constructorArgs An optional array of contructor arguements to pass to the BOs that will be generated and returned.  Supports a maximum of 5 arguements.
163 164
      *
164 165
      * @return array An array containing objects of this type of record object.
165 166
      *
@@ -228,6 +229,7 @@  discard block
 block discarded – undo
228 229
      *
229 230
      * @throws Alpha\Exception\IllegalArguementException
230 231
      * @throws Alpha\Exception\FailedSaveException
232
+     * @return void
231 233
      */
232 234
     public function saveAttribute($attribute, $value);
233 235
 
@@ -237,6 +239,7 @@  discard block
 block discarded – undo
237 239
      * @since 1.2
238 240
      *
239 241
      * @throws Alpha\Exception\FailedSaveException
242
+     * @return void
240 243
      */
241 244
     public function saveHistory();
242 245
 
@@ -246,6 +249,7 @@  discard block
 block discarded – undo
246 249
      * @since 1.1
247 250
      *
248 251
      * @throws Alpha\Exception\FailedDeleteException
252
+     * @return void
249 253
      */
250 254
     public function delete();
251 255
 
@@ -266,6 +270,7 @@  discard block
 block discarded – undo
266 270
      * @since 1.1
267 271
      *
268 272
      * @throws Alpha\Exception\AlphaException
273
+     * @return void
269 274
      */
270 275
     public function makeTable();
271 276
 
@@ -275,6 +280,7 @@  discard block
 block discarded – undo
275 280
      * @since 1.2
276 281
      *
277 282
      * @throws AlphaException
283
+     * @return void
278 284
      */
279 285
     public function makeHistoryTable();
280 286
 
@@ -284,6 +290,7 @@  discard block
 block discarded – undo
284 290
      * @since 1.1
285 291
      *
286 292
      * @throws Alpha\Exception\AlphaException
293
+     * @return void
287 294
      */
288 295
     public function rebuildTable();
289 296
 
@@ -295,6 +302,7 @@  discard block
 block discarded – undo
295 302
      * @param string $tableName Optional table name, leave blank for the defined table for this class to be dropped
296 303
      *
297 304
      * @throws Alpha\Exception\AlphaException
305
+     * @return void
298 306
      */
299 307
     public function dropTable($tableName = null);
300 308
 
@@ -307,6 +315,7 @@  discard block
 block discarded – undo
307 315
      * @since 1.1
308 316
      *
309 317
      * @throws Alpha\Exception\AlphaException
318
+     * @return void
310 319
      */
311 320
     public function addProperty($propName);
312 321
 
@@ -324,7 +333,7 @@  discard block
 block discarded – undo
324 333
     /**
325 334
      * Gets the count from the database for the amount of objects of this class.
326 335
      *
327
-     * @param array $atributes The attributes to count the objects by (optional).
336
+     * @param array $attributes The attributes to count the objects by (optional).
328 337
      * @param array $values    The values of the attributes to count the objects by (optional).
329 338
      *
330 339
      * @return int
@@ -353,6 +362,7 @@  discard block
 block discarded – undo
353 362
      * @since 1.1
354 363
      *
355 364
      * @throws Alpha\Exception\AlphaException
365
+     * @return void
356 366
      */
357 367
     public function setEnumOptions();
358 368
 
@@ -426,11 +436,11 @@  discard block
 block discarded – undo
426 436
      * @param string $attributeName         The name of the attribute to apply the index on.
427 437
      * @param string $relatedClass          The fully-qualified name of the related class.
428 438
      * @param string $relatedClassAttribute The name of the field to relate to on the related class.
429
-     * @param bool   $allowNullValues       For foreign key indexes that don't allow null values, set this to false (default is true).
430 439
      *
431 440
      * @since 1.1
432 441
      *
433 442
      * @throws Alpha\Exception\FailedIndexCreateException
443
+     * @return void
434 444
      */
435 445
     public function createForeignIndex($attributeName, $relatedClass, $relatedClassAttribute);
436 446
 
@@ -444,6 +454,7 @@  discard block
 block discarded – undo
444 454
      * @since 1.1
445 455
      *
446 456
      * @throws Alpha\Exception\FailedIndexCreateException
457
+     * @return void
447 458
      */
448 459
     public function createUniqueIndex($attribute1Name, $attribute2Name = '', $attribute3Name = '');
449 460
 
@@ -453,6 +464,7 @@  discard block
 block discarded – undo
453 464
      * @since 1.1
454 465
      *
455 466
      * @throws Alpha\Exception\AlphaException
467
+     * @return void
456 468
      */
457 469
     public function reload();
458 470
 
@@ -488,6 +500,7 @@  discard block
 block discarded – undo
488 500
      * @since 1.1
489 501
      *
490 502
      * @throws Alpha\Exception\AlphaException
503
+     * @return void
491 504
      */
492 505
     public static function begin();
493 506
 
@@ -497,6 +510,7 @@  discard block
 block discarded – undo
497 510
      * @since 1.1
498 511
      *
499 512
      * @throws Alpha\Exception\FailedSaveException
513
+     * @return void
500 514
      */
501 515
     public static function commit();
502 516
 
@@ -506,15 +520,17 @@  discard block
 block discarded – undo
506 520
      * @since 1.1
507 521
      *
508 522
      * @throws Alpha\Exception\AlphaException
523
+     * @return void
509 524
      */
510 525
     public static function rollback();
511 526
 
512 527
     /**
513 528
      * Provide the BO that we are going to map the data to from this provider.
514 529
      *
515
-     * @param Alpha\Model\ActiveRecord $BO
530
+     * @param ActiveRecord $BO
516 531
      *
517 532
      * @since 1.1
533
+     * @return void
518 534
      */
519 535
     public function setBO($BO);
520 536
 
@@ -547,6 +563,7 @@  discard block
 block discarded – undo
547 563
      * @throws Alpha\Exception\AlphaException
548 564
      *
549 565
      * @since 2.0
566
+     * @return void
550 567
      */
551 568
     public static function createDatabase();
552 569
 
@@ -556,6 +573,7 @@  discard block
 block discarded – undo
556 573
      * @throws Alpha\Exception\AlphaException
557 574
      *
558 575
      * @since 2.0
576
+     * @return void
559 577
      */
560 578
     public static function dropDatabase();
561 579
 }
Please login to merge, or discard this patch.
Alpha/Model/ActiveRecordProviderMySQL.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2383,7 +2383,7 @@
 block discarded – undo
2383 2383
      * parameters.  If arrays of attribute names and values are provided, only those will be bound to
2384 2384
      * the supplied statement.
2385 2385
      *
2386
-     * @param mysqli_stmt $stmt The SQL statement to bind to.
2386
+     * @param \mysqli_stmt $stmt The SQL statement to bind to.
2387 2387
      * @param array Optional array of BO attributes.
2388 2388
      * @param array Optional array of BO values.
2389 2389
      *
Please login to merge, or discard this patch.
Alpha/Model/Article.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@
 block discarded – undo
435 435
     /**
436 436
      * Method for returning the calculated score for this article.
437 437
      *
438
-     * @return float
438
+     * @return string
439 439
      *
440 440
      * @since 1.0
441 441
      */
Please login to merge, or discard this patch.
Alpha/Model/Type/Relation.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,6 @@
 block discarded – undo
262 262
     /**
263 263
      * Get the name of the business object class that this class is related to.
264 264
      *
265
-     * @param string $RC
266 265
      *
267 266
      * @return string
268 267
      *
Please login to merge, or discard this patch.
Alpha/Model/Type/Timestamp.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
     /**
339 339
      * Getter for the year part.
340 340
      *
341
-     * @return string
341
+     * @return integer
342 342
      *
343 343
      * @since 1.0
344 344
      */
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     /**
351 351
      * Getter for the month part.
352 352
      *
353
-     * @return string
353
+     * @return integer
354 354
      *
355 355
      * @since 1.0
356 356
      */
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
     /**
363 363
      * Getter for the day part.
364 364
      *
365
-     * @return string
365
+     * @return integer
366 366
      *
367 367
      * @since 1.0
368 368
      */
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     /**
387 387
      * Getter for the hour part.
388 388
      *
389
-     * @return string
389
+     * @return integer
390 390
      *
391 391
      * @since 1.0
392 392
      */
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
     /**
399 399
      * Getter for the minute part.
400 400
      *
401
-     * @return string
401
+     * @return integer
402 402
      *
403 403
      * @since 1.0
404 404
      */
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
     /**
411 411
      * Getter for the second part.
412 412
      *
413
-     * @return string
413
+     * @return integer
414 414
      *
415 415
      * @since 1.0
416 416
      */
Please login to merge, or discard this patch.
Alpha/Util/Cache/CacheProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @throws Alpha\Exception\IllegalArguementException
69 69
      *
70
-     * @return Alpha\Util\Cache\CacheProviderInterface
70
+     * @return CacheProviderInterface|null
71 71
      *
72 72
      * @since 1.1
73 73
      */
Please login to merge, or discard this patch.
Alpha/Util/Code/Highlight/HighlightProviderFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      *
68 68
      * @throws Alpha\Exception\IllegalArguementException
69 69
      *
70
-     * @return Alpha\Util\Code\Highlight\HighlightProviderInterface
70
+     * @return HighlightProviderInterface|null
71 71
      *
72 72
      * @since 1.2
73 73
      */
Please login to merge, or discard this patch.
Alpha/Util/Config/ConfigProvider.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     /**
116 116
      * Get config value.
117 117
      *
118
-     * @param $key string
118
+     * @param string $key string
119 119
      *
120 120
      * @return string
121 121
      *
Please login to merge, or discard this patch.