diff --git a/src/Commands/MakeShortcodeCommand.php b/src/Commands/MakeShortcodeCommand.php index bdce3fa..0d7ad49 100644 --- a/src/Commands/MakeShortcodeCommand.php +++ b/src/Commands/MakeShortcodeCommand.php @@ -40,7 +40,7 @@ protected function getStub() /** * Determine if the class already exists. * - * @param string $rawName + * @param string $rawName * @return bool */ protected function alreadyExists($rawName) @@ -51,7 +51,7 @@ protected function alreadyExists($rawName) /** * Get the default namespace for the class. * - * @param string $rootNamespace + * @param string $rootNamespace * @return string */ protected function getDefaultNamespace($rootNamespace) diff --git a/src/Debugbar/ShortcodesCollector.php b/src/Debugbar/ShortcodesCollector.php index 9a82c61..c21e2a5 100644 --- a/src/Debugbar/ShortcodesCollector.php +++ b/src/Debugbar/ShortcodesCollector.php @@ -22,7 +22,7 @@ class ShortcodesCollector extends DataCollector implements Renderable /** * Adds an shortcode to be profiled in the debug bar. * - * @param array $data + * @param array $data */ public function addShortcode(array $data) { diff --git a/src/Manager.php b/src/Manager.php index 6977127..f7091c8 100644 --- a/src/Manager.php +++ b/src/Manager.php @@ -35,8 +35,8 @@ class Manager /** * Shortcodes manager constructor. * - * @param Application $app - * @param array $config + * @param Application $app + * @param array $config */ public function __construct(Application $app, array $config) { @@ -48,8 +48,8 @@ public function __construct(Application $app, array $config) /** * Share attribute. * - * @param string $key - * @param mixed $value + * @param string $key + * @param mixed $value * @return Manager */ public function share($key, $value) @@ -62,8 +62,8 @@ public function share($key, $value) /** * Set / get shared variable. * - * @param string $key - * @param null $default + * @param string $key + * @param null $default * @return mixed */ public function shared($key = null, $default = null) @@ -78,8 +78,8 @@ public function shared($key = null, $default = null) /** * Register a shortcode. * - * @param string|array $name - * @param string|callable $callable + * @param string|array $name + * @param string|callable $callable * @return Manager */ public function add($name, $callable = null) @@ -96,7 +96,7 @@ public function add($name, $callable = null) /** * Unregister a shortcode. * - * @param string $name + * @param string $name * @return Manager */ public function remove($name) @@ -129,7 +129,7 @@ public function rendered(): array /** * Render shortcodes in the content. * - * @param string $content + * @param string $content * @return HtmlString */ public function render($content) @@ -139,6 +139,7 @@ public function render($content) /** * Generate all registered shortcodes info. + * * @return Collection */ public function registeredData(): Collection diff --git a/src/Shortcode.php b/src/Shortcode.php index bef2578..91c6669 100644 --- a/src/Shortcode.php +++ b/src/Shortcode.php @@ -52,10 +52,10 @@ abstract class Shortcode implements ShortcodeContract /** * AbstractShortcode constructor. * - * @param Application $app - * @param Manager $manager - * @param array $atts - * @param string $tag + * @param Application $app + * @param Manager $manager + * @param array $atts + * @param string $tag */ public function __construct(Application $app, Manager $manager, array $atts, $tag) { @@ -78,7 +78,7 @@ public function atts(): array /** * Validate and return attributes. * - * @param array $rules + * @param array $rules * @return array */ public function validate(array $rules) @@ -93,8 +93,8 @@ public function validate(array $rules) /** * Combine user attributes with known attributes and fill in defaults when needed. * - * @param array $defaults - * @param array $atts + * @param array $defaults + * @param array $atts * @return array Combined and filtered attribute list. */ protected function applyDefaultAtts(array $defaults, array $atts) @@ -129,8 +129,8 @@ public function attributes() /** * Get shortcode attributes. * - * @param string $key - * @param mixed $defatul + * @param string $key + * @param mixed $defatul * @return array */ public function shared($key = null, $defatul = null) @@ -141,8 +141,8 @@ public function shared($key = null, $defatul = null) /** * Render a view with supressed exceptions. * - * @param string $name - * @param array|Collection $data + * @param string $name + * @param array|Collection $data * @return string */ protected function view($name, $data = []) diff --git a/src/ShortcodeContract.php b/src/ShortcodeContract.php index e358d8d..573fcfb 100644 --- a/src/ShortcodeContract.php +++ b/src/ShortcodeContract.php @@ -14,7 +14,7 @@ public function attributes(); /** * Render shortcode. * - * @param string $content + * @param string $content * @return mixed */ public function render($content); @@ -29,8 +29,8 @@ public function atts(): array; /** * Get shortcode attributes. * - * @param string $key - * @param mixed $defatul + * @param string $key + * @param mixed $defatul * @return array */ public function shared($key = null, $defatul = null); diff --git a/src/Shortcodes/BShortcode.php b/src/Shortcodes/BShortcode.php index ffb5746..cddaddd 100644 --- a/src/Shortcodes/BShortcode.php +++ b/src/Shortcodes/BShortcode.php @@ -23,7 +23,7 @@ class BShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/src/View/Factory.php b/src/View/Factory.php index a98464a..f53d7e6 100644 --- a/src/View/Factory.php +++ b/src/View/Factory.php @@ -9,9 +9,9 @@ class Factory extends IlluminateViewFactory /** * Create a new view instance from the given arguments. * - * @param string $view - * @param string $path - * @param \Illuminate\Contracts\Support\Arrayable|array $data + * @param string $view + * @param string $path + * @param \Illuminate\Contracts\Support\Arrayable|array $data * @return \Illuminate\Contracts\View\View */ protected function viewInstance($view, $path, $data) diff --git a/src/View/View.php b/src/View/View.php index 673f80d..e722939 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -22,12 +22,12 @@ class View extends IlluminateView /** * Create a new view instance. * - * @param \Illuminate\View\Factory $factory - * @param \Illuminate\Contracts\View\Engine $engine - * @param string $view - * @param string $path - * @param mixed $data - * @param Manager $shortcodes + * @param \Illuminate\View\Factory $factory + * @param \Illuminate\Contracts\View\Engine $engine + * @param string $view + * @param string $path + * @param mixed $data + * @param Manager $shortcodes * @return void */ public function __construct( diff --git a/src/helpers.php b/src/helpers.php index d1978e8..a8db47e 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -7,7 +7,7 @@ /** * Render shortcodes. * - * @param string $string + * @param string $string * @return string|HtmlString */ function shortcodes($string) diff --git a/tests/Resources/BShortcode.php b/tests/Resources/BShortcode.php index 7b49873..5e69c63 100644 --- a/tests/Resources/BShortcode.php +++ b/tests/Resources/BShortcode.php @@ -25,7 +25,7 @@ class BShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/tests/Resources/CastsShortcode.php b/tests/Resources/CastsShortcode.php index d77e970..b9f78a1 100644 --- a/tests/Resources/CastsShortcode.php +++ b/tests/Resources/CastsShortcode.php @@ -71,7 +71,7 @@ class CastsShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/tests/Resources/ExceptionShortcode.php b/tests/Resources/ExceptionShortcode.php index 4ceb288..420c2da 100644 --- a/tests/Resources/ExceptionShortcode.php +++ b/tests/Resources/ExceptionShortcode.php @@ -25,7 +25,7 @@ class ExceptionShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/tests/Resources/ExceptionViewShortcode.php b/tests/Resources/ExceptionViewShortcode.php index 3bc6b32..9fe8030 100644 --- a/tests/Resources/ExceptionViewShortcode.php +++ b/tests/Resources/ExceptionViewShortcode.php @@ -25,7 +25,7 @@ class ExceptionViewShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/tests/Resources/HrShortcode.php b/tests/Resources/HrShortcode.php index 335a654..18341c2 100644 --- a/tests/Resources/HrShortcode.php +++ b/tests/Resources/HrShortcode.php @@ -25,7 +25,7 @@ class HrShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content) diff --git a/tests/Resources/ValidationShortcode.php b/tests/Resources/ValidationShortcode.php index 204b471..085035b 100644 --- a/tests/Resources/ValidationShortcode.php +++ b/tests/Resources/ValidationShortcode.php @@ -29,7 +29,7 @@ class ValidationShortcode extends Shortcode /** * Render shortcode. * - * @param string $content + * @param string $content * @return string */ public function render($content)