| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 15 | protected function setTemporaryPath($path) { |
||
| 16 | $this->envPath = $path; |
||
| 17 | Filesystem::makeFolder($this->envPath); |
||
| 18 | $this->envPath = realpath($this->envPath); |
||
| 19 | Injector::inst()->load(array( |
||
| 20 | 'DNData' => array( |
||
| 21 | 'properties' => array( |
||
| 22 | 'EnvironmentDir' => $this->envPath, |
||
| 23 | 'KeyDir' => TEMP_FOLDER .'/deploynaut_test/gitkeys', |
||
| 24 | 'DataTransferDir' => Director::baseFolder() . '/assets/transfers', |
||
| 25 | 'GitUser' => '' |
||
| 26 | ) |
||
| 27 | ) |
||
| 28 | )); |
||
| 29 | } |
||
| 30 | |||
| 62 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.