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
4d9a2148
Unverified
Commit
4d9a2148
authored
Jul 17, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CS: PSR1/2
parent
70b31c8d
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
24 additions
and
25 deletions
+24
-25
AsgardEditorDirective.php
Modules/Core/Blade/AsgardEditorDirective.php
+1
-0
CollectingAssets.php
Modules/Core/Events/CollectingAssets.php
+1
-0
helpers.php
Modules/Core/helpers.php
+2
-3
FileIsCreating.php
Modules/Media/Events/FileIsCreating.php
+1
-1
FileIsUpdating.php
Modules/Media/Events/FileIsUpdating.php
+1
-1
EloquentFileRepositoryTest.php
Modules/Media/Tests/EloquentFileRepositoryTest.php
+3
-3
MenuIsCreating.php
Modules/Menu/Events/MenuIsCreating.php
+1
-1
MenuIsUpdating.php
Modules/Menu/Events/MenuIsUpdating.php
+1
-1
MenuItemIsCreating.php
Modules/Menu/Events/MenuItemIsCreating.php
+1
-1
MenuItemIsUpdating.php
Modules/Menu/Events/MenuItemIsUpdating.php
+1
-1
BaseMenuTest.php
Modules/Menu/Tests/BaseMenuTest.php
+1
-1
PageIsCreating.php
Modules/Page/Events/PageIsCreating.php
+1
-1
PageIsUpdating.php
Modules/Page/Events/PageIsUpdating.php
+1
-1
EloquentPageRepositoryTest.php
Modules/Page/Tests/EloquentPageRepositoryTest.php
+0
-1
EloquentSettingRepositoryTest.php
Modules/Setting/Tests/EloquentSettingRepositoryTest.php
+2
-2
TagIsCreating.php
Modules/Tag/Events/TagIsCreating.php
+1
-1
TagIsUpdating.php
Modules/Tag/Events/TagIsUpdating.php
+1
-1
EloquentTagRepository.php
Modules/Tag/Repositories/Eloquent/EloquentTagRepository.php
+0
-1
RoleIsCreating.php
Modules/User/Events/RoleIsCreating.php
+1
-1
RoleIsUpdating.php
Modules/User/Events/RoleIsUpdating.php
+1
-1
UserIsCreating.php
Modules/User/Events/UserIsCreating.php
+1
-1
UserIsUpdating.php
Modules/User/Events/UserIsUpdating.php
+1
-1
No files found.
Modules/Core/Blade/AsgardEditorDirective.php
View file @
4d9a2148
...
...
@@ -16,6 +16,7 @@ class AsgardEditorDirective
if
(
$this
->
lang
!==
null
)
{
return
asgard_i18n_editor
(
$this
->
fieldName
,
$this
->
labelName
,
$this
->
content
,
$this
->
lang
);
}
return
asgard_editor
(
$this
->
fieldName
,
$this
->
labelName
,
$this
->
content
);
}
...
...
Modules/Core/Events/CollectingAssets.php
View file @
4d9a2148
...
...
@@ -60,6 +60,7 @@ class CollectingAssets
return
true
;
}
}
return
false
;
}
}
Modules/Core/helpers.php
View file @
4d9a2148
...
...
@@ -37,14 +37,13 @@ if (! function_exists('is_core_module')) {
if
(
!
function_exists
(
'asgard_i18n_editor'
))
{
function
asgard_i18n_editor
(
$fieldName
,
$labelName
,
$content
,
$lang
)
{
return
view
(
'core::components.i18n.textarea-wrapper'
,
compact
(
'fieldName'
,
'labelName'
,
'content'
,
'lang'
));
return
view
(
'core::components.i18n.textarea-wrapper'
,
compact
(
'fieldName'
,
'labelName'
,
'content'
,
'lang'
));
}
}
if
(
!
function_exists
(
'asgard_editor'
))
{
function
asgard_editor
(
$fieldName
,
$labelName
,
$content
)
{
return
view
(
'core::components.textarea-wrapper'
,
compact
(
'fieldName'
,
'labelName'
,
'content'
));
return
view
(
'core::components.textarea-wrapper'
,
compact
(
'fieldName'
,
'labelName'
,
'content'
));
}
}
Modules/Media/Events/FileIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Media\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
final
class
FileIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/Media/Events/FileIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Media\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Media\Entities\File
;
final
class
FileIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
Modules/Media/Tests/EloquentFileRepositoryTest.php
View file @
4d9a2148
...
...
@@ -178,7 +178,7 @@ class EloquentFileRepositoryTest extends MediaTestCase
'description'
=>
'My cool file!'
,
'alt_attribute'
=>
'My cool file!'
,
'keywords'
=>
'My cool file!'
,
]
]
,
]);
Event
::
assertDispatched
(
FileIsUpdating
::
class
,
function
(
$e
)
use
(
$file
)
{
...
...
@@ -195,7 +195,7 @@ class EloquentFileRepositoryTest extends MediaTestCase
'filename'
=>
'bettername.jpg'
,
'en'
=>
[
'description'
=>
'Hello World'
,
]
]
,
]);
});
...
...
@@ -205,7 +205,7 @@ class EloquentFileRepositoryTest extends MediaTestCase
'description'
=>
'My cool file!'
,
'alt_attribute'
=>
'My cool file!'
,
'keywords'
=>
'My cool file!'
,
]
]
,
]);
$this
->
assertEquals
(
'bettername.jpg'
,
$file
->
filename
);
...
...
Modules/Menu/Events/MenuIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Menu\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
MenuIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/Menu/Events/MenuIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Menu\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Menu\Entities\Menu
;
class
MenuIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
Modules/Menu/Events/MenuItemIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Menu\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
MenuItemIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/Menu/Events/MenuItemIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Menu\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Menu\Entities\Menuitem
;
class
MenuItemIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
Modules/Menu/Tests/BaseMenuTest.php
View file @
4d9a2148
...
...
@@ -43,7 +43,7 @@ abstract class BaseMenuTest extends TestCase
$this
->
menu
=
app
(
MenuRepository
::
class
);
$this
->
menuItem
=
app
(
MenuItemRepository
::
class
);
app
(
SettingRepository
::
class
)
->
createOrUpdate
([
'core::locales'
=>
[
'en'
,
'fr'
,]
'core::locales'
=>
[
'en'
,
'fr'
,]
,
]);
}
...
...
Modules/Page/Events/PageIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Page\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
PageIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/Page/Events/PageIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Page\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Page\Entities\Page
;
class
PageIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
Modules/Page/Tests/EloquentPageRepositoryTest.php
View file @
4d9a2148
...
...
@@ -145,7 +145,6 @@ class EloquentPageRepositoryTest extends BasePageTest
$this
->
assertEquals
(
'better-tpl'
,
$page
->
template
);
}
/** @test */
public
function
it_triggers_event_when_page_was_updated
()
{
...
...
Modules/Setting/Tests/EloquentSettingRepositoryTest.php
View file @
4d9a2148
...
...
@@ -165,7 +165,7 @@ class EloquentSettingRepositoryTest extends BaseSettingTest
}
if
(
$event
->
getSettingName
()
===
'core::site-name'
)
{
$event
->
setSettingValues
([
'en'
=>
'English AsgardCMS'
'en'
=>
'English AsgardCMS'
,
]);
}
});
...
...
@@ -234,7 +234,7 @@ class EloquentSettingRepositoryTest extends BaseSettingTest
}
if
(
$event
->
getSettingName
()
===
'core::site-name'
)
{
$event
->
setSettingValues
([
'en'
=>
'English AsgardCMS'
'en'
=>
'English AsgardCMS'
,
]);
}
});
...
...
Modules/Tag/Events/TagIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Tag\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
TagIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/Tag/Events/TagIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\Tag\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Tag\Entities\Tag
;
class
TagIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
Modules/Tag/Repositories/Eloquent/EloquentTagRepository.php
View file @
4d9a2148
...
...
@@ -40,5 +40,4 @@ class EloquentTagRepository extends EloquentBaseRepository implements TagReposit
return
$tag
;
}
}
Modules/User/Events/RoleIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\User\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
RoleIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/User/Events/RoleIsUpdating.php
View file @
4d9a2148
...
...
@@ -3,8 +3,8 @@
namespace
Modules\User\Events
;
use
Cartalyst\Sentinel\Roles\RoleInterface
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
class
RoleIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/User/Events/UserIsCreating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\User\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
final
class
UserIsCreating
extends
AbstractEntityHook
implements
EntityIsChanging
{
...
...
Modules/User/Events/UserIsUpdating.php
View file @
4d9a2148
...
...
@@ -2,8 +2,8 @@
namespace
Modules\User\Events
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\Core\Contracts\EntityIsChanging
;
use
Modules\Core\Events\AbstractEntityHook
;
use
Modules\User\Entities\UserInterface
;
final
class
UserIsUpdating
extends
AbstractEntityHook
implements
EntityIsChanging
...
...
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