Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
30 | protected function doExecute() |
||
31 | { |
||
32 | if(!$this->app["config"]["develmode"]) { |
||
33 | $this->dialogProvider->logWarning('develmode=false, You do not have xip.io urls when your develmode is set to false'); |
||
34 | return; |
||
35 | } |
||
36 | $rows = array(); |
||
37 | $ip = $this->getIP(); |
||
38 | $projects = $this->fileSystemProvider->getProjects(); |
||
39 | foreach($projects as $key => $projectFile) { |
||
40 | $projectname = $projectFile->getFilename(); |
||
41 | $rows[] = array($projectname, 'http://'.$projectname.'.'.$ip.'.xip.io'); |
||
42 | } |
||
43 | $this->dialogProvider->renderTable(array('Project', 'URL'), $rows); |
||
44 | } |
||
45 | |||
62 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.