Completed
Pull Request — develop (#434)
by Carsten
06:27
created
module/Jobs/src/Jobs/Options/ChannelOptions.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      *
82 82
      * @var int $publishDuration
83 83
      */
84
-    protected $publishDuration=30;
84
+    protected $publishDuration = 30;
85 85
 
86 86
     /**
87 87
      * Category for this channel
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function setKey($key)
142 142
     {
143
-        $this->key=$key;
143
+        $this->key = $key;
144 144
         return $this;
145 145
     }
146 146
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function setExternalkey($key)
164 164
     {
165
-        $this->externalkey=$key;
165
+        $this->externalkey = $key;
166 166
         return $this;
167 167
     }
168 168
 
Please login to merge, or discard this patch.
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     /**
155 155
      * Gets the unique key of a channel
156 156
      *
157
-     * @return string
157
+     * @return integer
158 158
      */
159 159
     public function getKey()
160 160
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Gets the unique key of a channel
178 178
      *
179
-     * @return string
179
+     * @return integer
180 180
      */
181 181
     public function getExternalkey()
182 182
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Gets the tax for a price
261 261
      *
262
-     * @return string
262
+     * @return integer
263 263
      */
264 264
     public function getTax()
265 265
     {
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
     /**
353 353
      * Gets the headline of the channel
354 354
      *
355
-     * @return mixed
355
+     * @return string
356 356
      */
357 357
     public function getHeadLine()
358 358
     {
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
     }
391 391
 
392 392
     /**
393
-     * @return mixed
393
+     * @return string
394 394
      */
395 395
     public function getLinkText()
396 396
     {
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     }
409 409
 
410 410
     /**
411
-     * @return mixed
411
+     * @return string
412 412
      */
413 413
     public function getRoute()
414 414
     {
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Options/ModuleOptions.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,21 +44,21 @@
 block discarded – undo
44 44
      *
45 45
      * @var string $defaultLogo
46 46
      */
47
-    protected $defaultLogo="/Jobs/images/yawik-small.jpg";
47
+    protected $defaultLogo = "/Jobs/images/yawik-small.jpg";
48 48
 
49 49
     /**
50 50
      * Maximum size in bytes of a company Logo. Default 200k
51 51
      *
52 52
      * @var int $companyLogoMaxSize
53 53
      */
54
-    protected $companyLogoMaxSize=200000;
54
+    protected $companyLogoMaxSize = 200000;
55 55
 
56 56
     /**
57 57
      * Allowed Mime-Types for company Logos
58 58
      *
59 59
      * @var array
60 60
      */
61
-    protected $companyLogoMimeType=array("image");
61
+    protected $companyLogoMimeType = array("image");
62 62
 
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Repository/JobSnapshotMeta.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $qb = $this->createQueryBuilder();
29 29
         $qb->hydrate(true)
30
-           ->select('entity')
31
-           ->field('sourceId')->equals($jobEntity->id)
32
-           ->sort('dateCreated', 'desc')
33
-           ->limit(1);
30
+            ->select('entity')
31
+            ->field('sourceId')->equals($jobEntity->id)
32
+            ->sort('dateCreated', 'desc')
33
+            ->limit(1);
34 34
 
35 35
         $result = $qb->getQuery()->execute();
36 36
         if ($result->count() == 0) {
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
         // So we need to create a cursor, that skips the first Document
54 54
         $qb = $this->createQueryBuilder();
55 55
         $qb->hydrate(false)
56
-           ->select('entity')
57
-           ->field('sourceId')->equals($jobEntity->id)
58
-           ->sort('dateCreated', 'desc');
56
+            ->select('entity')
57
+            ->field('sourceId')->equals($jobEntity->id)
58
+            ->sort('dateCreated', 'desc');
59 59
         $result = $qb->getQuery()->execute()->skip(1);
60 60
         foreach ($result as $item) {
61 61
             $id = $item['_id'];
Please login to merge, or discard this patch.
src/Organizations/Controller/Plugin/AcceptInvitationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
     public function process($token, $organizationId)
129 129
     {
130
-        $organizationRepository   = $this->getOrganizationRepository();
130
+        $organizationRepository = $this->getOrganizationRepository();
131 131
         $organization = $organizationRepository->find($organizationId); /* @var $organization \Organizations\Entity\OrganizationInterface */
132 132
 
133 133
         if (!$organization) {
Please login to merge, or discard this patch.
Organizations/src/Organizations/Entity/EmployeePermissionsInterface.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,13 +27,13 @@
 block discarded – undo
27 27
      *
28 28
      * @var int
29 29
      */
30
-    const JOBS_VIEW           = 16;      //  10000
31
-    const JOBS_CREATE         = 24;      //  11000  # Create w/o View makes no sense
32
-    const JOBS_CHANGE         = 20;      //  10100  # Change w/o view makes no sense
33
-    const APPLICATIONS_VIEW   = 2;       //  00010
34
-    const APPLICATIONS_CHANGE = 3;       //  00011  # change w/o view makes no sense
35
-    const ALL                 = 31;      //  11111
36
-    const NONE                = 0;       //  00000
30
+    const JOBS_VIEW           = 16; //  10000
31
+    const JOBS_CREATE         = 24; //  11000  # Create w/o View makes no sense
32
+    const JOBS_CHANGE         = 20; //  10100  # Change w/o view makes no sense
33
+    const APPLICATIONS_VIEW   = 2; //  00010
34
+    const APPLICATIONS_CHANGE = 3; //  00011  # change w/o view makes no sense
35
+    const ALL                 = 31; //  11111
36
+    const NONE                = 0; //  00000
37 37
     /**#@- */
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
Organizations/src/Organizations/Form/OrganizationsContactFieldset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function getHydrator()
25 25
     {
26 26
         if (!$this->hydrator) {
27
-            $hydrator           = new EntityHydrator();
27
+            $hydrator = new EntityHydrator();
28 28
             $this->setHydrator($hydrator);
29 29
         }
30 30
         return $this->hydrator;
Please login to merge, or discard this patch.
src/Organizations/Repository/Event/InjectOrganizationReferenceListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
         if ($document instanceof UserInterface) {
42 42
             $repository = $args->getDocumentManager()->getRepository('Organizations\Entity\Organization');
43
-            $userId  = $document->getId();
43
+            $userId = $document->getId();
44 44
             $reference = new OrganizationReference($userId, $repository);
45 45
 
46 46
             $document->setOrganization($reference);
Please login to merge, or discard this patch.
Organizations/src/Organizations/Repository/Filter/PaginationQuery.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var String
26 26
      */
27
-    protected $repositoryName="Organizations/Organization";
27
+    protected $repositoryName = "Organizations/Organization";
28 28
     
29 29
     /**
30 30
      * Sortable fields
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @see \Core\Repository\Filter\AbstractPaginationQuery::createQuery()
52 52
      * @param $params
53 53
      * @param \Doctrine\ODM\MongoDB\Query\Builder $queryBuilder
54
-     * @return mixed
54
+     * @return \Doctrine\ODM\MongoDB\Query\Builder
55 55
      */
56 56
     public function createQuery($params, $queryBuilder)
57 57
     {
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/SettingsFieldset.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
                 $fieldset->setLabel(ucfirst($label));
103 103
             }
104 104
             $fieldset->setName($name)
105
-                     ->setObject($child);
105
+                        ->setObject($child);
106 106
             
107 107
             
108 108
             $this->add($fieldset);
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
 
75 75
             $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName;
76 76
 
77
-            if (is_array($inputLabel)){
78
-                $priority = isset($inputLabel[1])?$inputLabel[1]:0;
77
+            if (is_array($inputLabel)) {
78
+                $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0;
79 79
                 $inputLabel = $inputLabel[0];
80
-            }else{
80
+            } else {
81 81
                 $priority = 0;
82 82
             }
83 83
 
@@ -89,19 +89,19 @@  discard block
 block discarded – undo
89 89
                     ),
90 90
             );
91 91
             if (is_bool($value)) {
92
-                $input['type']= 'Checkbox';
92
+                $input['type'] = 'Checkbox';
93 93
                 $input['attributes']['checked'] = $value;
94 94
             } else {
95 95
                 $input['attributes']['value'] = $value;
96 96
             }
97
-            $this->add($input,['priority'=>$priority]);
97
+            $this->add($input, ['priority'=>$priority]);
98 98
             
99 99
         }
100 100
         
101 101
         foreach ($children as $name => $child) {
102 102
             $objectClass  = ltrim(get_class($settings), '\\');
103 103
             $moduleName   = substr($objectClass, 0, strpos($objectClass, '\\'));
104
-            $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset';
104
+            $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset';
105 105
             
106 106
             if ($this->formManager->has($fieldsetName)) {
107 107
                 $fieldset = $this->formManager->get($fieldsetName);
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             if (is_array($inputLabel)){
78 78
                 $priority = isset($inputLabel[1])?$inputLabel[1]:0;
79 79
                 $inputLabel = $inputLabel[0];
80
-            }else{
80
+            } else{
81 81
                 $priority = 0;
82 82
             }
83 83
 
Please login to merge, or discard this patch.