Add newlines and strict types check.

This commit is contained in:
James Cole
2020-12-22 05:35:06 +01:00
parent c7cf55b831
commit b263120c8f
48 changed files with 79 additions and 44 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* DateController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -127,4 +128,4 @@ class DateController extends Controller
return response()->json($tempData);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* DateController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -127,4 +128,4 @@ class DateController extends Controller
return response()->json($tempData);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* CreateController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -76,4 +77,4 @@ class CreateController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* DeleteController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -71,4 +72,4 @@ class DeleteController extends Controller
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* EditController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -77,4 +78,4 @@ class EditController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* IndexController.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -84,4 +85,4 @@ class IndexController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', self::CONTENT_TYPE);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* CreateRequest.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -80,4 +81,4 @@ class CreateRequest extends FormRequest
'url' => ['required', 'url', 'starts_with:https://', 'uniqueWebhook'],
];
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* UpdateRequest.php
* Copyright (c) 2020 james@firefly-iii.org
@@ -81,4 +82,4 @@ class UpdateRequest extends FormRequest
'url' => ['required', 'url', 'starts_with:https://', sprintf('uniqueExistingWebhook:%d', $webhook->id)],
];
}
}
}