Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Apply fixes from StyleCI #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
52 changes: 26 additions & 26 deletions src/MailEclipse.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public static function getMailables()
}

/**
* @param $key
* @param $name
* @param $key
* @param $name
* @return Collection
*
* @throws \ReflectionException
Expand All @@ -70,7 +70,7 @@ public static function getMailable($key, $name): Collection
}

/**
* @param $templateSlug
* @param $templateSlug
* @return bool
*/
public static function deleteTemplate($templateSlug): bool
Expand Down Expand Up @@ -130,7 +130,7 @@ public static function saveTemplates(Collection $templates): void
}

/**
* @param $request
* @param $request
* @return JsonResponse|null
*/
public static function updateTemplate($request): ?JsonResponse
Expand Down Expand Up @@ -193,7 +193,7 @@ public static function updateTemplate($request): ?JsonResponse
}

/**
* @param $templateSlug
* @param $templateSlug
* @return Collection|null
*/
public static function getTemplate($templateSlug): ?Collection
Expand Down Expand Up @@ -236,7 +236,7 @@ public static function getTemplates(): Collection
}

/**
* @param $request
* @param $request
* @return JsonResponse
*/
public static function createTemplate($request): JsonResponse
Expand Down Expand Up @@ -313,9 +313,9 @@ public static function markdownedTemplateToView($save = true, $content = '', $vi
}

/**
* @param $simpleview
* @param $content
* @param $viewName
* @param $simpleview
* @param $content
* @param $viewName
* @param bool $template
* @param null $namespace
* @return bool|string|void
Expand Down Expand Up @@ -346,8 +346,8 @@ public static function previewMarkdownViewContent($simpleview, $content, $viewNa
}

/**
* @param $instance
* @param $view
* @param $instance
* @param $view
* @return string|void
*/
public static function previewMarkdownHtml($instance, $view)
Expand All @@ -356,7 +356,7 @@ public static function previewMarkdownHtml($instance, $view)
}

/**
* @param $mailableName
* @param $mailableName
* @return array|bool
*/
public static function getMailableTemplateData($mailableName)
Expand Down Expand Up @@ -566,7 +566,7 @@ class_implements($object['namespace']
/**
* Handle Mailable Constructor arguments and pass the fake ones.
*
* @param $mailable
* @param $mailable
* @return object|void
*
* @throws \ReflectionException
Expand Down Expand Up @@ -678,8 +678,8 @@ private static function getMissingParams($arg, $params)
}

/**
* @param $mailable
* @param $mailable_data
* @param $mailable
* @param $mailable_data
* @return array|Collection
*
* @throws \ReflectionException
Expand Down Expand Up @@ -732,7 +732,7 @@ private static function getMailableViewData($mailable, $mailable_data)
}

/**
* @param $param
* @param $param
* @return array
*/
protected static function viewDataInspect($param): ?array
Expand Down Expand Up @@ -762,7 +762,7 @@ protected static function viewDataInspect($param): ?array
}

/**
* @param $mailable
* @param $mailable
* @return bool
*/
protected static function mailable_exists($mailable): bool
Expand All @@ -775,7 +775,7 @@ protected static function mailable_exists($mailable): bool
}

/**
* @param $mailable
* @param $mailable
* @return mixed|void
*
* @throws \ReflectionException
Expand All @@ -800,7 +800,7 @@ protected static function getMarkdownViewName($mailable)
}

/**
* @param $instance
* @param $instance
* @param string $type
* @return mixed
*
Expand Down Expand Up @@ -831,8 +831,8 @@ public static function buildMailable($instance, $type = 'call')
}

/**
* @param $simpleview
* @param $view
* @param $simpleview
* @param $view
* @param bool $template
* @param null $instance
* @return string|void
Expand Down Expand Up @@ -893,7 +893,7 @@ public static function renderPreview($simpleview, $view, $template = false, $ins
* https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class
* https://www.php.net/manual/en/reserved.keywords.php
*
* @param $input
* @param $input
* @return string|false class name or false on failure
*/
public static function generateClassName($input)
Expand Down Expand Up @@ -932,8 +932,8 @@ public static function generateClassName($input)
*
* @todo Allow the values for the Make command to be passed down by the pkg.
*
* @param $eloquentFactory
* @param $model
* @param $eloquentFactory
* @param $model
* @return null|object
*/
private static function resolveFactory($eloquentFactory, $model): ?object
Expand Down Expand Up @@ -1104,7 +1104,7 @@ public static function sendTest(string $name, string $recipient): void
}

/**
* @param $mailable
* @param $mailable
* @param string $email
* @return mixed
*/
Expand All @@ -1118,7 +1118,7 @@ public static function setMailableSendTestRecipient($mailable, string $email)
}

/**
* @param $mailable
* @param $mailable
* @return object|void
*
* @throws \ReflectionException
Expand Down