@@ -1,32 +1,32 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * FinanCalc |
|
4 | - * |
|
5 | - * A lightweight, simple and easy PHP library for calculating annuities (e.g., mortgages) |
|
6 | - * and other financial instruments according to various input data |
|
7 | - * |
|
8 | - * |
|
9 | - * DISCLAIMER |
|
10 | - * You are free to use/modify/extend the library as you please - for it to serve your purpose. |
|
11 | - * As per the (un)license, the software is provided as is and the original author cannot be held liable |
|
12 | - * for any losses/damages directly or indirectly resulting from using thereof. |
|
13 | - * Attribution is welcome, but certainly not required. |
|
14 | - * |
|
15 | - * NOTE |
|
16 | - * The library is currently work-in-progress and it is certain that new features will be added in the process. |
|
17 | - * Consider this, therefore, as a preview product prone to abrupt and extensive changes that may affect functionality |
|
18 | - * of an external code adapted to a prior version(s) of the library. |
|
19 | - * Always explore the provisional compatibility of the library with your project in case you upgrade to a new version |
|
20 | - * of the library (by means of an extensive testing of the code in which you are exerting the library's features). |
|
21 | - * |
|
22 | - * PREREQUISITES |
|
23 | - * PHP 5.5+ |
|
24 | - * Module php-bcmath |
|
25 | - * |
|
26 | - * @author Václav Uruba |
|
27 | - * @version 0.3 |
|
28 | - * @license http://unlicense.org The Unlicense |
|
29 | - */ |
|
3 | + * FinanCalc |
|
4 | + * |
|
5 | + * A lightweight, simple and easy PHP library for calculating annuities (e.g., mortgages) |
|
6 | + * and other financial instruments according to various input data |
|
7 | + * |
|
8 | + * |
|
9 | + * DISCLAIMER |
|
10 | + * You are free to use/modify/extend the library as you please - for it to serve your purpose. |
|
11 | + * As per the (un)license, the software is provided as is and the original author cannot be held liable |
|
12 | + * for any losses/damages directly or indirectly resulting from using thereof. |
|
13 | + * Attribution is welcome, but certainly not required. |
|
14 | + * |
|
15 | + * NOTE |
|
16 | + * The library is currently work-in-progress and it is certain that new features will be added in the process. |
|
17 | + * Consider this, therefore, as a preview product prone to abrupt and extensive changes that may affect functionality |
|
18 | + * of an external code adapted to a prior version(s) of the library. |
|
19 | + * Always explore the provisional compatibility of the library with your project in case you upgrade to a new version |
|
20 | + * of the library (by means of an extensive testing of the code in which you are exerting the library's features). |
|
21 | + * |
|
22 | + * PREREQUISITES |
|
23 | + * PHP 5.5+ |
|
24 | + * Module php-bcmath |
|
25 | + * |
|
26 | + * @author Václav Uruba |
|
27 | + * @version 0.3 |
|
28 | + * @license http://unlicense.org The Unlicense |
|
29 | + */ |
|
30 | 30 | namespace FinanCalc { |
31 | 31 | use Exception; |
32 | 32 | use FinanCalc\Constants\ErrorMessages; |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
53 | - * @param $configField [Name of the expected value as a string] |
|
53 | + * @param string $configField [Name of the expected value as a string] |
|
54 | 54 | * @return string [Concatenated message as a string] |
55 | 55 | */ |
56 | 56 | static function getConfigFieldNotFoundMessage($configField) { |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
65 | - * @param $propertyName [Name of the property as a string] |
|
65 | + * @param string $propertyName [Name of the property as a string] |
|
66 | 66 | * @param string $className [Name of the class as a string] |
67 | 67 | * @return string [Concatenated message as a string] |
68 | 68 | */ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $locale = Config::getConfigField("locale"); |
28 | 28 | } |
29 | 29 | |
30 | - $localePath = FinanCalc::getPath() . "/locale/$locale.php"; |
|
30 | + $localePath = FinanCalc::getPath()."/locale/$locale.php"; |
|
31 | 31 | |
32 | 32 | if (!file_exists($localePath)) { |
33 | 33 | return null; |