Skip to content
Merged

Dev #817

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
2 changes: 1 addition & 1 deletion app/Http/Controllers/RecommendationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct()
*
* @param string $surveyId (optional)
*/
public function create(string $surveyId = null): View
public function create(?string $surveyId = null): View
{
if (is_null($surveyId)) {
// No survey id was provided.
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/SurveyReportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct()
*
* @param int $id
*/
public function create(int $id = null): View
public function create(?int $id = null): View
{
return view('surveys.surveys_addReport');
}
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/TestDateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct()
*
* @param string $id (optional)
*/
public function create(string $id = null): View
public function create(?string $id = null): View
{
if (is_null($id)) {
$machines = Machine::select('id', 'description')
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Machine.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Machine extends Model implements HasMedia
*/
protected $appends = ['age'];

public function registerMediaCollections(Media $media = null): void
public function registerMediaCollections(?Media $media = null): void
{
$this->addMediaCollection('machine_photos')
->useDisk('MachinePhotos');
Expand Down
2 changes: 1 addition & 1 deletion app/Models/TestDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class TestDate extends Model implements HasMedia
'updated_at' => 'datetime',
];

public function registerMediaCollections(Media $media = null): void
public function registerMediaCollections(?Media $media = null): void
{
$this->addMediaCollection('survey_reports')
->useDisk('SurveyReports');
Expand Down
Loading