Skip to content

Commit

Permalink
Apply fixes from StyleCI (#49)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
Cyvelnet and StyleCIBot committed Mar 13, 2024
1 parent 4785832 commit 0b8613d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/Cyvelnet/Laravel5Fractal/Commands/Command.php
Expand Up @@ -69,7 +69,6 @@ protected function getOptions()
*/
protected function getTransformerProperties($class, $namespace, $storePath)
{

// check if class contains additional level
if (strpos($class, '/') !== false) {
$additionalLevel = substr($class, 0, strrpos($class, '/'));
Expand Down Expand Up @@ -135,7 +134,7 @@ protected function getModelColumns($class)
}
} else {
$this->error("Your model {$class} was not found in {$this->config->get('fractal.model_namespace')}\\ \r\nIf this is the first time you get this message, try to update /config/fractal.php to make changes to model_namespace accordingly.");
exit();
exit;
}
}

Expand Down
Expand Up @@ -64,7 +64,6 @@ public function __construct(Config $config, View $view, File $filesystem, $app)
public function handle()
{
try {

// replace all space after ucwords
$class_name = preg_replace('/\s+/', '', ucwords($this->argument('name')));

Expand Down
Expand Up @@ -39,7 +39,6 @@ public function register()
$this->mergeConfigFrom($source_config, 'fractal');

$this->app->singleton('fractal', function ($app) {

// retrieves configurations

$autoload = $app['config']->get('fractal.autoload');
Expand Down

0 comments on commit 0b8613d

Please sign in to comment.