Skip to content

Commit 80cf00f

Browse files
committed
Merge pull request #4 from KodiCMS/analysis-8A5998
Applied fixes from StyleCI
2 parents 2a1492b + 3a4d66f commit 80cf00f

4 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/Console/Commands/ModulesAssetsPublishCommand.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@
55
use Illuminate\Console\Command;
66
use League\Flysystem\MountManager;
77
use Illuminate\Filesystem\Filesystem;
8-
use Illuminate\Console\ConfirmableTrait;
98
use KodiCMS\ModulesLoader\ModuleContainer;
109
use League\Flysystem\Filesystem as Flysystem;
1110
use Illuminate\Contracts\Foundation\Application;
12-
use Symfony\Component\Console\Input\InputOption;
1311
use League\Flysystem\Adapter\Local as LocalAdapter;
1412

1513
class ModulesAssetsPublishCommand extends Command
@@ -51,8 +49,9 @@ public function fire(Application $app, Filesystem $files)
5149
/**
5250
* Publish the directory to the given directory.
5351
*
54-
* @param string $from
55-
* @param string $to
52+
* @param string $from
53+
* @param string $to
54+
*
5655
* @return void
5756
*/
5857
protected function publishDirectory($from, $to)
@@ -74,9 +73,10 @@ protected function publishDirectory($from, $to)
7473
/**
7574
* Write a status message to the console.
7675
*
77-
* @param string $from
78-
* @param string $to
79-
* @param string $type
76+
* @param string $from
77+
* @param string $to
78+
* @param string $type
79+
*
8080
* @return void
8181
*/
8282
protected function status($from, $to, $type)

src/Console/Commands/ModulesListCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public function fire()
3333
{
3434
$modules = [];
3535

36-
3736
foreach (app('modules.loader')->getRegisteredModules() as $module) {
3837
$modules[] = [
3938
$module->getName().' ['.get_class($module).']',

src/ModulesFileSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function listFiles($directory = null, $ext = null)
182182
*/
183183
public function mergeFiles($directory, $file, $ext = null)
184184
{
185-
$cacheKey = 'files::merge::'.md5($directory . $file . $ext);
185+
$cacheKey = 'files::merge::'.md5($directory.$file.$ext);
186186

187187
$content = Cache::remember($cacheKey, Carbon::now()->minute(20), function () use ($directory, $file, $ext) {
188188
$return = '';

src/Providers/ModuleServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ModuleServiceProvider extends ServiceProvider
3333
ModulesListCommand::class,
3434
ModulesMigrateCommand::class,
3535
ModulesSeedCommand::class,
36-
ModulesAssetsPublishCommand::class
36+
ModulesAssetsPublishCommand::class,
3737
];
3838

3939
/**

0 commit comments

Comments
 (0)