@@ -171,7 +171,7 @@ |
||
| 171 | 171 | $relese = $github_controller->listRepositories($owner, $repository, $order_id); |
| 172 | 172 | |
| 173 | 173 | return ['release'=>$relese, 'type'=>'github']; |
| 174 | - } elseif ($file){ |
|
| 174 | + } elseif ($file) { |
|
| 175 | 175 | //If the Product is Downloaded from FileSystem |
| 176 | 176 | $fileName = $file->file; |
| 177 | 177 | $relese = storage_path().'/products'.'//'.$fileName; //For Local Server |
@@ -166,12 +166,13 @@ |
||
| 166 | 166 | |
| 167 | 167 | public function getRelease($owner, $repository, $order_id, $file) |
| 168 | 168 | { |
| 169 | - if ($owner && $repository) {//If the Product is downloaded from Github |
|
| 169 | + if ($owner && $repository) { |
|
| 170 | +//If the Product is downloaded from Github |
|
| 170 | 171 | $github_controller = new \App\Http\Controllers\Github\GithubController(); |
| 171 | 172 | $relese = $github_controller->listRepositories($owner, $repository, $order_id); |
| 172 | 173 | |
| 173 | 174 | return ['release'=>$relese, 'type'=>'github']; |
| 174 | - } elseif ($file){ |
|
| 175 | + } elseif ($file) { |
|
| 175 | 176 | //If the Product is Downloaded from FileSystem |
| 176 | 177 | $fileName = $file->file; |
| 177 | 178 | $relese = storage_path().'/products'.'//'.$fileName; //For Local Server |