Completed
Push — master ( fb1d6e...6fc5bf )
by Václav
02:27
created
src/Utils/Strings.php 3 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.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: uruba
5
- * Date: 2/15/2016
6
- * Time: 2:54 PM
7
- */
3
+     * Created by PhpStorm.
4
+     * User: uruba
5
+     * Date: 2/15/2016
6
+     * Time: 2:54 PM
7
+     */
8 8
 
9 9
 namespace FinanCalc\Utils {
10 10
 
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/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.
src/init/autoloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-spl_autoload_register(function ($class) {
3
+spl_autoload_register(function($class) {
4 4
     $exploded_class = explode("\\", $class);
5 5
 
6 6
     if (count($exploded_class) > 1) {
@@ -12,9 +12,9 @@  discard block
 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/Utils/Serializers/XMLSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             $domDocument->appendChild($rootElem);
30 30
 
31 31
             $funcArrayToXML =
32
-                function (\DOMElement $parentNode, $inputArray)
32
+                function(\DOMElement $parentNode, $inputArray)
33 33
                 use ($domDocument, &$funcArrayToXML) {
34 34
                     foreach ($inputArray as $key => $value) {
35 35
                         $key = preg_replace('/(^[0-9])/', '_\1', str_replace(' ', '_', $key));
Please login to merge, or discard this patch.
src/Utils/Lambdas.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
          */
14 14
         public static function checkIfNotNegative()
15 15
         {
16
-            return function ($param) {
16
+            return function($param) {
17 17
                 Helpers::checkIfNotNegativeNumberOrThrowAnException($param);
18 18
             };
19 19
         }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
          */
24 24
         public static function checkIfPositive()
25 25
         {
26
-            return function ($param) {
26
+            return function($param) {
27 27
                 Helpers::checkIfPositiveNumberOrThrowAnException($param);
28 28
             };
29 29
         }
Please login to merge, or discard this patch.
src/FinanCalc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 
125 125
         private function populateFactoryClassesArray()
126 126
         {
127
-            $factoryFiles = glob(FinanCalc::getPath() . Config::getConfigField('factories_relative_path') . '/*.php');
127
+            $factoryFiles = glob(FinanCalc::getPath().Config::getConfigField('factories_relative_path').'/*.php');
128 128
             $factoriesNamespace = Config::getConfigField('factories_namespace');
129 129
 
130 130
             foreach ($factoryFiles as $factoryFile) {
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
                 $fileTokens = token_get_all($factoryFileContents);
133 133
 
134 134
                 for ($i = 2; $i < count($fileTokens); $i++) {
135
-                    if ($fileTokens[$i - 2][0] == T_CLASS) {
135
+                    if ($fileTokens[$i-2][0] == T_CLASS) {
136 136
                         $factoryClassName = $fileTokens[$i][1];
137 137
                         try {
138 138
                             /** @noinspection PhpIncludeInspection */
139 139
                             require_once($factoryFile);
140
-                            $factoryClassReflector = new ReflectionClass($factoriesNamespace . '\\' . $factoryClassName);
140
+                            $factoryClassReflector = new ReflectionClass($factoriesNamespace.'\\'.$factoryClassName);
141 141
                         } catch (ReflectionException $e) {
142 142
                             error_log(ErrorMessages::getFactoryClassExpectedInNamespaceMessage($factoryClassName,
143 143
                                 $factoriesNamespace));
Please login to merge, or discard this patch.
src/Interfaces/Calculator/CalculatorAbstract.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,11 +53,11 @@
 block discarded – undo
53 53
                 }
54 54
             }
55 55
 
56
-            $processArray = function ($inputArray) use (&$processArray) {
56
+            $processArray = function($inputArray) use (&$processArray) {
57 57
                 $processedArray = array();
58 58
                 foreach ($inputArray as $key => $prop) {
59 59
                     if (is_string($prop)) {
60
-                        $propGetter = "get" . ucfirst($prop);
60
+                        $propGetter = "get".ucfirst($prop);
61 61
                         if (method_exists($this, $propGetter)) {
62 62
                             $processedArray[is_string($key) ? $key : $prop] = call_user_func(array($this, $propGetter));
63 63
                         } else {
Please login to merge, or discard this patch.