Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
Organizations/src/Organizations/Form/OrganizationsContactFieldset.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
     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.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
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    Mathias Weitz <[email protected]>
9
- */
3
+     * YAWIK
4
+     *
5
+     * @filesource
6
+     * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
7
+     * @license   MIT
8
+     * @author    Mathias Weitz <[email protected]>
9
+     */
10 10
 
11 11
 namespace Organizations\Form;
12 12
 
Please login to merge, or discard this patch.
src/Organizations/Repository/Event/InjectOrganizationReferenceListener.php 2 patches
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.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
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.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
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\Repository\Filter;
10 10
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             //$queryBuilder->field('user')->equals($this->auth->getUser()->id);
66 66
         }
67 67
         if (isset($value['by']) && 'new' == $value['by']) {
68
-             //$queryBuilder->field('readBy')->notEqual( new \MongoId($this->auth->getUser()->id));
68
+                //$queryBuilder->field('readBy')->notEqual( new \MongoId($this->auth->getUser()->id));
69 69
         }
70 70
         
71 71
         
Please login to merge, or discard this patch.
module/Organizations/src/Organizations/Repository/Organization.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
260 260
 
261 261
         foreach ($result as $id => $item) {
262 262
             $organizations[$id] = $item;
263
-            $organizationNameId = (string)$organizations[$id]['organizationName'];
263
+            $organizationNameId = (string) $organizations[$id]['organizationName'];
264 264
             $organizations[$id]['organizationName'] = $organizationNames[$organizationNameId];
265 265
         }
266 266
 
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     /**
107 107
      * Finds the main organization of an user.
108 108
      *
109
-     * @param string|UserInterface $userOrId
109
+     * @param string $userOrId
110 110
      *
111 111
      * @return null|OrganizationInterface
112 112
      */
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     /**
143 143
      * Finds the organization, an user is employed by.
144 144
      *
145
-     * @param string|UserInterface $userOrId
145
+     * @param string $userOrId
146 146
      *
147 147
      * @return null|OrganizationInterface
148 148
      */
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     /**
271 271
      * Look for an drafted Document of a given user
272 272
      *
273
-     * @param $user
273
+     * @param \Auth\Entity\AnonymousUser $user
274 274
      * @return \Organizations\Entity\Organization|null
275 275
      */
276 276
     public function findDraft($user)
Please login to merge, or discard this patch.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * YAWIK
4
- *
5
- * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
6
- * @license   GPLv3
7
- */
3
+     * YAWIK
4
+     *
5
+     * @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
6
+     * @license   GPLv3
7
+     */
8 8
 
9 9
 namespace Organizations\Repository;
10 10
 
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
 //           )
129 129
 //        );
130 130
         $qb->addAnd($qb->expr()->field('user')->equals($userId))
131
-           ->addAnd(
132
-               $qb->expr()->addOr($qb->expr()->field('parent')->exists(false))
133
-                               ->addOr($qb->expr()->field('parent')->equals(null))
134
-           );
131
+            ->addAnd(
132
+                $qb->expr()->addOr($qb->expr()->field('parent')->exists(false))
133
+                                ->addOr($qb->expr()->field('parent')->equals(null))
134
+            );
135 135
 
136 136
         $q      = $qb->getQuery();
137 137
         $entity = $q->getSingleResult();
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         if ($userOrg->hasAssociation()) {
253 253
             $qb->addAnd(
254 254
                 $qb->expr()->addOr($qb->expr()->field('parent')->equals($userOrg->getId()))
255
-                           ->addOr($qb->expr()->field('_id')->equals($userOrg->getId()))
255
+                            ->addOr($qb->expr()->field('_id')->equals($userOrg->getId()))
256 256
             );
257 257
         }
258 258
 
Please login to merge, or discard this patch.
module/Settings/src/Settings/Controller/IndexController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $valid   = $form->isValid();
80 80
             $partial = $services->get('viewhelpermanager')->get('partial');
81 81
             $text    = $valid
82
-                     ?  /*@translate*/'Changes successfully saved'
82
+                     ? /*@translate*/'Changes successfully saved'
83 83
                      :  /*@translate*/'Changes could not be saved';
84 84
 
85 85
             $vars = array();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             return new JsonModel($vars);
100 100
         }
101 101
 
102
-        $vars['form']=$form;
102
+        $vars['form'] = $form;
103 103
         return $vars;
104 104
     }
105 105
 }
Please login to merge, or discard this patch.
module/Settings/src/Settings/Entity/Hydrator/SettingsEntityHydrator.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         parent::__construct();
24 24
         $this->addFilter(
25 25
             'ignoreInternalProperties',
26
-            function ($property) {
26
+            function($property) {
27 27
                 return "_" != $property{0};
28 28
             }
29 29
         );
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/AbstractSettingsForm.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $this->add($fieldset);
73 73
         
74 74
         $this->add($this->forms->get('DefaultButtonsFieldset'));
75
-        $this->isBuild=true;
75
+        $this->isBuild = true;
76 76
     }
77 77
         
78 78
 
Please login to merge, or discard this patch.
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 /** AbstractSettingsForm.php */
11 11
 namespace Settings\Form;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
         
68 68
         $fieldset->setUseAsBaseFieldset(true)
69
-                 ->setName('base');
69
+                    ->setName('base');
70 70
         
71 71
         $fieldset->setObject($object);
72 72
         $this->add($fieldset);
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     {
93 93
         parent::setName(strtolower($name) . '-settings');
94 94
         $urlHelper = $this->forms->getServiceLocator()
95
-                     ->get('ViewHelperManager')
96
-                     ->get('url');
95
+                        ->get('ViewHelperManager')
96
+                        ->get('url');
97 97
         
98 98
         $url = $urlHelper('lang/settings', array('module' => $name), true);
99 99
         $this->setAttribute('action', $url);
Please login to merge, or discard this patch.
Settings/src/Settings/Form/Element/DisableElementsCapableFormSettings.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -235,7 +235,7 @@
 block discarded – undo
235 235
             $elementName = $prefix . '[' . $element->getName() . ']';
236 236
             $options = $element->getOption('disable_capable');
237 237
             $boxOptions = array(
238
-                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ? : $name),
238
+                'long_label'  => isset($options['label']) ? $options['label'] : ($element->getLabel() ?: $name),
239 239
                 'description' => isset($options['description']) ? $options['description']
240 240
                         : 'Toggle availability of this element in the form.',
241 241
             );
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
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 Settings\Form\Element;
Please login to merge, or discard this patch.
module/Settings/src/Settings/Form/SettingsFieldset.php 2 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   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
                     ),
78 78
             );
79 79
             if (is_bool($value)) {
80
-                $input['type']= 'Checkbox';
80
+                $input['type'] = 'Checkbox';
81 81
                 $input['attributes']['checked'] = $value;
82 82
             } else {
83 83
                 $input['attributes']['value'] = $value;
Please login to merge, or discard this patch.