@@ -109,7 +109,7 @@ |
||
109 | 109 | * @param string $params A serialized string with additional params that'll be passed to the configuration |
110 | 110 | * @param string $paramsFile A filename that contains serialized data with additional params that'll be passed to the configuration |
111 | 111 | * |
112 | - * @return void |
|
112 | + * @return \TechDivision\Import\ConfigurationInterface |
|
113 | 113 | */ |
114 | 114 | public function factoryFromDirectories(array $directories = array(), $format = 'json', $params = null, $paramsFile = null) |
115 | 115 | { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @param array $directories An array with diretories to parse |
59 | 59 | * |
60 | - * @return void |
|
60 | + * @return string |
|
61 | 61 | * @throws \Exception Is thrown if the configuration can not be loaded from the configuration files |
62 | 62 | */ |
63 | 63 | public function parse(array $directories) |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function serialize($data, $format, SerializationContext $context = null) |
97 | 97 | { |
98 | - if ( ! $this->serializationVisitors->containsKey($format)) { |
|
98 | + if (!$this->serializationVisitors->containsKey($format)) { |
|
99 | 99 | throw new UnsupportedFormatException(sprintf('The format "%s" is not supported for serialization.', $format)); |
100 | 100 | } |
101 | 101 | |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function deserialize($data, $type, $format, DeserializationContext $context = null) |
124 | 124 | { |
125 | - if ( ! $this->deserializationVisitors->containsKey($format)) { |
|
125 | + if (!$this->deserializationVisitors->containsKey($format)) { |
|
126 | 126 | throw new UnsupportedFormatException(sprintf('The format "%s" is not supported for deserialization.', $format)); |
127 | 127 | } |
128 | 128 | |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | ->map(function(JsonSerializationVisitor $visitor) use ($context, $data) { |
166 | 166 | $this->visit($visitor, $context, $data, 'json'); |
167 | 167 | $result = $this->convertArrayObjects($visitor->getRoot()); |
168 | - if ( ! is_array($result)) { |
|
168 | + if (!is_array($result)) { |
|
169 | 169 | throw new RuntimeException(sprintf( |
170 | 170 | 'The input data of type "%s" did not convert to an array, but got a result of type "%s".', |
171 | 171 | is_object($data) ? get_class($data) : gettype($data), |