@@ -23,35 +23,35 @@ discard block |
||
23 | 23 | /** |
24 | 24 | * Job has been published |
25 | 25 | */ |
26 | - const RESPONSE_OK = 'ok'; |
|
26 | + const RESPONSE_OK = 'ok'; |
|
27 | 27 | |
28 | 28 | /** |
29 | 29 | * Job has been published and has stopped all other publishing |
30 | 30 | */ |
31 | - const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
31 | + const RESPONSE_OKANDSTOP = 'ok and publishing terminated afterwards'; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * publishing has been stopped |
35 | 35 | */ |
36 | - const RESPONSE_STOP = 'publishing terminated'; |
|
36 | + const RESPONSE_STOP = 'publishing terminated'; |
|
37 | 37 | |
38 | 38 | /** |
39 | 39 | * publishing has been denied, |
40 | 40 | * this is very likely when a job was not intended to be sended to a portal |
41 | 41 | */ |
42 | - const RESPONSE_DENIED = 'denied'; |
|
42 | + const RESPONSE_DENIED = 'denied'; |
|
43 | 43 | |
44 | 44 | /** |
45 | 45 | * a connection to the portal could not be established |
46 | 46 | * or the publishing of the Job has been rejected for other reasons |
47 | 47 | */ |
48 | - const RESPONSE_FAIL = 'fail'; |
|
48 | + const RESPONSE_FAIL = 'fail'; |
|
49 | 49 | |
50 | 50 | /** |
51 | 51 | * This error has nothing to do with wrong inputs, |
52 | 52 | * something just has happend in the programm |
53 | 53 | */ |
54 | - const RESPONSE_ERROR = 'internal Error'; |
|
54 | + const RESPONSE_ERROR = 'internal Error'; |
|
55 | 55 | |
56 | 56 | /** |
57 | 57 | * nothing happens, but that's not a failure |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * nothing happens, and get used to it |
64 | 64 | */ |
65 | - const RESPONSE_DEPRECATED = 'deprecated'; |
|
65 | + const RESPONSE_DEPRECATED = 'deprecated'; |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @var string |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param string $portal |
84 | 84 | * @param string $status |
85 | 85 | */ |
86 | - public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message='') { |
|
86 | + public function __construct($portal = '', $status = self::RESPONSE_NOTIMPLEMENTED, $message = '') { |
|
87 | 87 | $this->portal = $portal; |
88 | 88 | $this->status = $status; |
89 | 89 | $this->message = $message; |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - * @author [email protected] |
|
9 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + * @author [email protected] |
|
9 | + */ |
|
10 | 10 | |
11 | 11 | namespace Organizations\Form; |
12 | 12 |
@@ -77,6 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * @param string $description |
80 | + * @param double[] $params |
|
80 | 81 | * |
81 | 82 | * @return $this |
82 | 83 | */ |
@@ -258,7 +259,7 @@ discard block |
||
258 | 259 | } |
259 | 260 | |
260 | 261 | /** |
261 | - * @param $spec |
|
262 | + * @param string $spec |
|
262 | 263 | * |
263 | 264 | * @return $this |
264 | 265 | */ |
@@ -80,7 +80,7 @@ |
||
80 | 80 | * |
81 | 81 | * @return $this |
82 | 82 | */ |
83 | - public function setDescription($description,$params = null) |
|
83 | + public function setDescription($description, $params = null) |
|
84 | 84 | { |
85 | 85 | $this->options['description'] = $description; |
86 | 86 | $this->options['description_params'] = $params; |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
39 | - * @param $name |
|
39 | + * @param string $name |
|
40 | 40 | * |
41 | 41 | * @return mixed |
42 | 42 | */ |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | /** |
60 | 60 | * @param array $data |
61 | 61 | * |
62 | - * @return mixed |
|
62 | + * @return EntityInterface |
|
63 | 63 | */ |
64 | 64 | public function create(array $data = null) |
65 | 65 | { |
@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function store($entity) |
85 | 85 | { |
86 | - if ( !($entity instanceOf $this->entityPrototype) ) { |
|
86 | + if (!($entity instanceOf $this->entityPrototype)) { |
|
87 | 87 | throw new \InvalidArgumentException(sprintf( |
88 | 88 | 'Entity must be of type %s but recieved %s instead', |
89 | 89 | get_class($this->entityPrototype), |
@@ -32,7 +32,6 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
35 | - * @param mixed $value$organizationImageEntity |
|
36 | 35 | * |
37 | 36 | * @return mixed |
38 | 37 | */ |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @var string |
58 | 58 | */ |
59 | - protected $options="Applications/Options"; |
|
59 | + protected $options = "Applications/Options"; |
|
60 | 60 | |
61 | 61 | |
62 | 62 | /** |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | ->setIsDescriptionsEnabled(true) |
78 | 78 | ->setDescription( |
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)] |
|
80 | + [round($size / (1024 * 1024)) > 0 ? round($size / (1024 * 1024)) : round($size / (1024 * 1024), 1)] |
|
81 | 81 | ) |
82 | 82 | ->setParam('return', 'file-uri') |
83 | 83 | ->setLabel(/*@translate*/ 'Attachments'); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace Applications\Factory\Form; |
@@ -73,14 +73,14 @@ discard block |
||
73 | 73 | $count = $options->getAttachmentsCount(); |
74 | 74 | |
75 | 75 | $form->setIsDisableCapable(false) |
76 | - ->setIsDisableElementsCapable(false) |
|
77 | - ->setIsDescriptionsEnabled(true) |
|
78 | - ->setDescription( |
|
76 | + ->setIsDisableElementsCapable(false) |
|
77 | + ->setIsDescriptionsEnabled(true) |
|
78 | + ->setDescription( |
|
79 | 79 | /*@translate*/ 'Attach images or PDF Documents to your application. Drag&drop them, or click into the attachement area. You can upload up to %sMB', |
80 | - [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)] |
|
81 | - ) |
|
82 | - ->setParam('return', 'file-uri') |
|
83 | - ->setLabel(/*@translate*/ 'Attachments'); |
|
80 | + [round($size/(1024*1024))>0? round($size/(1024*1024)):round($size/(1024*1024),1)] |
|
81 | + ) |
|
82 | + ->setParam('return', 'file-uri') |
|
83 | + ->setLabel(/*@translate*/ 'Attachments'); |
|
84 | 84 | |
85 | 85 | /** @var $file FileUpload*/ |
86 | 86 | $file = $form->get($this->fileName); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | 'id', |
99 | 99 | preg_replace( |
100 | 100 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
101 | - array('-' , '-' , '' ), |
|
101 | + array('-', '-', ''), |
|
102 | 102 | $formId |
103 | 103 | ) |
104 | 104 | ); |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | if (!$element->hasAttribute('id')) { |
120 | 120 | $elementId = preg_replace( |
121 | 121 | array('~[^A-Za-z0-9_-]~', '~--+~', '~^-|-$~'), |
122 | - array('-' , '-', ''), |
|
122 | + array('-', '-', ''), |
|
123 | 123 | $form->getName() . '-' . $element->getName() |
124 | 124 | ); |
125 | 125 | $element->setAttribute('id', $elementId); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | ); |
186 | 186 | |
187 | 187 | if ($desc = $form->getOption('description', '')) { |
188 | - $descriptionParams=$form->getOption('description_params'); |
|
188 | + $descriptionParams = $form->getOption('description_params'); |
|
189 | 189 | $translator = $this->getTranslator(); |
190 | 190 | $textDomain = $this->getTranslatorTextDomain(); |
191 | 191 | $desc = $translator->translate($desc, $textDomain); |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** Core forms view helpers */ |
11 | 11 | namespace Core\Form\View\Helper; |
@@ -71,12 +71,12 @@ discard block |
||
71 | 71 | $basepath = $renderer->plugin('basepath'); |
72 | 72 | |
73 | 73 | $headscript->appendFile($basepath('Core/js/core.spinnerbutton.js')) |
74 | - ->appendFile($basepath('js/select2.min.js')) |
|
75 | - ->appendFile($basepath('Core/js/core.forms.js')); |
|
74 | + ->appendFile($basepath('js/select2.min.js')) |
|
75 | + ->appendFile($basepath('Core/js/core.forms.js')); |
|
76 | 76 | |
77 | 77 | /* @noinspection PhpParamsInspection */ |
78 | 78 | $renderer->headLink()->appendStylesheet($basepath('css/select2.css')) |
79 | - ->appendStylesheet($basepath('css/select2-bootstrap.css')); |
|
79 | + ->appendStylesheet($basepath('css/select2-bootstrap.css')); |
|
80 | 80 | |
81 | 81 | if ($scripts = $form->getOption('headscript')) { |
82 | 82 | if (!is_array($scripts)) { |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
6 | - * @license MIT |
|
7 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @copyright (c) 2013-2016 Cross Solution (http://cross-solution.de) |
|
6 | + * @license MIT |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace Organizations\Entity; |
10 | 10 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function setLabelQualifications($labelQualifications) |
83 | 83 | { |
84 | - $this->labelQualifications=$labelQualifications; |
|
84 | + $this->labelQualifications = $labelQualifications; |
|
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function setLabelBenefits($labelBenefits) |
106 | 106 | { |
107 | - $this->labelBenefits=$labelBenefits; |
|
107 | + $this->labelBenefits = $labelBenefits; |
|
108 | 108 | return $this; |
109 | 109 | } |
110 | 110 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @license MIT |
|
7 | - * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @license MIT |
|
7 | + * @copyright 2013 - 2016 Cross Solution <http://cross-solution.de> |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** */ |
11 | 11 | namespace JobsTest\Form; |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | */ |
42 | 42 | protected $message; |
43 | 43 | |
44 | + /** |
|
45 | + * @param StatusInterface $status |
|
46 | + */ |
|
44 | 47 | public function __construct($status, $message = '[System]') |
45 | 48 | { |
46 | 49 | if (!$status instanceof StatusInterface) { |
@@ -116,7 +119,7 @@ discard block |
||
116 | 119 | /** |
117 | 120 | * Sets the history message |
118 | 121 | * |
119 | - * @param $message |
|
122 | + * @param string $message |
|
120 | 123 | * |
121 | 124 | * @return $this |
122 | 125 | */ |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * YAWIK |
|
4 | - * |
|
5 | - * @filesource |
|
6 | - * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | - * @license MIT |
|
8 | - */ |
|
3 | + * YAWIK |
|
4 | + * |
|
5 | + * @filesource |
|
6 | + * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de) |
|
7 | + * @license MIT |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | /** SettingsEntityResolverFactory.php */ |
11 | 11 | namespace Settings\Repository; |