Completed
Push — master ( a2fb53...da4616 )
by arto
08:23
created
source/Autocomplete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
                 }
76 76
             }
77 77
         } else {
78
-            $indexLengthIsGreaterZero   = (strlen($index) > 0);
78
+            $indexLengthIsGreaterZero = (strlen($index) > 0);
79 79
 
80 80
             if ($indexLengthIsGreaterZero) {
81 81
                 $position   = strlen($index);
Please login to merge, or discard this patch.
source/Configuration/Assembler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         if ($validator->isValid($data)) {
32 32
             $configuration = $this->build($data);
33 33
         } else {
34
-            throw new InvalidArgument($validator->getMessage() . PHP_EOL . $validator->getTrace());
34
+            throw new InvalidArgument($validator->getMessage().PHP_EOL.$validator->getTrace());
35 35
         }
36 36
 
37 37
         return $configuration;
Please login to merge, or discard this patch.
source/Configuration/Validator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -67,19 +67,19 @@  discard block
 block discarded – undo
67 67
     private function validate($configuration, $path = null)
68 68
     {
69 69
         if (!is_array($configuration)) {
70
-            throw new InvalidArgument('configuration ' . (is_null($path) ? '' : ' in path "' . $path . '" ') . 'must be an array');
70
+            throw new InvalidArgument('configuration '.(is_null($path) ? '' : ' in path "'.$path.'" ').'must be an array');
71 71
         }
72 72
 
73 73
         if (empty($configuration)) {
74
-            throw new InvalidArgument('configuration ' . (is_null($path) ? '' : ' in path "' . $path . '" ') . 'can not be empty');
74
+            throw new InvalidArgument('configuration '.(is_null($path) ? '' : ' in path "'.$path.'" ').'can not be empty');
75 75
         }
76 76
 
77 77
         foreach ($configuration as $index => $arrayOrCallable) {
78
-            $currentPath = (is_null($path)) ? $index : $path . '/' . $index;
78
+            $currentPath = (is_null($path)) ? $index : $path.'/'.$index;
79 79
 
80 80
             if (is_string($arrayOrCallable)) {
81 81
                 if (!is_callable($arrayOrCallable)) {
82
-                    throw new InvalidArgument('method in path "' . $currentPath . '" must be callable');
82
+                    throw new InvalidArgument('method in path "'.$currentPath.'" must be callable');
83 83
                 }
84 84
             } else if (is_array($arrayOrCallable)) {
85 85
                 $object = current($arrayOrCallable);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
                     $methodName = $arrayOrCallable[1];
89 89
                     if (!method_exists($object, $methodName)) {
90 90
                         throw new InvalidArgument(
91
-                            'provided instance of "' . get_class($object) . '" in path "' . $currentPath . '" does not have the method "' . $methodName . '"'
91
+                            'provided instance of "'.get_class($object).'" in path "'.$currentPath.'" does not have the method "'.$methodName.'"'
92 92
                         );
93 93
                     }
94 94
                 } else {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             } else {
98 98
                 if ($this->isNotAnClosure($arrayOrCallable)) {
99 99
                     throw new InvalidArgument(
100
-                        'can not handle value "' . var_export($arrayOrCallable, true) . '" in path "' . $currentPath . '"'
100
+                        'can not handle value "'.var_export($arrayOrCallable, true).'" in path "'.$currentPath.'"'
101 101
                     );
102 102
                 }
103 103
             }
Please login to merge, or discard this patch.
source/DebugManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function setPathToLogFile($path)
20 20
     {
21 21
         $this->pathToLogFile = $path;
22
-        file_put_contents($this->pathToLogFile, '');    //truncating log
22
+        file_put_contents($this->pathToLogFile, ''); //truncating log
23 23
 
24 24
         return $this;
25 25
     }
@@ -32,6 +32,6 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $message = (is_scalar($message)) ? $message : var_export($message, true);
34 34
 
35
-        return file_put_contents($this->pathToLogFile, $message . PHP_EOL, FILE_APPEND);
35
+        return file_put_contents($this->pathToLogFile, $message.PHP_EOL, FILE_APPEND);
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.