Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
896a292b
Unverified
Commit
896a292b
authored
Sep 17, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS: PSR1/2
parent
41c08cc6
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
TranslationsViewComposer.php
Modules/Core/Composers/TranslationsViewComposer.php
+1
-1
AdminMiddleware.php
Modules/Core/Http/Middleware/AdminMiddleware.php
+1
-1
CreatePagesCommand.php
Modules/Page/Console/CreatePagesCommand.php
+2
-2
PageController.php
Modules/Page/Http/Controllers/Api/PageController.php
+1
-1
EloquentPageRepository.php
...les/Page/Repositories/Eloquent/EloquentPageRepository.php
+1
-1
AllTranslationController.php
...slation/Http/Controllers/Api/AllTranslationController.php
+1
-1
ModulesController.php
...les/Workshop/Http/Controllers/Admin/ModulesController.php
+1
-1
No files found.
Modules/Core/Composers/TranslationsViewComposer.php
View file @
896a292b
...
...
@@ -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'
));
...
...
Modules/Core/Http/Middleware/AdminMiddleware.php
View file @
896a292b
...
...
@@ -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
;
...
...
Modules/Page/Console/CreatePagesCommand.php
View file @
896a292b
...
...
@@ -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
();
}
...
...
Modules/Page/Http/Controllers/Api/PageController.php
View file @
896a292b
Modules/Page/Repositories/Eloquent/EloquentPageRepository.php
View file @
896a292b
...
...
@@ -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
}
%"
);
})
...
...
Modules/Translation/Http/Controllers/Api/AllTranslationController.php
View file @
896a292b
...
...
@@ -10,7 +10,7 @@ class AllTranslationController extends Controller
{
return
response
()
->
json
([
'page'
=>
trans
(
'page::pages'
),
'core'
=>
trans
(
'core::core'
)
'core'
=>
trans
(
'core::core'
)
,
]);
}
}
Modules/Workshop/Http/Controllers/Admin/ModulesController.php
View file @
896a292b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment