Skip to content

Commit dcb4919

Browse files
authored
Update documentation (#382)
* Added docs how to contibute * Updated features and other docs * More cleanup and docs * Added some missing docs * syntax and style on shell * Made some "design" changes * Added tests for the docs configuration * Added reference configuration * Added better tests and more content * cs * update config * Make Configuration final and remove method not used * Docs update * fixes * minor
1 parent b7c4a66 commit dcb4919

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Configuration.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @author Tobias Nyholm <[email protected]>
1313
* @author Jérémy Derussé <[email protected]>
1414
*/
15-
class Configuration
15+
final class Configuration
1616
{
1717
public const OPTION_REGION = 'region';
1818
public const OPTION_PROFILE = 'profile';
@@ -126,13 +126,4 @@ public function has(string $name): bool
126126

127127
return isset($this->data[$name]);
128128
}
129-
130-
public function isDefault(string $name): bool
131-
{
132-
if (!isset(self::AVAILABLE_OPTIONS[$name])) {
133-
throw new InvalidArgument(\sprintf('Invalid option "%s" passed to "%s::%s". ', $name, __CLASS__, __METHOD__));
134-
}
135-
136-
return isset($this->data[$name], self::DEFAULT_OPTIONS[$name]) && $this->data[$name] === self::DEFAULT_OPTIONS[$name];
137-
}
138129
}

0 commit comments

Comments
 (0)