Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hydephp/framework
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 28, 2022
2 parents 7630530 + 83919b2 commit 3a3c40e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Services/StarterFileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class StarterFileService
{
/**
* Mapping of the source file to the destination file.
* ['vendorPath' => 'hydePath']
* ['vendorPath' => 'hydePath'].
*/
public static array $files = [
'resources\views\homepages\welcome.blade.php' => '_pages\index.blade.php',
Expand All @@ -22,7 +22,7 @@ class StarterFileService
/**
* Publish all the starter files.
*/
public static function publish() : void
public static function publish(): void
{
$files = static::$files;
foreach ($files as $source => $file) {
Expand All @@ -33,9 +33,8 @@ public static function publish() : void
/**
* Publish a single starter file.
*/
protected static function publishFile(string $from, string $to) : void
protected static function publishFile(string $from, string $to): void
{
Hyde::copy(Hyde::vendorPath($from), Hyde::path($to));
}

}
}

0 comments on commit 3a3c40e

Please sign in to comment.