Skip to content
Open
Show file tree
Hide file tree
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
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