File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ public function __construct(
2020 protected ComputerScienceResourceFilter $ filterService ,
2121 protected GeneralVotesSortingManager $ sortingManager ,
2222 ) {}
23+
2324 /**
2425 * Determines the amount of votes needed to merge the resource edit into the
2526 *
@@ -147,7 +148,7 @@ public function createResourceEdit(ComputerScienceResource $computerScienceResou
147148 */
148149 public function mergeResourceEdit (ResourceEdits $ resourceEdits ): ComputerScienceResource
149150 {
150- if (!$ this ->canMergeEdits ($ resourceEdits )) {
151+ if (! $ this ->canMergeEdits ($ resourceEdits )) {
151152 throw new \LogicException ('Not enough approvals to merge this edit. ' );
152153 }
153154
Original file line number Diff line number Diff line change 88use App \Models \User ;
99use App \Services \ResourceEditsService ;
1010use Mockery ;
11- use Mockery \MockInterface ;
1211use Tests \RequestFactories \StoreCommentRequestFactory ;
1312use Tests \RequestFactories \StoreResourceEditRequestFactory ;
1413use Tests \RequestFactories \StoreResourceRequestFactory ;
You can’t perform that action at this time.
0 commit comments