Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit authored and github-actions[bot] committed Jan 9, 2024
1 parent c19f7fe commit c44cbde
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use CSlant\LaravelGenerator\Helpers\ConfigHelper;
use CSlant\LaravelGenerator\Http\Controllers\Asset\AssetController;
use CSlant\LaravelGenerator\Http\Controllers\Generator\RepositoryGeneratorController;
use CSlant\LaravelGenerator\Http\Controllers\LaravelGeneratorController;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Route::namespace('CSlant\LaravelGenerator\Http\Controllers')->group(function () {
$configRepository = resolve(ConfigHelper::class);
Expand Down
1 change: 1 addition & 0 deletions src/Helpers/ConfigHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private function mergeConfig(array $defaults, array $generatorName): array
&& $this->isAssociativeArray($value)
) {
$merged[$key] = $this->mergeConfig($defaults[$key], $value);

continue;
}

Expand Down
4 changes: 4 additions & 0 deletions src/Http/Controllers/Detect/DetectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,19 @@ protected function getClassType(ReflectionClass $class): string
switch (true) {
case $this->isRepositoryClass($class):
$type = 'repository';

break;
case $this->isServiceClass($class):
$type = 'service';

break;
case $this->isControllerClass($class):
$type = 'controller';

break;
case $this->isActionClass($class):
$type = 'action';

break;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace CSlant\LaravelGenerator\Http\Controllers\Generator;

use Illuminate\Support\Str;
use CSlant\LaravelGenerator\Http\Controllers\Detect\DetectController;
use Illuminate\Support\Str;

class RepositoryGeneratorController extends GeneratorController
{
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/LaravelGeneratorController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace CSlant\LaravelGenerator\Http\Controllers;

use CSlant\LaravelGenerator\Http\Controllers\Detect\DetectController;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use CSlant\LaravelGenerator\Http\Controllers\Detect\DetectController;

class LaravelGeneratorController extends Controller
{
Expand Down
1 change: 0 additions & 1 deletion src/Providers/LaravelGeneratorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace CSlant\LaravelGenerator\Providers;

use Illuminate\Support\ServiceProvider;
use CSlant\LaravelGenerator\Helpers\ConfigHelper;

class LaravelGeneratorServiceProvider extends ServiceProvider
{
Expand Down

0 comments on commit c44cbde

Please sign in to comment.