Skip to content

Commit a3a882f

Browse files
author
quentin.schmick
committed
Fixing styling
1 parent 4a29134 commit a3a882f

18 files changed

+70
-72
lines changed

src/Contracts/TaskInterface.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ public function builder(): Builder;
1818
/**
1919
* Returns a task by its primary key.
2020
*
21-
* @param int|Task $id
21+
* @param int|Task $id
2222
* @return Task
2323
*/
2424
public function find(Task|int $id): Task;
2525

2626
/**
2727
* Returns all tasks.
28+
*
2829
* @return Collection
2930
*/
3031
public function findAll(): Collection;
@@ -40,9 +41,9 @@ public function findAllActive(): Collection;
4041
* Creates a new task with the given data.
4142
*
4243
* @param array $input
43-
* @return Task
44+
* @return Task|bool
4445
*/
45-
public function store(array $input);
46+
public function store(array $input): Task|bool;
4647

4748
/**
4849
* Updates the given task with the given data.
@@ -56,16 +57,16 @@ public function update(array $input, Task $task): Task;
5657
/**
5758
* Deletes the given task.
5859
*
59-
* @param int|Task $id
60+
* @param int|Task $id
6061
* @return bool
6162
*/
6263
public function destroy(Task|int $id): bool;
6364

6465
/**
6566
* Executes the given task.
6667
*
67-
* @param int|Task $id
68-
* @return bool
68+
* @param int|Task $id
69+
* @return Task
6970
*/
70-
public function execute(Task|int $id): bool;
71+
public function execute(Task|int $id): Task;
7172
}

src/Events/Creating.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Creating implements ShouldBroadcast
2020
/**
2121
* Create a new event instance.
2222
*
23-
* @param array $input
23+
* @param array $input
2424
*/
2525
public function __construct(array $input)
2626
{

src/Events/Deleted.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ class Deleted extends Event
66
{
77
/**
88
* Create a new event instance.
9-
*
109
*/
1110
public function __construct()
1211
{

src/Events/Executed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ class Executed extends BroadcastingEvent
1010
/**
1111
* Executed constructor.
1212
*
13-
* @param Task $task
14-
* @param string|float|int $started
13+
* @param Task $task
14+
* @param string|float|int $started
1515
* @param $output
1616
*/
1717
public function __construct(Task $task, $started, $output)

src/Events/TaskEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TaskEvent extends Event
1818
/**
1919
* Constructor.
2020
*
21-
* @param Task $task
21+
* @param Task $task
2222
*/
2323
public function __construct(Task $task)
2424
{

src/Events/Updating.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Updating extends BroadcastingEvent
1515
/**
1616
* Create a new event instance.
1717
*
18-
* @param array $input
19-
* @param Task $task
18+
* @param array $input
19+
* @param Task $task
2020
*/
2121
public function __construct(array $input, Task $task)
2222
{

src/Http/Controllers/ActiveTasksController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ActiveTasksController extends Controller
1414
private TaskInterface $tasks;
1515

1616
/**
17-
* @param TaskInterface $tasks
17+
* @param TaskInterface $tasks
1818
*/
1919
public function __construct(TaskInterface $tasks)
2020
{
@@ -26,7 +26,7 @@ public function __construct(TaskInterface $tasks)
2626
/**
2727
* Store a newly active task in storage.
2828
*
29-
* @param Request $request
29+
* @param Request $request
3030
* @return JsonResponse
3131
*/
3232
public function store(Request $request): JsonResponse

src/Http/Controllers/ExecuteTasksController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ExecuteTasksController extends Controller
1313
private TaskInterface $tasks;
1414

1515
/**
16-
* @param TaskInterface $tasks
16+
* @param TaskInterface $tasks
1717
*/
1818
public function __construct(TaskInterface $tasks)
1919
{

src/Http/Controllers/ExportTasksController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ExportTasksController extends Controller
1414

1515
/**
1616
* ExportTasksController constructor.
17-
* @param TaskInterface $tasks
17+
* @param TaskInterface $tasks
1818
*/
1919
public function __construct(TaskInterface $tasks)
2020
{
@@ -28,7 +28,7 @@ public function __construct(TaskInterface $tasks)
2828
*
2929
* @return StreamedResponse
3030
*/
31-
public function index() : StreamedResponse
31+
public function index(): StreamedResponse
3232
{
3333
$headers = [
3434
'Content-Type' => 'text/json',

src/Http/Controllers/ImportTasksController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ImportTasksController extends Controller
1515

1616
/**
1717
* ImportTasksController constructor.
18-
* @param TaskInterface $tasks
18+
* @param TaskInterface $tasks
1919
*/
2020
public function __construct(TaskInterface $tasks)
2121
{
@@ -26,7 +26,9 @@ public function __construct(TaskInterface $tasks)
2626

2727
/**
2828
* Import tasks from a json file.
29-
* @param ImportRequest $request
29+
*
30+
* @param ImportRequest $request
31+
*
3032
* @throws FileNotFoundException
3133
*/
3234
public function index(ImportRequest $request)

src/Http/Controllers/TasksController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TasksController extends Controller
2121
/**
2222
* TasksController constructor.
2323
*
24-
* @param TaskInterface $tasks
24+
* @param TaskInterface $tasks
2525
*/
2626
public function __construct(TaskInterface $tasks)
2727
{
@@ -35,7 +35,7 @@ public function __construct(TaskInterface $tasks)
3535
*
3636
* @return View
3737
*/
38-
public function index() : View
38+
public function index(): View
3939
{
4040
return view('totem::tasks.index', [
4141
'tasks' => $this->tasks
@@ -89,7 +89,7 @@ public function store(TaskRequest $request): RedirectResponse
8989
/**
9090
* Display the specified task.
9191
*
92-
* @param Task $task
92+
* @param Task $task
9393
* @return Factory|View
9494
*/
9595
public function view(Task $task)
@@ -102,7 +102,7 @@ public function view(Task $task)
102102
/**
103103
* Show the form for editing the specified task.
104104
*
105-
* @param Task $task
105+
* @param Task $task
106106
* @return View
107107
*/
108108
public function edit(Task $task): View
@@ -122,8 +122,8 @@ public function edit(Task $task): View
122122
/**
123123
* Update the specified task in storage.
124124
*
125-
* @param TaskRequest $request
126-
* @param Task $task
125+
* @param TaskRequest $request
126+
* @param Task $task
127127
* @return RedirectResponse
128128
*/
129129
public function update(TaskRequest $request, Task $task): RedirectResponse
@@ -138,7 +138,7 @@ public function update(TaskRequest $request, Task $task): RedirectResponse
138138
/**
139139
* Remove the specified task from storage.
140140
*
141-
* @param Task $task
141+
* @param Task $task
142142
* @return RedirectResponse
143143
*/
144144
public function destroy(Task $task)

src/Http/Middleware/Authenticate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ class Authenticate
1212
/**
1313
* Handle the incoming request.
1414
*
15-
* @param Request $request
16-
* @param Closure $next
15+
* @param Request $request
16+
* @param Closure $next
1717
* @return Response
1818
*/
1919
public function handle(Request $request, Closure $next): Response

src/Listeners/BuildCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BuildCache extends Listener
99
/**
1010
* Handle the event.
1111
*
12-
* @param Event $event
12+
* @param Event $event
1313
*/
1414
public function handle(Event $event)
1515
{
@@ -19,7 +19,7 @@ public function handle(Event $event)
1919
/**
2020
* Rebuild Cache.
2121
*
22-
* @param Event $event
22+
* @param Event $event
2323
*/
2424
protected function build(Event $event)
2525
{

src/Listeners/BustCache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class BustCache extends Listener
99
/**
1010
* Handle the event.
1111
*
12-
* @param Event $event
12+
* @param Event $event
1313
*/
1414
public function handle(Event $event)
1515
{
@@ -19,7 +19,7 @@ public function handle(Event $event)
1919
/**
2020
* Clear Cache.
2121
*
22-
* @param Event $event
22+
* @param Event $event
2323
*/
2424
protected function clear(Event $event)
2525
{

src/Listeners/BustCacheImmediately.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BustCacheImmediately
1515
/**
1616
* Create the event listener.
1717
*
18-
* @param Container $app
18+
* @param Container $app
1919
*/
2020
public function __construct(Container $app)
2121
{
@@ -25,7 +25,7 @@ public function __construct(Container $app)
2525
/**
2626
* Handle the event.
2727
*
28-
* @param Event $event
28+
* @param Event $event
2929
*/
3030
public function handle(Event $event)
3131
{
@@ -35,7 +35,7 @@ public function handle(Event $event)
3535
/**
3636
* Clear Cache.
3737
*
38-
* @param Event $event
38+
* @param Event $event
3939
*/
4040
protected function clear(Event $event)
4141
{

src/Listeners/Listener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Listener implements ShouldQueue
2121
/**
2222
* Create the event listener.
2323
*
24-
* @param Container $app
25-
* @param TaskInterface $tasks
24+
* @param Container $app
25+
* @param TaskInterface $tasks
2626
*/
2727
public function __construct(Container $app, TaskInterface $tasks)
2828
{

0 commit comments

Comments
 (0)