@@ -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 | { |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | $this->importDirs[] = $path; |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param \Assetic\Cache\FilesystemCache $cache |
|
88 | + */ |
|
86 | 89 | public function setCache($cache) |
87 | 90 | { |
88 | 91 | $this->cache = $cache; |
@@ -120,6 +123,9 @@ discard block |
||
120 | 123 | return $this->includedFilesArray; |
121 | 124 | } |
122 | 125 | |
126 | + /** |
|
127 | + * @param integer $lastModified |
|
128 | + */ |
|
123 | 129 | public function getCachedTree($lastModified) |
124 | 130 | { |
125 | 131 | $key = md5($this->source . '_tree'); |
@@ -2,11 +2,11 @@ |
||
2 | 2 | |
3 | 3 | namespace Rocket\UI\Assets\Assetic\Asset; |
4 | 4 | |
5 | -use Assetic\Util\LessUtils; |
|
6 | 5 | use AsseticExt\Filter\CssImportFilter; |
7 | -use Assetic\Util\PathUtils; |
|
8 | 6 | use Assetic\Asset\FileAsset; |
9 | 7 | use Assetic\Filter\FilterInterface; |
8 | +use Assetic\Util\LessUtils; |
|
9 | +use Assetic\Util\PathUtils; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * Represents a CSS asset loaded from a file. |
@@ -123,6 +123,9 @@ |
||
123 | 123 | { |
124 | 124 | } |
125 | 125 | |
126 | + /** |
|
127 | + * @param string $currentDir |
|
128 | + */ |
|
126 | 129 | public static function findFile($url, $dirs, $currentDir = null) |
127 | 130 | { |
128 | 131 | if ($currentDir) { |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use Assetic\Asset\AssetInterface; |
15 | 15 | use Assetic\Asset\FileAsset; |
16 | -use Assetic\Filter\FilterInterface; |
|
17 | 16 | use Assetic\Filter\BaseCssFilter; |
17 | +use Assetic\Filter\FilterInterface; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Inlines imported stylesheets. |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | /** |
147 | 147 | * Set the javascript queueing instance callback |
148 | 148 | * |
149 | - * @param $callable callable |
|
149 | + * @param \Closure $callable callable |
|
150 | 150 | */ |
151 | 151 | public static function setJSResolver($callable) |
152 | 152 | { |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | /** |
174 | 174 | * Set the Form Validator instance callback |
175 | 175 | * |
176 | - * @param $callable callable |
|
176 | + * @param \Closure $callable callable |
|
177 | 177 | */ |
178 | 178 | public static function setValidatorResolver($callable) |
179 | 179 | { |
@@ -424,6 +424,9 @@ discard block |
||
424 | 424 | return substr($s, 0, 8) . '_' . substr($s, 8, 4) . '_' . substr($s, 12, 4) . '_' . substr($s, 16, 4); |
425 | 425 | } |
426 | 426 | |
427 | + /** |
|
428 | + * @param string $string |
|
429 | + */ |
|
427 | 430 | public function template($string, array $args = array()) |
428 | 431 | { |
429 | 432 | $class = 'Form_Templates_Bootstrap'; |
@@ -2,10 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace Rocket\UI\Script\Support\Middleware; |
4 | 4 | |
5 | -use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
6 | -use Symfony\Component\HttpFoundation\Request; |
|
7 | -use Symfony\Component\HttpFoundation\Response; |
|
8 | 5 | use Rocket\UI\Script\Support\Laravel\ScriptFacade as JS; |
6 | +use Symfony\Component\HttpFoundation\Request; |
|
7 | +use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
9 | 8 | |
10 | 9 | class ScriptMiddleware implements HttpKernelInterface { |
11 | 10 |