| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function run() |
||
| 27 | { |
||
| 28 | // read the template file |
||
| 29 | $this->headerMarkdownContent = file_get_contents(app_path(self::TEMPLATE_PATH . 'header.template.md')); |
||
| 30 | |||
| 31 | $this->replace('api.domain.dev', Config::get('api.domain')); |
||
| 32 | $this->replace('{{rate-limit-expires}}', Config::get('hello.api.limit_expires')); |
||
| 33 | $this->replace('{{rate-limit}}', Config::get('hello.api.limit')); |
||
| 34 | $this->replace('{{token-expires}}', $this->minutesToTimeDisplay(Config::get('jwt.ttl'))); |
||
| 35 | $this->replace('{{token-expires-minutes}}', Config::get('jwt.ttl')); |
||
| 36 | $this->replace('{{pagination-limit}}', Config::get('repository.pagination.limit')); |
||
| 37 | |||
| 38 | // write the actual file |
||
| 39 | file_put_contents(public_path(self::OUTPUT_PATH . 'header.md'), $this->headerMarkdownContent); |
||
| 40 | } |
||
| 41 | |||
| 43 |