Completed
Pull Request — develop (#329)
by Carsten
07:08
created
module/Organizations/src/Organizations/Form/LogoImageFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      *
24 24
      * @var string
25 25
      */
26
-    protected $options="Jobs/Options";
26
+    protected $options = "Jobs/Options";
27 27
 
28 28
     protected function configureForm($form, AbstractOptions $options)
29 29
     {
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.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
              */
78 78
             if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) {
79 79
                 $queryBuilder->field('user')->equals($this->user->id);
80
-            }else{
80
+            } else{
81 81
                 $queryBuilder->field('permissions.view')->equals($this->user->id);
82 82
             }
83 83
             if (
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
 
76 76
             $inputLabel = isset($this->labelMap[$inputName]) ? $this->labelMap[$inputName] : $inputName;
77 77
 
78
-            if (is_array($inputLabel)){
79
-                $priority = isset($inputLabel[1])?$inputLabel[1]:0;
78
+            if (is_array($inputLabel)) {
79
+                $priority = isset($inputLabel[1]) ? $inputLabel[1] : 0;
80 80
                 $inputLabel = $inputLabel[0];
81
-            }else{
81
+            } else {
82 82
                 $priority = 0;
83 83
             }
84 84
 
@@ -90,19 +90,19 @@  discard block
 block discarded – undo
90 90
                     ),
91 91
             );
92 92
             if (is_bool($value)) {
93
-                $input['type']= 'Checkbox';
93
+                $input['type'] = 'Checkbox';
94 94
                 $input['attributes']['checked'] = $value;
95 95
             } else {
96 96
                 $input['attributes']['value'] = $value;
97 97
             }
98
-            $this->add($input,['priority'=>$priority]);
98
+            $this->add($input, ['priority'=>$priority]);
99 99
             
100 100
         }
101 101
         
102 102
         foreach ($children as $name => $child) {
103 103
             $objectClass  = ltrim(get_class($settings), '\\');
104 104
             $moduleName   = substr($objectClass, 0, strpos($objectClass, '\\'));
105
-            $fieldsetName = $moduleName . '/' . ucfirst($name) . 'SettingsFieldset';
105
+            $fieldsetName = $moduleName.'/'.ucfirst($name).'SettingsFieldset';
106 106
             
107 107
             if ($this->forms->has($fieldsetName)) {
108 108
                 $fieldset = $this->forms->get($fieldsetName);
Please login to merge, or discard this patch.
module/Core/src/Core/Listener/AjaxRenderListener.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,6 @@
 block discarded – undo
29 29
      * Attach to an event manager
30 30
      *
31 31
      * @param  EventManagerInterface $events
32
-     * @param  integer $priority
33 32
      */
34 33
     public function attach(EventManagerInterface $events)
35 34
     {
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
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
79 79
 
80
-            $template = $viewModel->getTemplate() . '.ajax';
80
+            $template = $viewModel->getTemplate().'.ajax';
81 81
             if ($resolver->resolve($template)) {
82 82
                 $viewModel->setTemplate($template);
83 83
             } else {
Please login to merge, or discard this patch.
module/Core/src/Core/Repository/RepositoryService.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
 
15 15
 class OrganizationName extends AbstractRepository
16 16
 {
17
+    /**
18
+     * @param string $name
19
+     */
17 20
     public function findbyName($name, $create = true)
18 21
     {
19 22
         $entity = $this->findOneBy(array('name' => $name));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             $name = "\\$namespace\\Entity\\$entityName";
39 39
         }
40 40
         
41
-        $repository  = $this->dm->getRepository($name);
41
+        $repository = $this->dm->getRepository($name);
42 42
         return $repository;
43 43
     }
44 44
     
Please login to merge, or discard this patch.
module/Geo/Module.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@
 block discarded – undo
30 30
  */
31 31
 class Module
32 32
 {
33
-     /**
34
-     * Loads module specific configuration.
35
-     *
36
-     * @return array
37
-     */
33
+        /**
34
+         * Loads module specific configuration.
35
+         *
36
+         * @return array
37
+         */
38 38
     public function getConfig()
39 39
     {
40 40
         return ModuleConfigLoader::load(__DIR__ . '/config');
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getConfig()
39 39
     {
40
-        return ModuleConfigLoader::load(__DIR__ . '/config');
40
+        return ModuleConfigLoader::load(__DIR__.'/config');
41 41
     }
42 42
     
43 43
     /**
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         return array(
51 51
             'Zend\Loader\StandardAutoloader' => array(
52 52
                 'namespaces' => array(
53
-                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
53
+                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
54 54
                 ),
55 55
             ),
56 56
         );
Please login to merge, or discard this patch.
module/Core/config/doctrine.config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,11 +26,11 @@
 block discarded – undo
26 26
 //                'driver'             => 'odm_default',
27 27
 //
28 28
 //                'generate_proxies'   => true,
29
-                  'proxy_dir'          => 'cache/DoctrineMongoODMModule/Proxy',
29
+                    'proxy_dir'          => 'cache/DoctrineMongoODMModule/Proxy',
30 30
 //                'proxy_namespace'    => 'DoctrineMongoODMModule\Proxy',
31 31
 //
32 32
 //                'generate_hydrators' => true,
33
-                  'hydrator_dir'       => 'cache/DoctrineMongoODMModule/Hydrator',
33
+                    'hydrator_dir'       => 'cache/DoctrineMongoODMModule/Hydrator',
34 34
 //                'hydrator_namespace' => 'DoctrineMongoODMModule\Hydrator',
35 35
 //
36 36
 //                'default_db'         => '',
Please login to merge, or discard this patch.