Completed
Push — master ( 144202...6a00f8 )
by Peter
11:59
created
src/Traits/Model/TrashableTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@
 block discarded – undo
16 16
 use Exception;
17 17
 use Maslosoft\Mangan\EntityManager;
18 18
 use Maslosoft\Mangan\Events\Event;
19
-use Maslosoft\Mangan\Events\ModelEvent;
20 19
 use Maslosoft\Mangan\Events\RestoreEvent;
21 20
 use Maslosoft\Mangan\Events\TrashEvent;
22 21
 use Maslosoft\Mangan\Finder;
Please login to merge, or discard this patch.
src/Events/Event.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 	/**
364 364
 	 * Get properties which should be propagated.
365 365
 	 * NOTE: This is cached, as it might be called numerous times
366
-	 * @param object $model
366
+	 * @param AnnotatedInterface $model
367 367
 	 * @return bool[]
368 368
 	 */
369 369
 	private static function getPropagatedProperties($model)
@@ -385,6 +385,9 @@  discard block
 block discarded – undo
385 385
 		return self::$propagated[$key];
386 386
 	}
387 387
 
388
+	/**
389
+	 * @param string $className
390
+	 */
388 391
 	public static function getPartials($className)
389 392
 	{
390 393
 		if (!empty(self::$partials[$className]))
Please login to merge, or discard this patch.
docs/traits/index.md.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Maslosoft\Ilmatar\Components\Controller;
4
-use Maslosoft\Ilmatar\Widgets\Form\ActiveForm;
5 3
 use Maslosoft\Mangan\Traits\I18NAbleTrait;
6 4
 use Maslosoft\Zamm\DocBlock;
7 5
 use Maslosoft\Zamm\Iterator;
Please login to merge, or discard this patch.
src/Helpers/Transformator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -57,6 +57,7 @@
 block discarded – undo
57 57
 	 * Class constructor
58 58
 	 * @param AnnotatedInterface $model
59 59
 	 * @param string $transformatorClass
60
+	 * @param ManganMeta $meta
60 61
 	 */
61 62
 	public function __construct(AnnotatedInterface $model, $transformatorClass = TransformatorInterface::class, $meta = null)
62 63
 	{
Please login to merge, or discard this patch.
src/Traits/DataProvider/CriteriaTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 namespace Maslosoft\Mangan\Traits\DataProvider;
10 10
 
11
-use Maslosoft\Mangan\Criteria;
12 11
 use Maslosoft\Mangan\Interfaces\Criteria\DecoratableInterface;
13 12
 use Maslosoft\Mangan\Interfaces\CriteriaInterface;
14 13
 
Please login to merge, or discard this patch.
src/Traits/DataProvider/PaginationTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 	/**
31 31
 	 * Returns the pagination object.
32 32
 	 * @param string $className the pagination object class name, use this param to override default pagination class.
33
-	 * @return PaginationInterface|Pagination|false the pagination object. If this is false, it means the pagination is disabled.
33
+	 * @return \Maslosoft\Mangan\Interfaces\Criteria\LimitableInterface the pagination object. If this is false, it means the pagination is disabled.
34 34
 	 */
35 35
 	public function getPagination($className = Pagination::class)
36 36
 	{
Please login to merge, or discard this patch.