| Conditions | 5 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 6 | ||
| Bugs | 0 | Features | 5 |
| 1 | <?php |
||
| 38 | public function clean() |
||
| 39 | { |
||
| 40 | foreach ($this->properties as $name => $value) { |
||
| 41 | if ($this->reflection->hasProperty($name)) { |
||
| 42 | $property = $this->reflection->getProperty($name); |
||
| 43 | if ($property->isStatic()) { |
||
| 44 | if (!$property->isPublic()) { |
||
| 45 | $property->setAccessible(true); |
||
| 46 | } |
||
| 47 | $property->setValue($value); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 | $this->currentApp->forgetInstance(self::ADMIN_CLASS); |
||
| 52 | Facade::clearResolvedInstance(self::ADMIN_CLASS); |
||
| 53 | } |
||
| 54 | } |