@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | if (isset($array[$actualName]) || array_key_exists($actualName, $array)) { |
| 39 | 39 | return $this->isFlagSet($array[$actualName]); |
| 40 | 40 | } |
| 41 | - } else if(substr($name,0,3) === 'set'){ |
|
| 41 | + } else if (substr($name, 0, 3) === 'set') { |
|
| 42 | 42 | $actualName = substr($name, 3); |
| 43 | 43 | if (isset($array[$actualName]) || array_key_exists($actualName, $array)) { |
| 44 | 44 | return $this->setFlag($array[$actualName], $arguments[0]); |
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | - throw new BadMethodCallException(sprintf('Method %s not found on Class %s',$name, get_class($this))); |
|
| 47 | + throw new BadMethodCallException(sprintf('Method %s not found on Class %s', $name, get_class($this))); |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | public function getKey() |
| 83 | 83 | { |
| 84 | 84 | $value = $this->value; |
| 85 | - $f = array_filter(static::toArray(), function ( |
|
| 85 | + $f = array_filter(static::toArray(), function( |
|
| 86 | 86 | /** @noinspection PhpUnusedParameterInspection needed for function def */ $key) use (&$value) { |
| 87 | 87 | $isSet = $value & 1; |
| 88 | 88 | $value = $value >> 1; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | } |
| 107 | 107 | return $name . '[' . PHP_EOL . |
| 108 | 108 | $ret . |
| 109 | - ']'. PHP_EOL; |
|
| 109 | + ']' . PHP_EOL; |
|
| 110 | 110 | |
| 111 | 111 | } |
| 112 | 112 | |