@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | * @property string $name |
| 19 | 19 | * @property \chillerlan\Filereader\Directory $directory |
| 20 | 20 | */ |
| 21 | -class File extends FSAbstract{ |
|
| 21 | +class File extends FSAbstract { |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * @var string |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @param \chillerlan\Filereader\Directory $directory |
| 38 | 38 | * @param string $name |
| 39 | 39 | */ |
| 40 | - public function __construct(FSDriverInterface $driver, Directory $directory, string $name){ |
|
| 40 | + public function __construct(FSDriverInterface $driver, Directory $directory, string $name) { |
|
| 41 | 41 | $this->filereader = $driver; |
| 42 | 42 | $this->directory = $directory; |
| 43 | 43 | $this->name = $name; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * @return mixed |
| 63 | 63 | */ |
| 64 | - public function getRequire(){ |
|
| 64 | + public function getRequire() { |
|
| 65 | 65 | return $this->filereader->getRequire($this->path); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -84,11 +84,11 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function rename(string $newname, bool $overwrite = true):File{ |
| 86 | 86 | |
| 87 | - if(!$this->filereader->rename($this->path, $newname, $overwrite)){ |
|
| 87 | + if (!$this->filereader->rename($this->path, $newname, $overwrite)) { |
|
| 88 | 88 | throw new FilereaderException('cannot rename '.$this->path.' to '.$newname); // @codeCoverageIgnore |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - if(!$this->filereader->isFile($newname)){ |
|
| 91 | + if (!$this->filereader->isFile($newname)) { |
|
| 92 | 92 | throw new FilereaderException('file not found: '.$newname); // @codeCoverageIgnore |
| 93 | 93 | } |
| 94 | 94 | |