Skip to content

Commit

Permalink
compatibility with windows
Browse files Browse the repository at this point in the history
  • Loading branch information
summerblue committed Nov 9, 2017
1 parent ff0b99b commit 8f1ddaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Makes/MakerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function getFilesRecursive($path)
*/
protected function getStubPath()
{
return substr(__DIR__,0, -5) . 'Stubs/';
return substr(__DIR__,0, -5) . 'Stubs' . DIRECTORY_SEPARATOR;
}

/**
Expand All @@ -100,7 +100,7 @@ protected function getStubPath()
*/
protected function getStubFields($ui, $type)
{
$stubsFieldsPath= $this->getStubPath()."views/$ui/fields/$type/";
$stubsFieldsPath = $this->getStubPath() . join(DIRECTORY_SEPARATOR, ['views', $ui, 'fields', $type, '']);

if($this->existsDirectory($stubsFieldsPath))
{
Expand All @@ -127,7 +127,7 @@ protected function getStubFields($ui, $type)
*/
protected function getStubViews($ui)
{
$viewsPath = $this->getStubPath()."views/$ui/pages/";
$viewsPath = $this->getStubPath() . join(DIRECTORY_SEPARATOR, ['views', $ui, 'pages', '']);
$files = $this->getFilesRecursive($viewsPath);
$viewFiles = [];

Expand Down

0 comments on commit 8f1ddaf

Please sign in to comment.