Completed
Push — master ( 5b2853...904b84 )
by Ricardo
03:18
created
src/Cacheable/CacheableEloquent.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Register an updated model event with the dispatcher.
15 15
      *
16
-     * @param \Closure|string $callback
16
+     * @param Closure $callback
17 17
      *
18 18
      * @return void
19 19
      */
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Register a created model event with the dispatcher.
24 24
      *
25
-     * @param \Closure|string $callback
25
+     * @param Closure $callback
26 26
      *
27 27
      * @return void
28 28
      */
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Register a deleted model event with the dispatcher.
33 33
      *
34
-     * @param \Closure|string $callback
34
+     * @param Closure $callback
35 35
      *
36 36
      * @return void
37 37
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 namespace Fabrica\Cacheable;
6 6
 
7 7
 use Closure;
8
-use Illuminate\Database\Eloquent\Model;
9 8
 use Illuminate\Database\Eloquent\Builder;
9
+use Illuminate\Database\Eloquent\Model;
10 10
 
11 11
 trait CacheableEloquent
12 12
 {
Please login to merge, or discard this patch.
src/Component/Buzz/Browser/FabricaBrowser.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace Fabrica\Component\Buzz\Browser;
14 14
 
15
-use Buzz\Message\Request;
16 15
 use Buzz\Browser;
16
+use Buzz\Message\Request;
17 17
 
18 18
 /**
19 19
  * Buzz browser configured for Fabrica APIs.
Please login to merge, or discard this patch.
src/Component/Config/ConfigInterface.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,13 +36,14 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @param string $key   Key of the value to set
38 38
      * @param mixed  $value Value to set
39
+     * @return void
39 40
      */
40 41
     public function set($key, $value);
41 42
 
42 43
     /**
43 44
      * Removes a given value from config.
44 45
      *
45
-     * @param string $value The key of value to remove.
46
+     * @return void
46 47
      */
47 48
     public function remove($key);
48 49
 
@@ -55,11 +56,13 @@  discard block
 block discarded – undo
55 56
 
56 57
     /**
57 58
      * Replaces all values with given one.
59
+     * @return void
58 60
      */
59 61
     public function setAll(array $values);
60 62
 
61 63
     /**
62 64
      * Merge values in current config
65
+     * @return void
63 66
      */
64 67
     public function merge(array $values);
65 68
 }
Please login to merge, or discard this patch.
src/Component/Config/MysqlConfig.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -14,8 +14,6 @@
 block discarded – undo
14 14
 
15 15
 use Doctrine\DBAL\Connection;
16 16
 
17
-use Fabrica\Component\Config\Exception\RuntimeException;
18
-
19 17
 /**
20 18
  * Bulk MySQL version of Config: deletes and reinsert rows.
21 19
  *
Please login to merge, or discard this patch.
src/Component/Config/Tests/ChainConfigTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace Fabrica\Component\Config\Tests;
14 14
 
15
-use Fabrica\Component\Config\ChainConfig;
16 15
 use Fabrica\Component\Config\ArrayConfig;
16
+use Fabrica\Component\Config\ChainConfig;
17 17
 
18 18
 /**
19 19
  * @author Alexandre Salomé <[email protected]>
Please login to merge, or discard this patch.
src/Component/Pagination/Pager.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@  discard block
 block discarded – undo
34 34
         $this->offset = $offset;
35 35
     }
36 36
 
37
+    /**
38
+     * @param integer $page
39
+     */
37 40
     public function setPage($page)
38 41
     {
39 42
         $this->offset = (max(1, (int) $page) - 1) * $this->perPage;
@@ -61,6 +64,9 @@  discard block
 block discarded – undo
61 64
         return $this->offset;
62 65
     }
63 66
 
67
+    /**
68
+     * @param integer $perPage
69
+     */
64 70
     public function setPerPage($perPage)
65 71
     {
66 72
         $this->perPage = (int) $perPage;
Please login to merge, or discard this patch.
src/Component/Pagination/Tests/PagerTest.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 
13 13
 namespace Fabrica\Component\Pagination\Tests;
14 14
 
15
-use Fabrica\Component\Pagination\Pager;
16 15
 use Fabrica\Component\Pagination\Adapter\ArrayAdapter;
16
+use Fabrica\Component\Pagination\Pager;
17 17
 
18 18
 class PagerTest extends \PHPUnit\Framework\TestCase
19 19
 {
Please login to merge, or discard this patch.
src/Console/Commands/Sync/PackagesSync.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
 namespace Fabrica\Console\Commands\Sync;
4 4
 
5
-use Illuminate\Console\Command;
6 5
 use Fabrica\Services\RepositoryFolderService;
6
+use Illuminate\Console\Command;
7 7
 
8 8
 class PackagesSync extends Command
9 9
 {
Please login to merge, or discard this patch.
src/FabricaProvider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
     /**
172 172
      * Get the services provided by the provider.
173 173
      *
174
-     * @return array
174
+     * @return string[]
175 175
      */
176 176
     public function provides()
177 177
     {
Please login to merge, or discard this patch.
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -2,22 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica;
4 4
 
5
-use App;
6 5
 use Config;
7
-use Fabrica\Facades\Fabrica as FabricaFacade;
8 6
 use Fabrica\Services\FabricaService;
9
-use Illuminate\Contracts\Events\Dispatcher;
10 7
 
11
-use Illuminate\Foundation\AliasLoader;
12
-use Illuminate\Routing\Router;
13
-use Illuminate\Support\Collection;
14 8
 use Illuminate\Support\Facades\View;
15 9
 use Illuminate\Support\ServiceProvider;
16 10
 
17 11
 use Log;
18 12
 
19 13
 use Muleta\Traits\Providers\ConsoleTools;
20
-use Route;
21 14
 
22 15
 class FabricaProvider extends ServiceProvider
23 16
 {
Please login to merge, or discard this patch.