Completed
Push — master ( 2db1a0...30dbf0 )
by Adam
31:22 queued 22:03
created
src/IPub/DoctrineBlameable/DI/DoctrineBlameableExtension.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * DoctrineBlameableExtension.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec <[email protected]>
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     DI
10
- * @since          1.0.0
11
- *
12
- * @date           01.01.16
13
- */
3
+	 * DoctrineBlameableExtension.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec <[email protected]>
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     DI
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           01.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\DI;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityAuthor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IEntityAuthor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           10.11.15
13
- */
3
+	 * IEntityAuthor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           10.11.15
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/IEntityEditor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * IEntityEditor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           11.11.15
13
- */
3
+	 * IEntityEditor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           11.11.15
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityAuthor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TEntityAuthor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           29.01.14
13
- */
3
+	 * TEntityAuthor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           29.01.14
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityEditor.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TEntityEditor.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           29.01.14
13
- */
3
+	 * TEntityEditor.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           29.01.14
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Events/BlameableListener.php 4 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * BlameableListener.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Events
10
- * @since          1.0.0
11
- *
12
- * @date           01.01.16
13
- */
3
+	 * BlameableListener.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Events
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           01.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Events;
16 16
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 		$classMetadata = $em->getClassMetadata(get_class($entity));
218 218
 
219 219
 		if ($config = $this->driver->getObjectConfigurations($classMetadata->getName())) {
220
-			foreach(['update', 'create'] as $event) {
220
+			foreach (['update', 'create'] as $event) {
221 221
 				if (isset($config[$event])) {
222 222
 					foreach ($config[$event] as $field) {
223 223
 						$currentValue = $classMetadata->getReflectionProperty($field)->getValue($entity);
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 		$user = $this->getUser();
349 349
 
350 350
 		if ($classMetadata->hasAssociation($field)) {
351
-			if ($user !== NULL && ! is_object($user)) {
351
+			if ($user !== NULL && !is_object($user)) {
352 352
 				throw new Exceptions\InvalidArgumentException("Blame is reference, user must be an object");
353 353
 			}
354 354
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	/**
63 63
 	 * Register events
64 64
 	 *
65
-	 * @return array
65
+	 * @return string[]
66 66
 	 */
67 67
 	public function getSubscribedEvents()
68 68
 	{
Please login to merge, or discard this patch.
Unused Use Statements   -6 removed lines patch added patch discarded remove patch
@@ -15,15 +15,9 @@
 block discarded – undo
15 15
 namespace IPub\DoctrineBlameable\Events;
16 16
 
17 17
 use Nette;
18
-use Nette\Utils;
19
-
20 18
 use Doctrine;
21
-use Doctrine\Common;
22 19
 use Doctrine\ORM;
23
-
24
-use Kdyby;
25 20
 use Kdyby\Events;
26
-
27 21
 use IPub;
28 22
 use IPub\DoctrineBlameable;
29 23
 use IPub\DoctrineBlameable\Exceptions;
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Mapping/Driver/Blameable.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 	/**
304 304
 	 * Create default annotation reader for extensions
305 305
 	 *
306
-	 * @return Common\Annotations\AnnotationReader
306
+	 * @return Common\Annotations\CachedReader
307 307
 	 */
308 308
 	private function getDefaultAnnotationReader()
309 309
 	{
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 	/**
322 322
 	 * Checks if $field type is valid
323 323
 	 *
324
-	 * @param object $meta
324
+	 * @param ORM\Mapping\ClassMetadata $meta
325 325
 	 * @param string $field
326 326
 	 *
327 327
 	 * @return boolean
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,9 @@
 block discarded – undo
15 15
 namespace IPub\DoctrineBlameable\Mapping\Driver;
16 16
 
17 17
 use Nette;
18
-
19 18
 use Doctrine;
20 19
 use Doctrine\Common;
21 20
 use Doctrine\ORM;
22
-
23 21
 use IPub;
24 22
 use IPub\DoctrineBlameable;
25 23
 use IPub\DoctrineBlameable\Exceptions;
Please login to merge, or discard this patch.
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Blameable.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Driver
10
- * @since          1.0.0
11
- *
12
- * @date           05.01.16
13
- */
3
+	 * Blameable.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Driver
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           05.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Mapping\Driver;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Security/UserCallable.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * UserCallable.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Security
10
- * @since          1.0.0
11
- *
12
- * @date           05.01.16
13
- */
3
+	 * UserCallable.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Security
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           05.01.16
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Security;
16 16
 
Please login to merge, or discard this patch.
src/IPub/DoctrineBlameable/Entities/TEntityRemover.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * TEntityRemover.php
4
- *
5
- * @copyright      More in license.md
6
- * @license        http://www.ipublikuj.eu
7
- * @author         Adam Kadlec http://www.ipublikuj.eu
8
- * @package        iPublikuj:DoctrineBlameable!
9
- * @subpackage     Entities
10
- * @since          1.0.0
11
- *
12
- * @date           29.01.14
13
- */
3
+	 * TEntityRemover.php
4
+	 *
5
+	 * @copyright      More in license.md
6
+	 * @license        http://www.ipublikuj.eu
7
+	 * @author         Adam Kadlec http://www.ipublikuj.eu
8
+	 * @package        iPublikuj:DoctrineBlameable!
9
+	 * @subpackage     Entities
10
+	 * @since          1.0.0
11
+	 *
12
+	 * @date           29.01.14
13
+	 */
14 14
 
15 15
 namespace IPub\DoctrineBlameable\Entities;
16 16
 
Please login to merge, or discard this patch.