@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * Gets a parser for a given file extension |
| 138 | 138 | * |
| 139 | 139 | * @param string $ext |
| 140 | - * @return Konfig\FileParser |
|
| 140 | + * @return FileParser |
|
| 141 | 141 | * @throws UnsupportedFileFormatException If `$path` is an unsupported file format |
| 142 | 142 | */ |
| 143 | 143 | private function getParser($ext) |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Exception\Exception; |
|
| 16 | 15 | use Exen\Konfig\Exception\EmptyDirectoryException; |
| 16 | +use Exen\Konfig\Exception\Exception; |
|
| 17 | 17 | use Exen\Konfig\Exception\FileNotFoundException; |
| 18 | 18 | use Exen\Konfig\Exception\UnsupportedFileFormatException; |
| 19 | 19 | |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | * Un-sets dot-notated key from an array |
| 181 | 181 | * |
| 182 | 182 | * @param array $array The search array |
| 183 | - * @param mixed $key The dot-notated key or array of keys |
|
| 183 | + * @param string $key The dot-notated key or array of keys |
|
| 184 | 184 | * @return mixed |
| 185 | 185 | * @since 0.1.0 |
| 186 | 186 | */ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | /** |
| 64 | 64 | * Returns the formatted configuration file contents. |
| 65 | 65 | * |
| 66 | - * @param array $content configuration array |
|
| 66 | + * @param array $contents configuration array |
|
| 67 | 67 | * @return string formatted configuration file contents |
| 68 | 68 | * @since 0.2.4 |
| 69 | 69 | * @codeCoverageIgnore |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | 15 | use Exen\Konfig\Exception\Exception; |
| 17 | 16 | use Exen\Konfig\Exception\ParseException; |
| 17 | +use Exen\Konfig\Utils; |
|
| 18 | 18 | |
| 19 | 19 | class Ini extends AbstractFileParser |
| 20 | 20 | { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | /** |
| 73 | 73 | * Returns the formatted configuration file contents. |
| 74 | 74 | * |
| 75 | - * @param array $content configuration array |
|
| 75 | + * @param array $contents configuration array |
|
| 76 | 76 | * @return string formatted configuration file contents |
| 77 | 77 | * @since 0.2.4 |
| 78 | 78 | * @codeCoverageIgnore |
@@ -12,9 +12,8 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | -use Exen\Konfig\Exception\Exception; |
|
| 17 | 15 | use Exen\Konfig\Exception\ParseException; |
| 16 | +use Exen\Konfig\Utils; |
|
| 18 | 17 | |
| 19 | 18 | class Json extends AbstractFileParser |
| 20 | 19 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Returns the formatted configuration file contents. |
| 72 | 72 | * |
| 73 | - * @param array $content configuration array |
|
| 73 | + * @param array $contents configuration array |
|
| 74 | 74 | * @return string formatted configuration file contents |
| 75 | 75 | * @since 0.2.4 |
| 76 | 76 | * @codeCoverageIgnore |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | 15 | use Exen\Konfig\Exception\Exception; |
| 17 | 16 | use Exen\Konfig\Exception\ParseException; |
| 17 | +use Exen\Konfig\Utils; |
|
| 18 | 18 | |
| 19 | 19 | use Nette\Neon\Neon as NeonParser; |
| 20 | 20 | |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | /** |
| 82 | 82 | * Returns the formatted configuration file contents. |
| 83 | 83 | * |
| 84 | - * @param array $content configuration array |
|
| 84 | + * @param array $contents configuration array |
|
| 85 | 85 | * @return string formatted configuration file contents |
| 86 | 86 | * @since 0.2.4 |
| 87 | 87 | * @codeCoverageIgnore |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | 15 | use Exen\Konfig\Exception\Exception; |
| 17 | 16 | use Exen\Konfig\Exception\ParseException; |
| 18 | 17 | use Exen\Konfig\Exception\UnsupportedFileFormatException; |
| 18 | +use Exen\Konfig\Utils; |
|
| 19 | 19 | |
| 20 | 20 | class Php extends AbstractFileParser |
| 21 | 21 | { |
@@ -179,6 +179,7 @@ discard block |
||
| 179 | 179 | /** |
| 180 | 180 | * {@inheritDoc} |
| 181 | 181 | * @codeCoverageIgnore |
| 182 | + * @param string $field |
|
| 182 | 183 | */ |
| 183 | 184 | private function deleteFields($field, $analysis) |
| 184 | 185 | { |
@@ -238,7 +239,7 @@ discard block |
||
| 238 | 239 | /** |
| 239 | 240 | * Returns the formatted configuration file contents. |
| 240 | 241 | * |
| 241 | - * @param array $content configuration array |
|
| 242 | + * @param array $contents configuration array |
|
| 242 | 243 | * @return string formatted configuration file contents |
| 243 | 244 | * @since 0.2.4 |
| 244 | 245 | * @codeCoverageIgnore |
@@ -13,9 +13,9 @@ |
||
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | 15 | use Exen\Konfig\Arr; |
| 16 | -use Exen\Konfig\Utils; |
|
| 17 | 16 | use Exen\Konfig\Exception\Exception; |
| 18 | 17 | use Exen\Konfig\Exception\ParseException; |
| 18 | +use Exen\Konfig\Utils; |
|
| 19 | 19 | |
| 20 | 20 | class Properties extends AbstractFileParser |
| 21 | 21 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | /** |
| 71 | 71 | * Returns the formatted configuration file contents. |
| 72 | 72 | * |
| 73 | - * @param array $content configuration array |
|
| 73 | + * @param array $contents configuration array |
|
| 74 | 74 | * @return string formatted configuration file contents |
| 75 | 75 | * @since 0.2.4 |
| 76 | 76 | * @codeCoverageIgnore |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | 15 | use Exen\Konfig\Exception\Exception; |
| 17 | 16 | use Exen\Konfig\Exception\ParseException; |
| 17 | +use Exen\Konfig\Utils; |
|
| 18 | 18 | |
| 19 | 19 | use Yosymfony\Toml\Toml as TomlLib; |
| 20 | 20 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * Loads in the given file and parses it. |
| 59 | 59 | * |
| 60 | 60 | * @param string $file File to load |
| 61 | - * @return array |
|
| 61 | + * @return \SimpleXMLElement |
|
| 62 | 62 | * @since 0.2.4 |
| 63 | 63 | * @codeCoverageIgnore |
| 64 | 64 | */ |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Returns the formatted configuration file contents. |
| 78 | 78 | * |
| 79 | - * @param array $content configuration array |
|
| 79 | + * @param array $contents configuration array |
|
| 80 | 80 | * @return string formatted configuration file contents |
| 81 | 81 | * @since 0.2.4 |
| 82 | 82 | * @codeCoverageIgnore |
@@ -12,9 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Exen\Konfig\FileParser; |
| 14 | 14 | |
| 15 | -use Exen\Konfig\Utils; |
|
| 16 | 15 | use Exen\Konfig\Exception\Exception; |
| 17 | 16 | use Exen\Konfig\Exception\ParseException; |
| 17 | +use Exen\Konfig\Utils; |
|
| 18 | 18 | |
| 19 | 19 | class Xml extends AbstractFileParser |
| 20 | 20 | { |