Skip to content

Commit

Permalink
PhpDoc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 committed Apr 7, 2022
1 parent 466603f commit 73f5ebb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
15 changes: 8 additions & 7 deletions src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Assets
{

/**
* @var Illuminate\Support\Collection
* @var \Illuminate\Support\Collection
*/
protected $collection;

Expand All @@ -25,7 +25,7 @@ class Assets
/**
* Constructor method.
*
* @return null
* @return void
*/
public function __construct()
{
Expand Down Expand Up @@ -55,7 +55,7 @@ public function add($assets, $namespace = null)
/**
* Add a dependency to an asset.
*
* @return Asset
* @return \Caffeinated\Bonsai\Assets
*/
public function dependsOn($dependency)
{
Expand All @@ -78,7 +78,7 @@ public function dependsOn($dependency)
/**
* Builds the CSS HTML tags.
*
* @return Closure|string
* @return string
*/
public function css()
{
Expand All @@ -95,7 +95,7 @@ public function css()
/**
* Builds the CSS HTML tags.
*
* @return Closure|string
* @return string
*/
public function js()
{
Expand Down Expand Up @@ -157,7 +157,8 @@ protected function isBonsai($asset)
* Add an asset file to the collection.
*
* @param array|string $assets
* @return Assets
* @param null|string $namespace
* @return \Caffeinated\Bonsai\Assets
*/
protected function addAsset($assets, $namespace = null)
{
Expand Down Expand Up @@ -191,7 +192,7 @@ protected function addAsset($assets, $namespace = null)
* Parse a bonsai.json file and add the assets to the collection.
*
* @param string $path
* @return Assets
* @return \Caffeinated\Bonsai\Assets
*/
protected function parseBonsai($path)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Bonsai.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class Bonsai
{
/**
* @var Illuminate\Support\Collection
* @var \Illuminate\Support\Collection
*/
protected $collection;

Expand All @@ -32,7 +32,7 @@ public function __construct(Factory $view)
*
* @param string $namespace
* @param string $path
* @return null
* @return \Caffeinated\Bonsai\Assets
*/
public function plant($callback = null)
{
Expand All @@ -52,7 +52,7 @@ public function plant($callback = null)
/**
* Get and return the bonsai collection.
*
* @return mixed
* @return \Caffeinated\Bonsai\Assets|null
*/
public function get()
{
Expand All @@ -63,7 +63,7 @@ public function get()
* Add assets to a pre-planted Bonsai collection.
*
* @param array|string $assets
* @return mixed
* @return \Caffeinated\Bonsai\Assets|void
*/
public function add($assets)
{
Expand Down

0 comments on commit 73f5ebb

Please sign in to comment.