Skip to content

Commit

Permalink
CS: PSR1/2
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Sep 17, 2017
1 parent 41c08cc commit 896a292
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Composers/TranslationsViewComposer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function compose(View $view)
{
$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'));
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Http/Middleware/AdminMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

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;

Expand Down
4 changes: 2 additions & 2 deletions Modules/Page/Console/CreatePagesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

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
{
Expand All @@ -32,7 +32,7 @@ public function handle()
$total = 10000;
$bar = $this->output->createProgressBar($total);

for($i = 0; $i < $total; $i++) {
for ($i = 0; $i < $total; $i++) {
$this->createPage();
$bar->advance();
}
Expand Down
2 changes: 1 addition & 1 deletion Modules/Page/Http/Controllers/Api/PageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(PageRepository $page)

public function index()
{
return PageTransformer::collection($this->page->all());
return PageTransformer::collection($this->page->all());
}

public function indexServerSide(Request $request)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function serverPaginationFilteringFor(Request $request): LengthAwarePagin

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}%");
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function __invoke()
{
return response()->json([
'page' => trans('page::pages'),
'core' => trans('core::core')
'core' => trans('core::core'),
]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
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
Expand Down

0 comments on commit 896a292

Please sign in to comment.