Completed
Push — master ( 2488d3...8a2d7c )
by Václav
02:26
created
src/Utils/Strings.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         }
45 45
 
46 46
         /**
47
-         * @param $identifier
47
+         * @param string $identifier
48 48
          * @param $locale
49 49
          * @param null $formatArgs
50 50
          * @return string
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Utils/Time/TimeSpan.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,10 +199,10 @@
 block discarded – undo
199 199
         private function newDateIntervalAbsolute($years, $months, $days) {
200 200
             $this->setdateInterval(
201 201
                 new DateInterval(
202
-                    "P" .
203
-                    (string)$years . "Y" .
204
-                    (string)$months . "M" .
205
-                    (string)$days . "D"
202
+                    "P".
203
+                    (string)$years."Y".
204
+                    (string)$months."M".
205
+                    (string)$days."D"
206 206
                 )
207 207
             );
208 208
         }
Please login to merge, or discard this patch.
src/FinanCalc.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Calculators/AnnuityCalculator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,9 +60,9 @@
 block discarded – undo
60 60
          * @param $annuityInterest
61 61
          */
62 62
         function __construct($annuitySinglePaymentAmount,
63
-                             $annuityNoOfCompoundingPeriods,
64
-                             TimeSpan $annuityPeriodLength,
65
-                             $annuityInterest) {
63
+                                $annuityNoOfCompoundingPeriods,
64
+                                TimeSpan $annuityPeriodLength,
65
+                                $annuityInterest) {
66 66
             $this->setAnnuitySinglePaymentAmount($annuitySinglePaymentAmount);
67 67
             $this->setAnnuityNoOfCompoundingPeriods($annuityNoOfCompoundingPeriods);
68 68
             $this->setAnnuityPeriodLength($annuityPeriodLength);
Please login to merge, or discard this patch.
src/init/autoloader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     $relative_class_path = implode("/", $exploded_class);
13 13
 
14 14
     $absolute_class_path =
15
-        dirname(dirname(__FILE__)) .
16
-        '/' .
17
-        $relative_class_path .
15
+        dirname(dirname(__FILE__)).
16
+        '/'.
17
+        $relative_class_path.
18 18
         '.php';
19 19
 
20 20
     if (file_exists($absolute_class_path)) {
Please login to merge, or discard this patch.
src/Constants/ErrorMessages.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
          */
Please login to merge, or discard this patch.