Fix some Laravel Pint issues
This commit is contained in:
parent
16b120bc73
commit
9743ba8eed
5 changed files with 4 additions and 5 deletions
|
@ -11,7 +11,7 @@ class CorsHeaders
|
||||||
/**
|
/**
|
||||||
* Handle an incoming request.
|
* Handle an incoming request.
|
||||||
*/
|
*/
|
||||||
public function handle(Request$request, Closure $next): Response
|
public function handle(Request $request, Closure $next): Response
|
||||||
{
|
{
|
||||||
$response = $next($request);
|
$response = $next($request);
|
||||||
if ($request->path() === 'api/media') {
|
if ($request->path() === 'api/media') {
|
||||||
|
|
|
@ -115,7 +115,7 @@ class ProcessWebMention implements ShouldQueue
|
||||||
$parts = explode('/', $path);
|
$parts = explode('/', $path);
|
||||||
$name = array_pop($parts);
|
$name = array_pop($parts);
|
||||||
$dir = implode('/', $parts);
|
$dir = implode('/', $parts);
|
||||||
if (! is_dir($dir) && ! mkdir($dir, 0755, true) && !is_dir($dir)) {
|
if (! is_dir($dir) && ! mkdir($dir, 0755, true) && ! is_dir($dir)) {
|
||||||
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
|
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
|
||||||
}
|
}
|
||||||
file_put_contents("$dir/$name", $html);
|
file_put_contents("$dir/$name", $html);
|
||||||
|
|
|
@ -65,7 +65,7 @@ class SaveProfileImage implements ShouldQueue
|
||||||
$parts = explode('/', $path);
|
$parts = explode('/', $path);
|
||||||
$name = array_pop($parts);
|
$name = array_pop($parts);
|
||||||
$dir = implode('/', $parts);
|
$dir = implode('/', $parts);
|
||||||
if (! is_dir($dir) && ! mkdir($dir, 0755, true) && !is_dir($dir)) {
|
if (! is_dir($dir) && ! mkdir($dir, 0755, true) && ! is_dir($dir)) {
|
||||||
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
|
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
|
||||||
}
|
}
|
||||||
file_put_contents("$dir/$name", $image);
|
file_put_contents("$dir/$name", $image);
|
||||||
|
|
|
@ -36,7 +36,7 @@ class Article extends Model
|
||||||
];
|
];
|
||||||
|
|
||||||
/** @var array<string, string> */
|
/** @var array<string, string> */
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
'created_at' => 'datetime',
|
'created_at' => 'datetime',
|
||||||
'updated_at' => 'datetime',
|
'updated_at' => 'datetime',
|
||||||
'deleted_at' => 'datetime',
|
'deleted_at' => 'datetime',
|
||||||
|
|
|
@ -6,7 +6,6 @@ namespace App\Models;
|
||||||
|
|
||||||
use App\CommonMark\Generators\ContactMentionGenerator;
|
use App\CommonMark\Generators\ContactMentionGenerator;
|
||||||
use App\CommonMark\Renderers\ContactMentionRenderer;
|
use App\CommonMark\Renderers\ContactMentionRenderer;
|
||||||
use App\Exceptions\TwitterContentException;
|
|
||||||
use Codebird\Codebird;
|
use Codebird\Codebird;
|
||||||
use Exception;
|
use Exception;
|
||||||
use GuzzleHttp\Client;
|
use GuzzleHttp\Client;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue