CS: PSR1/2

parent 41c08cc6
......@@ -10,7 +10,7 @@ class TranslationsViewComposer
{
$staticTranslations = json_encode([
'page' => array_dot(trans('page::pages')),
'core' => array_dot(trans('core::core'))
'core' => array_dot(trans('core::core')),
]);
$view->with(compact('staticTranslations'));
......
......@@ -4,8 +4,8 @@ namespace Modules\Core\Http\Middleware;
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
use Illuminate\Routing\Redirector;
use Illuminate\Http\Response;
use Illuminate\Routing\Redirector;
use Illuminate\Session\Store;
use Modules\User\Contracts\Authentication;
......
......@@ -4,8 +4,8 @@ namespace Modules\Page\Console;
use Illuminate\Console\Command;
use Modules\Page\Repositories\PageRepository;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class CreatePagesCommand extends Command
{
......@@ -32,7 +32,7 @@ class CreatePagesCommand extends Command
$total = 10000;
$bar = $this->output->createProgressBar($total);
for($i = 0; $i < $total; $i++) {
for ($i = 0; $i < $total; $i++) {
$this->createPage();
$bar->advance();
}
......
......@@ -141,7 +141,7 @@ class EloquentPageRepository extends EloquentBaseRepository implements PageRepos
if ($request->get('search') !== null) {
$term = $request->get('search');
$pages->whereHas('translations', function($query) use($term) {
$pages->whereHas('translations', function ($query) use ($term) {
$query->where('title', 'LIKE', "%{$term}%");
$query->orWhere('slug', 'LIKE', "%{$term}%");
})
......
......@@ -10,7 +10,7 @@ class AllTranslationController extends Controller
{
return response()->json([
'page' => trans('page::pages'),
'core' => trans('core::core')
'core' => trans('core::core'),
]);
}
}
......@@ -8,8 +8,8 @@ use Illuminate\Support\Facades\Response;
use Illuminate\Support\Facades\View;
use Modules\Core\Http\Controllers\Admin\AdminBaseController;
use Modules\Workshop\Manager\ModuleManager;
use Nwidart\Modules\Module;
use Nwidart\Modules\Contracts\RepositoryInterface;
use Nwidart\Modules\Module;
use Symfony\Component\Console\Output\BufferedOutput;
class ModulesController extends AdminBaseController
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment