Skip to content

Commit

Permalink
fix: more formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CS76 committed Apr 30, 2024
1 parent a2df7f3 commit ebaab7c
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions app/Http/Controllers/ProjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use App\Models\User;
use App\Models\Validation;
use Auth;
use Carbon\Carbon;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Contracts\Auth\StatefulGuard;
use Illuminate\Http\JsonResponse;
Expand Down Expand Up @@ -328,19 +327,6 @@ public function publish(Request $request, Project $project, PublishProject $publ
if ($project) {
$input = $request->all();
$release_date = $input['release_date'];
// if (! $project->is_public && ! is_null($project->doi) && ! is_null($release_date)) {
// $release_date = Carbon::parse($release_date);
// if ($release_date->isPast()) {
// $updater->update($project, $input);
// $publisher->publish($project);
// $project->sendNotification('publish', $this->prepareSendList($project));
// $project->status = 'complete';
// $project->save();
// return response()->json([
// 'project' => $project
// ]);
// }
// } else {
$enableProjectMode = $request->get('enableProjectMode');
if ($enableProjectMode) {
$validation = $project->validation;
Expand Down Expand Up @@ -406,9 +392,6 @@ public function publish(Request $request, Project $project, PublishProject $publ
], 422);
}
}

// }

}

}
Expand Down

0 comments on commit ebaab7c

Please sign in to comment.