@@ -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; |
@@ -31,9 +31,9 @@ |
||
31 | 31 | protected $id; |
32 | 32 | |
33 | 33 | /** |
34 | - * @var EntityInterface |
|
35 | - * @ODM\EmbedOne |
|
36 | - * @ODM\Index |
|
34 | + * @var EntityInterface |
|
35 | + * @ODM\EmbedOne |
|
36 | + * @ODM\Index |
|
37 | 37 | */ |
38 | 38 | protected $entity; |
39 | 39 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * Application configuration |
|
5 | - * |
|
6 | - * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | - * @license GPLv3 |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * Application configuration |
|
5 | + * |
|
6 | + * @copyright (c) 2013-2015 Cross Solution (http://cross-solution.de) |
|
7 | + * @license GPLv3 |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | namespace Core\Entity; |
11 | 11 |
@@ -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 | /** XssFilter.php */ |
11 | 11 | namespace Core\Filter; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function filter($value) |
60 | 60 | { |
61 | - $htmlPurifier = $this->getHtmlPurifier(); |
|
62 | - return $htmlPurifier->filter($value); |
|
61 | + $htmlPurifier = $this->getHtmlPurifier(); |
|
62 | + return $htmlPurifier->filter($value); |
|
63 | 63 | } |
64 | 64 | } |
@@ -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 forms */ |
11 | 11 | namespace Core\Form; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | } |
289 | 289 | $formName .= $form['name']; |
290 | 290 | $formInstance->setName($formName) |
291 | - ->setAttribute('action', '?form=' . $formName); |
|
291 | + ->setAttribute('action', '?form=' . $formName); |
|
292 | 292 | |
293 | 293 | //$testKey = $this->getActionFor($form['type']); |
294 | 294 |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | { |
99 | 99 | $self = $this; |
100 | 100 | $forms = array_map( |
101 | - function ($key) use ($self) { |
|
101 | + function($key) use ($self) { |
|
102 | 102 | return $self->getForm($key); |
103 | 103 | }, |
104 | 104 | $this->activeForms |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | } |
443 | 443 | $this->activeForms = array_filter( |
444 | 444 | $this->activeForms, |
445 | - function ($item) use ($key) { |
|
445 | + function($item) use ($key) { |
|
446 | 446 | return !in_array($item, $key); |
447 | 447 | } |
448 | 448 | ); |
@@ -649,10 +649,10 @@ discard block |
||
649 | 649 | $actualKey = $this->getActiveFormActual(); |
650 | 650 | if (isset($actualKey)) { |
651 | 651 | $forms = array_keys($this->forms); |
652 | - $formsFlip = array_flip($forms); |
|
652 | + $formsFlip = array_flip($forms); |
|
653 | 653 | $index = $formsFlip[$actualKey]; |
654 | 654 | if (0 < $index) { |
655 | - $key = $forms[$index-1]; |
|
655 | + $key = $forms[$index - 1]; |
|
656 | 656 | } |
657 | 657 | } |
658 | 658 | return $key; |
@@ -669,10 +669,10 @@ discard block |
||
669 | 669 | $actualKey = $this->getActiveFormActual(); |
670 | 670 | if (isset($actualKey)) { |
671 | 671 | $forms = array_keys($this->forms); |
672 | - $formsFlip = array_flip($forms); |
|
672 | + $formsFlip = array_flip($forms); |
|
673 | 673 | $index = $formsFlip[$actualKey]; |
674 | 674 | if ($index < count($forms) - 1) { |
675 | - $key = $forms[$index+1]; |
|
675 | + $key = $forms[$index + 1]; |
|
676 | 676 | } |
677 | 677 | } |
678 | 678 | return $key; |
@@ -691,7 +691,7 @@ discard block |
||
691 | 691 | } |
692 | 692 | |
693 | 693 | //$formInstance = $this->formElementManager->get($form['type'], $options); |
694 | - $formName = (($name = $this->getName()) ? $name . '.' : '') . $form['name']; |
|
694 | + $formName = (($name = $this->getName()) ? $name . '.' : '') . $form['name']; |
|
695 | 695 | $action = '?form=' . $formName; |
696 | 696 | |
697 | 697 | return $action; |