@@ -12,16 +12,13 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace Fabrica\Bundle\WebsiteBundle\Controller; |
| 14 | 14 | |
| 15 | -use Fabrica\Models\Code\Project; |
|
| 16 | -use Fabrica\Models\Code\ProjectGitAccess; |
|
| 17 | -use Fabrica\Models\Code\UserRoleProject; |
|
| 18 | 15 | use Fabrica\Bundle\CoreBundle\EventDispatcher\Event\ProjectEvent; |
| 19 | 16 | use Fabrica\Bundle\CoreBundle\EventDispatcher\FabricaEvents; |
| 20 | 17 | use Fabrica\Bundle\CoreBundle\Job\DeleteReferenceJob; |
| 21 | -use Fabrica\Component\Pagination\Adapter\GitLogAdapter; |
|
| 22 | -use Fabrica\Component\Pagination\Pager; |
|
| 18 | +use Fabrica\Models\Code\Project; |
|
| 19 | +use Fabrica\Models\Code\ProjectGitAccess; |
|
| 20 | +use Fabrica\Models\Code\UserRoleProject; |
|
| 23 | 21 | use Fabrica\Tools\Programs\Git\Blob; |
| 24 | -use Fabrica\Tools\Programs\Git\Reference; |
|
| 25 | 22 | use Fabrica\Tools\Programs\Git\Tree; |
| 26 | 23 | use Symfony\Component\HttpFoundation\Request; |
| 27 | 24 | |
@@ -14,14 +14,10 @@ |
||
| 14 | 14 | |
| 15 | 15 | use Symfony\Component\Form\AbstractType; |
| 16 | 16 | use Symfony\Component\Form\FormBuilderInterface; |
| 17 | -use Symfony\Component\Form\FormEvent; |
|
| 18 | -use Symfony\Component\Form\FormEvents; |
|
| 19 | 17 | use Symfony\Component\OptionsResolver\OptionsResolverInterface; |
| 20 | 18 | use Symfony\Component\Security\Core\Encoder\EncoderFactoryInterface; |
| 21 | 19 | use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; |
| 22 | 20 | |
| 23 | -use Fabrica\Models\Code\User; |
|
| 24 | - |
|
| 25 | 21 | /** |
| 26 | 22 | * @author Julien DIDIER <[email protected]> |
| 27 | 23 | * @author Alexandre Salomé <[email protected]> |
@@ -15,10 +15,6 @@ |
||
| 15 | 15 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 16 | 16 | |
| 17 | 17 | use Fabrica\Models\Code\Project; |
| 18 | -use Fabrica\Models\Code\User; |
|
| 19 | -use Fabrica\Tools\Programs\Git\Blob; |
|
| 20 | -use Fabrica\Tools\Programs\Git\Reference; |
|
| 21 | -use Fabrica\Tools\Programs\Git\Tree; |
|
| 22 | 18 | |
| 23 | 19 | class FabricaExtension extends \Twig_Extension |
| 24 | 20 | { |
@@ -13,7 +13,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | */ |
@@ -5,8 +5,8 @@ |
||
| 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 | { |
@@ -12,8 +12,8 @@ |
||
| 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. |
@@ -36,13 +36,14 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -14,8 +14,6 @@ |
||
| 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 | * |
@@ -12,8 +12,8 @@ |
||
| 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]> |
@@ -34,6 +34,9 @@ discard block |
||
| 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 |
||
| 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; |