Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/Actions/Author/SyncProjectAuthors.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use App\Models\Project;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;

class SyncProjectAuthors
{
Expand All @@ -18,7 +19,7 @@ public function __construct(private UpdateProject $updater) {}
* @param array<int, array<string,mixed>> $authors
* @return array<int, Author>
*
* @throws \Illuminate\Validation\ValidationException
* @throws ValidationException
*/
public function handle(Project $project, array $authors): array
{
Expand Down
5 changes: 3 additions & 2 deletions app/Actions/Citation/SyncCitations.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use App\Models\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;

class SyncCitations
{
Expand All @@ -19,7 +20,7 @@ public function __construct(private UpdateProject $updater) {}
* @param array<int, array<string, mixed>> $citations
* @return array<int, Citation>
*
* @throws \Illuminate\Validation\ValidationException
* @throws ValidationException
*/
public function sync(Project $project, array $citations, User $user): array
{
Expand Down Expand Up @@ -52,7 +53,7 @@ public function sync(Project $project, array $citations, User $user): array
*
* @param array<string, mixed> $citationData
*
* @throws \Illuminate\Validation\ValidationException
* @throws ValidationException
*/
private function validateCitationData(array $citationData): void
{
Expand Down
2 changes: 1 addition & 1 deletion app/Actions/Fortify/CreateNewUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CreateNewUser implements CreatesNewUsers
/**
* Create a newly registered user.
*
* @return \App\Models\User
* @return User
*/
public function create(array $input)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Actions/Jetstream/DeleteUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DeleteUser implements DeletesUsers
/**
* The team deleter implementation.
*
* @var \Laravel\Jetstream\Contracts\DeletesTeams
* @var DeletesTeams
*/
protected $deletesTeams;

Expand Down
2 changes: 1 addition & 1 deletion app/Actions/Project/CreateNewProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CreateNewProject
/**
* Create a project.
*
* @return \App\Models\Project
* @return Project
*/
public function create(array $input)
{
Expand Down
3 changes: 2 additions & 1 deletion app/Actions/Project/DeleteProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use App\Models\Project;
use App\Models\User;
use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
use Throwable;
Expand Down Expand Up @@ -107,7 +108,7 @@ public function deleteStudy($study)
/**
* Delete dataset and related objects.
*
* @param \Illuminate\Support\Collection $datasets
* @param Collection $datasets
* @return void
*/
public function deleteDatasets($dataset)
Expand Down
5 changes: 3 additions & 2 deletions app/Actions/Project/UpdateProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Actions\Project;

use App\Models\Project;
use App\Models\User;
use App\Models\Validation;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
Expand All @@ -15,7 +16,7 @@ class UpdateProject
/**
* Create a project.
*
* @return \App\Models\Project
* @return Project
*/
public function update(Project $project, array $input)
{
Expand Down Expand Up @@ -190,7 +191,7 @@ public function updateContributorType(Project $project, $author_id, $role)
/**
* Attach citations to a project.
*
* @param \App\Models\User $user
* @param User $user
* @param array $citations
* @return void
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Actions/Study/CreateNewStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CreateNewStudy
/**
* Create a study.
*
* @return \App\Models\Study
* @return Study
*/
public function create(array $input)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Actions/Study/UpdateStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class UpdateStudy
/**
* Create a study.
*
* @return \App\Models\Study
* @return Study
*/
public function update(Study $study, array $input)
{
Expand Down
6 changes: 4 additions & 2 deletions app/Console/Commands/ManageFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Storage;
use League\Flysystem\DirectoryAttributes;
use League\Flysystem\FileAttributes;

class ManageFiles extends Command
{
Expand Down Expand Up @@ -46,7 +48,7 @@ public function processFiles($path)
$listing = Storage::disk(config('filesystems.default'))->listContents($path, true);
foreach ($listing as $item) {
$path = $item->path();
if ($item instanceof \League\Flysystem\FileAttributes) {
if ($item instanceof FileAttributes) {
$fsObject = FileSystemObject::where([
['path', '/'.$path],
])->first();
Expand All @@ -57,7 +59,7 @@ public function processFiles($path)
$fsObject->info = $fsInfo;
$fsObject->save();
}
} elseif ($item instanceof \League\Flysystem\DirectoryAttributes) {
} elseif ($item instanceof DirectoryAttributes) {
// echo $item->study_id;
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/Console/Commands/UpdateDOI.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UpdateDOI extends Command
/**
* The DOI service instance.
*
* @var \App\Services\DOI\DOIService
* @var DOIService
*/
protected $doiService;

Expand Down
3 changes: 2 additions & 1 deletion app/Events/AddingProjectMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand Down Expand Up @@ -33,7 +34,7 @@ public function __construct($project, $user)
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/AddingStudyMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/DraftCompleted.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/DraftProcessed.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -28,7 +29,7 @@ public function __construct($project, $sendTo)
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/InvitingTeamMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectArchival.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -26,7 +27,7 @@ public function __construct($project, $sendTo)
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectDeletion.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -26,7 +27,7 @@ public function __construct($project, $sendTo)
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectInvite.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -26,7 +27,7 @@ public function __construct($invitedUser, $invitation)
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectMemberAdded.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand Down Expand Up @@ -33,7 +34,7 @@ public function __construct($project, $user)
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectMemberRemoved.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/ProjectMemberUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/StudyInvite.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -26,7 +27,7 @@ public function __construct($invitedUser, $invitation)
/**
* Get the channels the event should broadcast on.
*
* @return array<int, \Illuminate\Broadcasting\Channel>
* @return array<int, Channel>
*/
public function broadcastOn(): array
{
Expand Down
3 changes: 2 additions & 1 deletion app/Events/StudyMemberAdded.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Events;

use Illuminate\Broadcasting\Channel;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Foundation\Events\Dispatchable;
Expand All @@ -24,7 +25,7 @@ public function __construct()
/**
* Get the channels the event should broadcast on.
*
* @return \Illuminate\Broadcasting\Channel|array
* @return Channel|array
*/
public function broadcastOn(): array
{
Expand Down
Loading
Loading