Skip to content

Commit

Permalink
Merge pull request #108 from amranidev/analysis-qM0JYM
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
amranidev authored Feb 2, 2017
2 parents e71dd69 + 1fb4cb5 commit a75c72d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Http/Controllers/GuiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function store(Request $request)
$relation->save();
}
}
Session::flash('status', 'Created Successfully ' . $names->singular());
Session::flash('status', 'Created Successfully '.$names->singular());

return redirect('scaffold');
}
Expand All @@ -88,10 +88,10 @@ public function destroy($id)
unlink($scaffoldInterface->migration);
unlink($scaffoldInterface->model);
unlink($scaffoldInterface->controller);
unlink($scaffoldInterface->views . '/index.blade.php');
unlink($scaffoldInterface->views . '/create.blade.php');
unlink($scaffoldInterface->views . '/show.blade.php');
unlink($scaffoldInterface->views . '/edit.blade.php');
unlink($scaffoldInterface->views.'/index.blade.php');
unlink($scaffoldInterface->views.'/create.blade.php');
unlink($scaffoldInterface->views.'/show.blade.php');
unlink($scaffoldInterface->views.'/edit.blade.php');
rmdir($scaffoldInterface->views);

//Clear Routes Resources
Expand Down Expand Up @@ -121,7 +121,7 @@ public function deleteMsg($id)
return view('scaffold-interface::template.DeleteMessage.delete', compact('table'))->render();
}

$msg = Ajaxis::Mtdeleting('Warning!!', "Would you like to delete {$scaffold->tablename} MVC files ??", '/scaffold/guirollback/' . $id);
$msg = Ajaxis::Mtdeleting('Warning!!', "Would you like to delete {$scaffold->tablename} MVC files ??", '/scaffold/guirollback/'.$id);

return $msg;
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public function migrate()
try {
Artisan::call('migrate', ['--path' => config('amranidev.config.database')]);

exec('cd ' . base_path() . ' && composer dump-autoload');
exec('cd '.base_path().' && composer dump-autoload');
} catch (\Exception $e) {
return $e->getMessage();
}
Expand Down Expand Up @@ -226,7 +226,7 @@ public function manyToManyForm(Request $request)
$dummyData = DatabaseManager::tableNames();
$elements = Ajaxis::MtcreateFormModal([
['type' => 'select', 'name' => 'table1', 'key' => 'table1', 'value' => $dummyData],
['type' => 'select', 'name' => 'table2', 'key' => 'table2', 'value' => $dummyData]], '/scaffold/manyToMany', 'Many To Many');
['type' => 'select', 'name' => 'table2', 'key' => 'table2', 'value' => $dummyData], ], '/scaffold/manyToMany', 'Many To Many');

return $elements;
}
Expand Down

0 comments on commit a75c72d

Please sign in to comment.