1414use App \Sharp \Utils \Filters \StateFilter ;
1515use Code16 \Sharp \EntityList \Fields \EntityListField ;
1616use Code16 \Sharp \EntityList \Fields \EntityListFieldsContainer ;
17- use Code16 \Sharp \EntityList \Fields \EntityListFilterField ;
1817use Code16 \Sharp \EntityList \Fields \EntityListStateField ;
1918use Code16 \Sharp \EntityList \SharpEntityList ;
2019use Code16 \Sharp \Utils \Links \LinkToEntityList ;
@@ -37,7 +36,7 @@ protected function buildList(EntityListFieldsContainer $fields): void
3736 ->addField (
3837 EntityListField::make ('title ' )
3938 ->setLabel ('Title ' )
40- // ->setWidth(.2)
39+ // ->setWidth(.2)
4140 )
4241 ->addField (
4342 EntityListStateField::make ()
@@ -52,7 +51,7 @@ protected function buildList(EntityListFieldsContainer $fields): void
5251 ->addField (
5352 EntityListField::make ('categories ' )
5453 ->setLabel ('Categories ' )
55- // ->setWidth(.2)
54+ // ->setWidth(.2)
5655 )
5756 ->addField (
5857 EntityListField::make ('published_at ' )
@@ -73,7 +72,7 @@ public function buildListConfig(): void
7372
7473 protected function buildPageAlert (PageAlert $ pageAlert ): void
7574 {
76- if (!auth ()->user ()->isAdmin ()) {
75+ if (! auth ()->user ()->isAdmin ()) {
7776 $ pageAlert
7877 ->setMessage ('As an editor, you can only edit your posts; you can see other posts except those which are still in draft. ' )
7978 ->setLevelSecondary ();
@@ -146,7 +145,7 @@ function (Builder $builder, $categories) {
146145 ->each (function ($ categoryId ) use ($ builder ) {
147146 $ builder ->orWhereHas (
148147 'categories ' ,
149- fn (Builder $ builder ) => $ builder ->where ('categories.id ' , $ categoryId )
148+ fn (Builder $ builder ) => $ builder ->where ('categories.id ' , $ categoryId )
150149 );
151150 });
152151 });
0 commit comments