Skip to content

Commit 60cb88f

Browse files
Quentin Schmickroshangautam
andauthored
Updated to use collection count (#324)
* Updated to use collection count * Apply fixes from StyleCI (#325) Co-authored-by: Roshan Gautam <[email protected]> Co-authored-by: Roshan Gautam <[email protected]> Co-authored-by: Roshan Gautam <[email protected]>
1 parent 41c588b commit 60cb88f

22 files changed

+44
-39
lines changed

database/migrations/2019_09_25_103421_update_task_results_duration_type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function down()
2828
}
2929

3030
/**
31-
* @param bool $toFloat
31+
* @param bool $toFloat
3232
*/
3333
private function migrateDurationValues(bool $toFloat = true)
3434
{

src/Console/Commands/ListSchedule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ListSchedule extends Command
3232
/**
3333
* Create a new command instance.
3434
*
35-
* @param Schedule $schedule
35+
* @param Schedule $schedule
3636
* @return void
3737
*/
3838
public function __construct(Schedule $schedule)

src/Contracts/TaskInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,30 @@ public function find($id);
2121

2222
/**
2323
* Returns all tasks.
24+
*
2425
* @return \Illuminate\Database\Eloquent\Collection
2526
*/
2627
public function findAll();
2728

2829
/**
2930
* Returns all active tasks.
31+
*
3032
* @return \Illuminate\Database\Eloquent\Collection
3133
*/
3234
public function findAllActive();
3335

3436
/**
3537
* Creates a new task with the given data.
3638
*
37-
* @param array $input
39+
* @param array $input
3840
* @return \Studio\Totem\Task
3941
*/
4042
public function store(array $input);
4143

4244
/**
4345
* Updates the given task with the given data.
4446
*
45-
* @param array $input
47+
* @param array $input
4648
* @param \Studio\Totem\Task $task
4749
* @return \Studio\Totem\Task
4850
*/

src/Events/Creating.php

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

src/Events/Deleted.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ class Deleted extends Event
77
/**
88
* Create a new event instance.
99
*
10-
* @param array $input
11-
* @param Task $task
10+
* @param array $input
11+
* @param Task $task
1212
*/
1313
public function __construct()
1414
{

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 $started
13+
* @param Task $task
14+
* @param string $started
1515
*/
1616
public function __construct(Task $task, $started, $output)
1717
{

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
@@ -16,8 +16,8 @@ class Updating extends BroadcastingEvent
1616
/**
1717
* Create a new event instance.
1818
*
19-
* @param array $input
20-
* @param Task $task
19+
* @param array $input
20+
* @param Task $task
2121
*/
2222
public function __construct(array $input, Task $task)
2323
{

src/Http/Controllers/ActiveTasksController.php

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

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

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 $tasks;
1414

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

0 commit comments

Comments
 (0)