@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @param alpha\Util\Http\Request $request |
| 98 | 98 | * |
| 99 | - * @return alpha\Util\Http\Response |
|
| 99 | + * @return Response |
|
| 100 | 100 | * |
| 101 | 101 | * @since 1.0 |
| 102 | 102 | */ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | * |
| 121 | 121 | * @param alpha\Util\Http\Request $request |
| 122 | 122 | * |
| 123 | - * @return alpha\Util\Http\Response |
|
| 123 | + * @return Response |
|
| 124 | 124 | * |
| 125 | 125 | * @since 1.0 |
| 126 | 126 | */ |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Alpha\Model\Type\Integer; |
| 6 | 6 | use Alpha\Model\Type\Timestamp; |
| 7 | -use Alpha\Model\Type\Enum; |
|
| 8 | 7 | use Alpha\Model\Type\Relation; |
| 9 | 8 | use Alpha\Util\Config\ConfigProvider; |
| 10 | 9 | use Alpha\Util\Logging\Logger; |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | /** |
| 317 | 317 | * Populates the child object from the database table by the given attribute value. |
| 318 | 318 | * |
| 319 | - * @param string $atribute The name of the attribute to load the object by. |
|
| 319 | + * @param string $attribute The name of the attribute to load the object by. |
|
| 320 | 320 | * @param string $value The value of the attribute to load the object by. |
| 321 | 321 | * @param bool $ignoreClassType Default is false, set to true if you want to load from overloaded tables and ignore the class type |
| 322 | 322 | * @param array $loadAttributes The attributes to load from the database to this object (leave blank to load all attributes) |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | /** |
| 393 | 393 | * Loads all of the objects of this class by the specified attribute into an array which is returned. |
| 394 | 394 | * |
| 395 | - * @param string $atribute The attribute to load the objects by. |
|
| 395 | + * @param string $attribute The attribute to load the objects by. |
|
| 396 | 396 | * @param string $value The value of the attribute to load the objects by. |
| 397 | 397 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 398 | 398 | * @param int $limit The amount (limit) of objects to load, useful for pagination. |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | /** |
| 434 | 434 | * Loads all of the objects of this class by the specified attributes into an array which is returned. |
| 435 | 435 | * |
| 436 | - * @param array $atributes The attributes to load the objects by. |
|
| 436 | + * @param array $attributes The attributes to load the objects by. |
|
| 437 | 437 | * @param array $values The values of the attributes to load the objects by. |
| 438 | 438 | * @param int $start The start of the SQL LIMIT clause, useful for pagination. |
| 439 | 439 | * @param int $limit The amount (limit) of objects to load, useful for pagination. |
@@ -1089,7 +1089,7 @@ discard block |
||
| 1089 | 1089 | /** |
| 1090 | 1090 | * Gets the count from the database for the amount of objects of this class. |
| 1091 | 1091 | * |
| 1092 | - * @param array $atributes The attributes to count the objects by (optional). |
|
| 1092 | + * @param array $attributes The attributes to count the objects by (optional). |
|
| 1093 | 1093 | * @param array $values The values of the attributes to count the objects by (optional). |
| 1094 | 1094 | * |
| 1095 | 1095 | * @return int |
@@ -1162,7 +1162,7 @@ discard block |
||
| 1162 | 1162 | * to be overridden in case you want to do something different with the ID of your objects outside |
| 1163 | 1163 | * of the standard 11 digit OID sequence used internally in Alpha. |
| 1164 | 1164 | * |
| 1165 | - * @return int 11 digit zero-padded OID value. |
|
| 1165 | + * @return string 11 digit zero-padded OID value. |
|
| 1166 | 1166 | * |
| 1167 | 1167 | * @since 1.0 |
| 1168 | 1168 | */ |
@@ -1179,7 +1179,7 @@ discard block |
||
| 1179 | 1179 | * Gets the OID for the object in zero-padded format (same as getID()). This version is final so cannot |
| 1180 | 1180 | * be overridden. |
| 1181 | 1181 | * |
| 1182 | - * @return int 11 digit zero-padded OID value. |
|
| 1182 | + * @return string 11 digit zero-padded OID value. |
|
| 1183 | 1183 | * |
| 1184 | 1184 | * @since 1.0 |
| 1185 | 1185 | */ |
@@ -1742,7 +1742,6 @@ discard block |
||
| 1742 | 1742 | * @param string $attributeName The name of the attribute to apply the index on. |
| 1743 | 1743 | * @param string $relatedClass The name of the related class in the format "NameObject". |
| 1744 | 1744 | * @param string $relatedClassAttribute The name of the field to relate to on the related class. |
| 1745 | - * @param bool $allowNullValues For foreign key indexes that don't allow null values, set this to false (default is true). |
|
| 1746 | 1745 | * @param string $indexName The optional name for the index, will calculate if not provided. |
| 1747 | 1746 | * |
| 1748 | 1747 | * @since 1.0 |
@@ -2180,7 +2179,7 @@ discard block |
||
| 2180 | 2179 | /** |
| 2181 | 2180 | * Starts a new database transaction. |
| 2182 | 2181 | * |
| 2183 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2182 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2184 | 2183 | * |
| 2185 | 2184 | * @since 1.0 |
| 2186 | 2185 | * |
@@ -2213,7 +2212,7 @@ discard block |
||
| 2213 | 2212 | /** |
| 2214 | 2213 | * Commits the current database transaction. |
| 2215 | 2214 | * |
| 2216 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2215 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2217 | 2216 | * |
| 2218 | 2217 | * @since 1.0 |
| 2219 | 2218 | * |
@@ -2246,7 +2245,7 @@ discard block |
||
| 2246 | 2245 | /** |
| 2247 | 2246 | * Aborts the current database transaction. |
| 2248 | 2247 | * |
| 2249 | - * @param $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2248 | + * @param ActiveRecord $BO The ActiveRecord instance to pass to the database provider. Leave empty to have a new Person passed. |
|
| 2250 | 2249 | * |
| 2251 | 2250 | * @since 1.0 |
| 2252 | 2251 | * |
@@ -2417,7 +2416,7 @@ discard block |
||
| 2417 | 2416 | /** |
| 2418 | 2417 | * Check to see if an attribute exists on the BO. |
| 2419 | 2418 | * |
| 2420 | - * @param $attribute The attribute name. |
|
| 2419 | + * @param string $attribute The attribute name. |
|
| 2421 | 2420 | * |
| 2422 | 2421 | * @return bool |
| 2423 | 2422 | * |
@@ -2383,7 +2383,7 @@ |
||
| 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 | * |
@@ -435,7 +435,7 @@ |
||
| 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 | */ |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | use Alpha\Model\Type\Boolean; |
| 9 | 9 | use Alpha\Model\Type\Relation; |
| 10 | 10 | use Alpha\Util\Logging\Logger; |
| 11 | -use Alpha\Util\Config\Configprovider; |
|
| 12 | 11 | use Alpha\Util\Http\Session\SessionProviderFactory; |
| 13 | 12 | use Alpha\Exception\ValidationException; |
| 14 | 13 | use Alpha\Exception\FileNotFoundException; |
@@ -338,7 +338,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | */ |
@@ -115,7 +115,7 @@ |
||
| 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 | * |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | * @param string $sourceDir The path to the source directory. |
| 542 | 542 | * @param string $fileList The HTML list of files generated (pass by reference). |
| 543 | 543 | * @param int $fileCount The current file count (used in recursive calls). |
| 544 | - * @param array $excludeFiles An array of file names to exclude from the list rendered. |
|
| 544 | + * @param string[] $excludeFiles An array of file names to exclude from the list rendered. |
|
| 545 | 545 | * |
| 546 | 546 | * @return int The current filecount for the directory. |
| 547 | 547 | * |
@@ -578,7 +578,7 @@ discard block |
||
| 578 | 578 | * Recursively deletes the contents of the directory indicated (the directory itself is not deleted). |
| 579 | 579 | * |
| 580 | 580 | * @param string $sourceDir The path to the source directory. |
| 581 | - * @param array $excludeFiles An array of file names to exclude from the deletion. |
|
| 581 | + * @param string[] $excludeFiles An array of file names to exclude from the deletion. |
|
| 582 | 582 | * |
| 583 | 583 | * @throws Alpha\Exception\AlphaException |
| 584 | 584 | * |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | /** |
| 285 | 285 | * Get the node offset. |
| 286 | 286 | * |
| 287 | - * @return string |
|
| 287 | + * @return integer |
|
| 288 | 288 | * |
| 289 | 289 | * @since 1.0 |
| 290 | 290 | */ |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | /** |
| 461 | 461 | * Calculates and returns the midpoint X coordinate of the children of this node. |
| 462 | 462 | * |
| 463 | - * @return int |
|
| 463 | + * @return double |
|
| 464 | 464 | * |
| 465 | 465 | * @since 1.0 |
| 466 | 466 | */ |
@@ -50,6 +50,7 @@ discard block |
||
| 50 | 50 | * Starts a new session, or resumes an existing session if there is already a session ID available. |
| 51 | 51 | * |
| 52 | 52 | * @since 2.0 |
| 53 | + * @return void |
|
| 53 | 54 | */ |
| 54 | 55 | public function init(); |
| 55 | 56 | |
@@ -57,13 +58,14 @@ discard block |
||
| 57 | 58 | * Destroys the current session. |
| 58 | 59 | * |
| 59 | 60 | * @since 2.0 |
| 61 | + * @return void |
|
| 60 | 62 | */ |
| 61 | 63 | public function destroy(); |
| 62 | 64 | |
| 63 | 65 | /** |
| 64 | 66 | * Get the key value from the session. Returns false if nothing is found. |
| 65 | 67 | * |
| 66 | - * @param $key |
|
| 68 | + * @param string $key |
|
| 67 | 69 | * |
| 68 | 70 | * @since 2.0 |
| 69 | 71 | * |
@@ -78,6 +80,7 @@ discard block |
||
| 78 | 80 | * @param mixed $value |
| 79 | 81 | * |
| 80 | 82 | * @since 2.0 |
| 83 | + * @return void |
|
| 81 | 84 | */ |
| 82 | 85 | public function set($key, $value); |
| 83 | 86 | |
@@ -85,9 +88,9 @@ discard block |
||
| 85 | 88 | * Deletes the value provided at that key in the session. |
| 86 | 89 | * |
| 87 | 90 | * @param string $key |
| 88 | - * @param mixed $value |
|
| 89 | 91 | * |
| 90 | 92 | * @since 2.0 |
| 93 | + * @return void |
|
| 91 | 94 | */ |
| 92 | 95 | public function delete($key); |
| 93 | 96 | |