CS: PSR1/2

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