Skip to content

Commit

Permalink
Merge branch '5.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Feb 25, 2020
2 parents d1e781e + 5b0fd84 commit de7d0f1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 109 deletions.
1 change: 0 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ return PhpCsFixer\Config::create()
'no_extra_consecutive_blank_lines' => false,
'no_unneeded_control_parentheses' => false,
'not_operator_with_successor_space' => true,
'no_superfluous_phpdoc_tags' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => false,
'phpdoc_no_empty_return' => false,
Expand Down
24 changes: 0 additions & 24 deletions src/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ class Asset implements Htmlable

/**
* Create a new asset container instance.
*
* @param string $name
* @param \Orchestra\Asset\Dispatcher $dispatcher
*/
public function __construct(string $name, Dispatcher $dispatcher)
{
Expand Down Expand Up @@ -73,8 +70,6 @@ final public function removeVersioning(): self
/**
* Set the asset container path prefix.
*
* @param string|null $path
*
* @return $this
*/
public function prefix(?string $path = null)
Expand Down Expand Up @@ -103,7 +98,6 @@ public function prefix(?string $path = null)
* </code>
*
* @param string|array $name
* @param string $source
* @param string|array $dependencies
* @param string|array $attributes
* @param string|array $replaces
Expand All @@ -126,7 +120,6 @@ public function add(
* Add a CSS file to the registered assets.
*
* @param string|array $name
* @param string $source
* @param string|array $dependencies
* @param string|array $attributes
* @param string|array $replaces
Expand All @@ -153,7 +146,6 @@ public function style(
* Add a JavaScript file to the registered assets.
*
* @param string|array $name
* @param string $source
* @param string|array $dependencies
* @param string|array $attributes
* @param string|array $replaces
Expand All @@ -175,14 +167,10 @@ public function script(
/**
* Add an asset to the array of registered assets.
*
* @param string $type
* @param string|array $name
* @param string $source
* @param string|array $dependencies
* @param string|array $attributes
* @param string|array $replaces
*
* @return void
*/
protected function register(
string $type,
Expand Down Expand Up @@ -211,8 +199,6 @@ protected function register(

/**
* Get the links to all of the registered CSS assets.
*
* @return string
*/
public function styles(): string
{
Expand All @@ -221,8 +207,6 @@ public function styles(): string

/**
* Get the links to all of the registered JavaScript assets.
*
* @return string
*/
public function scripts(): string
{
Expand All @@ -231,8 +215,6 @@ public function scripts(): string

/**
* Get the links to all the registered CSS and JavaScript assets.
*
* @return string
*/
public function show(): string
{
Expand All @@ -241,8 +223,6 @@ public function show(): string

/**
* Get content as a string of HTML.
*
* @return string
*/
public function toHtml(): string
{
Expand All @@ -251,10 +231,6 @@ public function toHtml(): string

/**
* Get all of the registered assets for a given type / group.
*
* @param string $group
*
* @return string
*/
protected function group(string $group): string
{
Expand Down
6 changes: 0 additions & 6 deletions src/AssetServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public function register()

/**
* Register the service provider.
*
* @return void
*/
protected function registerAsset(): void
{
Expand All @@ -36,8 +34,6 @@ protected function registerAsset(): void

/**
* Register the service provider.
*
* @return void
*/
protected function registerDispatcher(): void
{
Expand All @@ -53,8 +49,6 @@ protected function registerDispatcher(): void

/**
* Register the service provider.
*
* @return void
*/
protected function registerResolver(): void
{
Expand Down
36 changes: 0 additions & 36 deletions src/DependencyResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ class DependencyResolver
{
/**
* Sort and retrieve assets based on their dependencies.
*
* @param array $assets
*
* @return array
*/
public function arrange(array $assets): array
{
Expand All @@ -30,14 +26,6 @@ public function arrange(array $assets): array

/**
* Evaluate an asset and its dependencies.
*
* @param string $asset
* @param array $value
* @param array $original
* @param array $sorted
* @param array $assets
*
* @return void
*/
protected function evaluateAsset(
string $asset,
Expand All @@ -61,13 +49,6 @@ protected function evaluateAsset(

/**
* Evaluate an asset with dependencies.
*
* @param string $asset
* @param array $original
* @param array $sorted
* @param array $assets
*
* @return void
*/
protected function evaluateAssetWithDependencies(
string $asset,
Expand Down Expand Up @@ -100,14 +81,7 @@ protected function evaluateAssetWithDependencies(
* dependency doesn't exist, no error or warning will be given. For the
* other cases, an exception is thrown.
*
* @param string $asset
* @param string $dependency
* @param array $original
* @param array $assets
*
* @throws \RuntimeException
*
* @return bool
*/
protected function dependencyIsValid(
string $asset,
Expand All @@ -133,10 +107,6 @@ protected function dependencyIsValid(

/**
* Replace asset dependencies.
*
* @param array $assets
*
* @return void
*/
protected function replaceAssetDependencies(array &$assets): void
{
Expand All @@ -155,12 +125,6 @@ protected function replaceAssetDependencies(array &$assets): void

/**
* Resolve asset dependencies after replacement.
*
* @param array $assets
* @param string $asset
* @param array $replaces
*
* @return void
*/
protected function resolveDependenciesForAsset(
array &$assets,
Expand Down
33 changes: 0 additions & 33 deletions src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ class Dispatcher

/**
* Create a new asset dispatcher instance.
*
* @param \Illuminate\Filesystem\Filesystem $files
* @param \Collective\Html\HtmlBuilder $html
* @param \Orchestra\Asset\DependencyResolver $resolver
* @param string $path
*/
public function __construct(
Filesystem $files,
Expand All @@ -65,8 +60,6 @@ public function __construct(

/**
* Enable asset versioning.
*
* @return void
*/
public function addVersioning(): void
{
Expand All @@ -75,8 +68,6 @@ public function addVersioning(): void

/**
* Disable asset versioning.
*
* @return void
*/
public function removeVersioning(): void
{
Expand All @@ -85,12 +76,6 @@ public function removeVersioning(): void

/**
* Dispatch assets by group.
*
* @param string $group
* @param array $assets
* @param string|null $prefix
*
* @return string
*/
public function run(string $group, array $assets = [], ?string $prefix = null): string
{
Expand All @@ -111,11 +96,6 @@ public function run(string $group, array $assets = [], ?string $prefix = null):

/**
* Get the HTML link to a registered asset.
*
* @param string $group
* @param array|null $asset
*
* @return string
*/
public function asset(string $group, ?array $asset = null): string
{
Expand All @@ -132,10 +112,6 @@ public function asset(string $group, ?array $asset = null): string

/**
* Determine if path is local.
*
* @param string $path
*
* @return bool
*/
protected function isLocalPath(string $path): bool
{
Expand All @@ -148,10 +124,6 @@ protected function isLocalPath(string $path): bool

/**
* Get asset source URL.
*
* @param string $source
*
* @return string
*/
protected function getAssetSourceUrl(string $source): string
{
Expand All @@ -167,11 +139,6 @@ protected function getAssetSourceUrl(string $source): string

/**
* Get asset source URL with Modified time.
*
* @param string $source
* @param string $file
*
* @return string
*/
protected function getAssetSourceUrlWithModifiedTime(string $source, string $file): string
{
Expand Down
9 changes: 0 additions & 9 deletions src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ class Factory

/**
* Construct a new environment.
*
* @param \Orchestra\Asset\Dispatcher $dispatcher
*/
public function __construct(Dispatcher $dispatcher)
{
Expand All @@ -42,10 +40,6 @@ public function __construct(Dispatcher $dispatcher)
* // Get a named asset container
* $container = Orchestra\Asset::container('footer');
* </code>
*
* @param string $container
*
* @return \Orchestra\Asset\Asset
*/
public function container(string $container = 'default'): Asset
{
Expand All @@ -67,9 +61,6 @@ public function container(string $container = 'default'): Asset
* Orchestra\Asset::add('jquery', 'js/jquery.js');
* </code>
*
* @param string $method
* @param array $parameters
*
* @return mixed
*/
public function __call(string $method, array $parameters)
Expand Down

0 comments on commit de7d0f1

Please sign in to comment.