Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Commands/PublishTemplateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function publishScaffoldTemplates()

$templatesPath = base_path('vendor/infyomlabs/'.$templateType.'/templates/scaffold');

return $this->publishDirectory($templatesPath, $this->templatesDir."/scaffold", 'infyom-generator-templates/scaffold', true);
return $this->publishDirectory($templatesPath, $this->templatesDir.'/scaffold', 'infyom-generator-templates/scaffold', true);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/API/APIControllerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class APIControllerGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/API/APIRequestGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class APIRequestGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/API/APIRoutesGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class APIRoutesGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/API/APITestGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class APITestGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/MigrationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class MigrationGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/ModelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class ModelGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/RepositoryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class RepositoryGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/RepositoryTestGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class RepositoryTestGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Scaffold/ControllerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class ControllerGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Scaffold/RequestGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class RequestGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Scaffold/RoutesGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class RoutesGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/Scaffold/ViewGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class ViewGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
2 changes: 1 addition & 1 deletion src/Generators/TestTraitGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class TestTraitGenerator
{
/** @var CommandData */
/** @var CommandData */
private $commandData;

/** @var string */
Expand Down
15 changes: 9 additions & 6 deletions src/helpers.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php

if (! function_exists('infy_tab')) {
if (!function_exists('infy_tab')) {
/**
* Generates tab with spaces
* Generates tab with spaces.
*
* @param int $spaces
*
* @return string
*/
function infy_tab($spaces = 4)
Expand All @@ -13,11 +14,12 @@ function infy_tab($spaces = 4)
}
}

if (! function_exists('infy_nl')) {
if (!function_exists('infy_nl')) {
/**
* Generates new line char
* Generates new line char.
*
* @param int $count
*
* @return string
*/
function infy_nl($count = 1)
Expand All @@ -26,12 +28,13 @@ function infy_nl($count = 1)
}
}

if (! function_exists('infy_nl_tab')) {
if (!function_exists('infy_nl_tab')) {
/**
* Generates new line char
* Generates new line char.
*
* @param int $lns
* @param int $tabs
*
* @return string
*/
function infy_nl_tab($lns = 1, $tabs = 1)
Expand Down