@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** FileSender.php */ |
11 | 11 | namespace Core\Controller\Plugin; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | $response->getHeaders()->addHeaderline('Content-Type', $file->type) |
35 | - ->addHeaderline('Content-Length', $file->size); |
|
35 | + ->addHeaderline('Content-Length', $file->size); |
|
36 | 36 | $response->sendHeaders(); |
37 | 37 | |
38 | 38 | $resource = $file->getResource(); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | const NAMESPACE_INFO = 'info'; |
22 | 22 | const NAMESPACE_WARNING = 'warning'; |
23 | 23 | const NAMESPACE_DANGER = 'danger'; |
24 | - const NAMESPACE_SUCCESS = 'success'; |
|
24 | + const NAMESPACE_SUCCESS = 'success'; |
|
25 | 25 | |
26 | 26 | protected $namespace2priority = array( |
27 | 27 | self::NAMESPACE_INFO => NotificationEntity::INFO, |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | public function setListener($listener) |
61 | 61 | { |
62 | - $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this,'createOutput'), 1); |
|
62 | + $listener->getSharedManager()->attach('*', NotificationEvent::EVENT_NOTIFICATION_HTML, array($this, 'createOutput'), 1); |
|
63 | 63 | $this->notificationListener = $listener; |
64 | 64 | } |
65 | 65 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return $this->$method($value); |
42 | 42 | } |
43 | 43 | |
44 | - throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'"); |
|
44 | + throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'"); |
|
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
@@ -138,7 +138,6 @@ |
||
138 | 138 | * If the property is an array, the check will return, if this |
139 | 139 | * array has items or not. |
140 | 140 | * |
141 | - * @param string $name |
|
142 | 141 | * @return boolean |
143 | 142 | */ |
144 | 143 | public function __isset($property) |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Core Entitys */ |
11 | 11 | namespace Core\Entity; |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /** |
16 | 16 | * |
17 | 17 | * @ODM\MappedSuperclass |
18 | - */ |
|
18 | + */ |
|
19 | 19 | abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface |
20 | 20 | { |
21 | 21 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** FileEntity.php */ |
11 | 11 | namespace Core\Entity; |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | |
16 | 16 | /** |
17 | 17 | * |
18 | - |
|
19 | 18 | */ |
20 | 19 | interface FileInterface extends |
21 | 20 | IdentifiableEntityInterface, |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * @param object $object |
47 | 47 | * @return object |
48 | 48 | */ |
49 | - public function hydrate (array $data, $object) |
|
49 | + public function hydrate(array $data, $object) |
|
50 | 50 | { |
51 | 51 | |
52 | 52 | return $object; |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | * @return array|string |
58 | 58 | * @throws \InvalidArgumentException |
59 | 59 | */ |
60 | - public function extract ($object) |
|
60 | + public function extract($object) |
|
61 | 61 | { |
62 | 62 | if (!$object instanceof EntityInterface) { |
63 | 63 | throw new \InvalidArgumentException("Extract only from Entities"); |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Jobs\Entity\Hydrator; |
12 | 12 |
@@ -118,9 +118,9 @@ |
||
118 | 118 | $entity = $this->getTargetEntity(); |
119 | 119 | |
120 | 120 | $entity->setUser($value['user']) |
121 | - ->setName($value['name']) |
|
122 | - ->setType($value['type']) |
|
123 | - ->setFile($value['file']); |
|
121 | + ->setName($value['name']) |
|
122 | + ->setType($value['type']) |
|
123 | + ->setFile($value['file']); |
|
124 | 124 | |
125 | 125 | return $entity; |
126 | 126 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | // ensures garbage removal |
80 | 80 | register_shutdown_function( |
81 | - function ($filename) { |
|
81 | + function($filename) { |
|
82 | 82 | @unlink($filename); |
83 | 83 | }, |
84 | 84 | $tmp |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** FileUploadStrategy.php */ |
11 | 11 | namespace Core\Entity\Hydrator\Strategy; |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | $file = $this->getFileEntity(); |
62 | 62 | |
63 | 63 | $file->setName($value['name']) |
64 | - ->setType($value['type']) |
|
65 | - ->setFile($value['tmp_name']); |
|
64 | + ->setType($value['type']) |
|
65 | + ->setFile($value['tmp_name']); |
|
66 | 66 | |
67 | 67 | return $file; |
68 | 68 | } |
@@ -291,7 +291,7 @@ |
||
291 | 291 | if ($build) { |
292 | 292 | $this->build(); |
293 | 293 | } |
294 | - $this->hasChanged= true; |
|
294 | + $this->hasChanged = true; |
|
295 | 295 | return $this; |
296 | 296 | } |
297 | 297 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |