@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | $this->am = $assetManager; |
24 | 24 | } |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $type |
|
28 | + */ |
|
26 | 29 | protected function getCache($type) |
27 | 30 | { |
28 | 31 | return new FilesystemCache(app('path.storage') . '/cache/assets_' . $type); |
@@ -74,6 +77,9 @@ discard block |
||
74 | 77 | return $this->prepareResponse($js, 'application/javascript; charset=utf-8'); |
75 | 78 | } |
76 | 79 | |
80 | + /** |
|
81 | + * @param string $content_type |
|
82 | + */ |
|
77 | 83 | protected function prepareResponse(AssetInterface $assets, $content_type) |
78 | 84 | { |
79 | 85 | $response = Response::stream( |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Rocket\UI\Assets; |
4 | 4 | |
5 | 5 | use App; |
6 | +use Assetic\AssetManager; |
|
6 | 7 | use Assetic\Asset\AssetCache; |
7 | 8 | use Assetic\Asset\AssetInterface; |
8 | -use Assetic\AssetManager; |
|
9 | 9 | use Assetic\Cache\FilesystemCache; |
10 | 10 | use Event; |
11 | 11 | use Response; |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | /** |
145 | 145 | * Set the javascript queueing instance callback |
146 | 146 | * |
147 | - * @param $callable callable |
|
147 | + * @param \Closure $callable callable |
|
148 | 148 | */ |
149 | 149 | public static function setJSResolver($callable) |
150 | 150 | { |
@@ -414,6 +414,9 @@ discard block |
||
414 | 414 | return substr($s, 0, 8) . '_' . substr($s, 8, 4) . '_' . substr($s, 12, 4) . '_' . substr($s, 16, 4); |
415 | 415 | } |
416 | 416 | |
417 | + /** |
|
418 | + * @param string $string |
|
419 | + */ |
|
417 | 420 | public function template($string, array $args = []) |
418 | 421 | { |
419 | 422 | $class = \Rocket\UI\Forms\Templates\Bootstrap::class; |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Set the caption |
85 | 85 | * |
86 | - * @param $caption |
|
86 | + * @param string|null $caption |
|
87 | 87 | */ |
88 | 88 | public function setCaption($caption) |
89 | 89 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | /** |
142 | 142 | * Prepare the classes for the table |
143 | 143 | * |
144 | - * @param $has_header |
|
144 | + * @param integer $has_header |
|
145 | 145 | */ |
146 | 146 | private function prepareTableClasses($has_header) |
147 | 147 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | use Assetic\Asset\AssetCollection; |
4 | 4 | use Assetic\Asset\AssetInterface; |
5 | -use Assetic\Filter\FilterInterface; |
|
6 | 5 | use Assetic\Asset\AssetReference; |
6 | +use Assetic\Filter\FilterInterface; |
|
7 | 7 | use Rocket\UI\Assets\Assetic\Asset\WeightedAsset; |
8 | 8 | |
9 | 9 | class WeightedAssetCollection extends AssetCollection |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Assetic\Asset\AssetCollection; |
|
4 | 3 | use Assetic\AssetManager; |
4 | +use Assetic\Asset\AssetCollection; |
|
5 | 5 | use Rocket\UI\Assets\Assetic\Asset\AssetReference; |
6 | 6 | use Rocket\UI\Assets\Assetic\Asset\CssAsset; |
7 | 7 | use Rocket\UI\Assets\Assetic\Asset\JsAsset; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Assetic\Asset\AssetCollection; |
|
4 | 3 | use Assetic\AssetManager; |
4 | +use Assetic\Asset\AssetCollection; |
|
5 | 5 | use Rocket\UI\Assets\Assetic\Asset\AssetReference; |
6 | 6 | use Rocket\UI\Assets\Assetic\Asset\CssAsset; |
7 | 7 | use Rocket\UI\Assets\Assetic\Asset\JsAsset; |