| @@ 37-45 (lines=9) @@ | ||
| 34 | */ |
|
| 35 | public function checkPaths() |
|
| 36 | { |
|
| 37 | if (empty($this->options['rootDir'])) { |
|
| 38 | $this->options['rootDir'] .= '/'; |
|
| 39 | } else { |
|
| 40 | $rootDirPosLastChar = strlen($this->options['rootDir']) - 1; |
|
| 41 | ||
| 42 | if ($this->options['rootDir'][$rootDirPosLastChar] !== '/') { |
|
| 43 | $this->options['rootDir'] .= '/'; |
|
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| 47 | if (empty($this->options['vendorDir'])) { |
|
| 48 | $this->options['vendorDir'] .= '/'; |
|
| @@ 47-55 (lines=9) @@ | ||
| 44 | } |
|
| 45 | } |
|
| 46 | ||
| 47 | if (empty($this->options['vendorDir'])) { |
|
| 48 | $this->options['vendorDir'] .= '/'; |
|
| 49 | } else { |
|
| 50 | $vendorDirPosLastChar = strlen($this->options['vendorDir']) - 1; |
|
| 51 | ||
| 52 | if ($this->options['vendorDir'][$vendorDirPosLastChar] !== '/') { |
|
| 53 | $this->options['vendorDir'] .= '/'; |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ||
| 57 | return $this; |
|
| 58 | } |
|