Completed
Push — master ( 2247f3...204e6d )
by Stéphane
01:33
created
src/Assets/Controller.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Forms/Fields/Field.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Table/Table.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Assets/Assetic/WeightedAssetCollection.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Forms/events.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Foundation/events.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.