Completed
Push — develop ( 31c340...db8caa )
by Mathias
08:35
created
module/Jobs/src/Jobs/Form/Job.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
 
100 100
     public function renderPost(Renderer $renderer)
101 101
     {
102
-        $coreformsjs   = $renderer->basepath('/Core/js/core.forms.js');
102
+        $coreformsjs = $renderer->basepath('/Core/js/core.forms.js');
103 103
         $javaScript = <<<JS
104 104
         $(document).ready(function() {
105 105
 
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/Jobs/src/Jobs/Form/MultipostFieldset.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
 
44 44
         $this->add(
45 45
             array(
46
-                 'type' => 'Jobs\MultipostingSelect',
47
-                 'property' => true,
48
-                 'name' => 'portals',
49
-                 'options' => array(
50
-                     'label' => /*@translate*/ 'Portals',
51
-                 ),
52
-             )
46
+                    'type' => 'Jobs\MultipostingSelect',
47
+                    'property' => true,
48
+                    'name' => 'portals',
49
+                    'options' => array(
50
+                        'label' => /*@translate*/ 'Portals',
51
+                    ),
52
+                )
53 53
         );
54 54
     }
55 55
 
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/Filter/PaginationQuery.php 3 patches
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         if (isset($this->value['location']->coordinates)) {
83 83
             $coordinates = $this->value['location']->coordinates->getCoordinates();
84
-            $queryBuilder->field('locations.coordinates')->geoWithinCenter($coordinates[0], $coordinates[1],(float) $this->value['d']/100);
84
+            $queryBuilder->field('locations.coordinates')->geoWithinCenter($coordinates[0], $coordinates[1], (float) $this->value['d'] / 100);
85 85
         }
86 86
 
87 87
 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
              */
95 95
             if (isset($this->value['params']['by']) && 'me' == $this->value['params']['by']) {
96 96
                 $queryBuilder->field('user')->equals($this->user->id);
97
-            }else{
97
+            } else {
98 98
                 $queryBuilder->field('permissions.view')->equals($this->user->id);
99 99
             }
100 100
             if (
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 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\Entity;
10 10
 
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.
module/Organizations/config/module.config.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @author Mathias Weitz <[email protected]>
4
- * @author Mathias Gelhausen <[email protected]>
5
- */
3
+     * @author Mathias Weitz <[email protected]>
4
+     * @author Mathias Gelhausen <[email protected]>
5
+     */
6 6
 
7 7
 return array(
8 8
     'doctrine' => array(
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
     'view_manager' => array(
64 64
         // Map template to files. Speeds up the lookup through the template stack.
65 65
         'template_map' => array(
66
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
67
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
68
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
69
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
70
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
71
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
72
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
66
+                'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
67
+                'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
68
+                'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
69
+                'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
70
+                'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
71
+                'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
72
+                'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
73 73
         ),
74 74
         // Where to look for view templates not mapped above
75 75
         'template_path_stack' => array(
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
     ),
79 79
     'form_elements' => array(
80 80
         'invokables' => array(
81
-             'Organizations/form' => 'Organizations\Form\Organizations',
82
-             'Organizations/OrganizationsContactForm'     => 'Organizations\Form\OrganizationsContactForm',
83
-             'Organizations/OrganizationsNameForm'        => 'Organizations\Form\OrganizationsNameForm',
84
-             'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm',
85
-             'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset',
86
-             'Organizations/OrganizationsNameFieldset'    => 'Organizations\Form\OrganizationsNameFieldset',
87
-             'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset',
81
+                'Organizations/form' => 'Organizations\Form\Organizations',
82
+                'Organizations/OrganizationsContactForm'     => 'Organizations\Form\OrganizationsContactForm',
83
+                'Organizations/OrganizationsNameForm'        => 'Organizations\Form\OrganizationsNameForm',
84
+                'Organizations/OrganizationsDescriptionForm' => 'Organizations\Form\OrganizationsDescriptionForm',
85
+                'Organizations/OrganizationsContactFieldset' => 'Organizations\Form\OrganizationsContactFieldset',
86
+                'Organizations/OrganizationsNameFieldset'    => 'Organizations\Form\OrganizationsNameFieldset',
87
+                'Organizations/OrganizationsDescriptionFieldset' => 'Organizations\Form\OrganizationsDescriptionFieldset',
88 88
             //'Organizations/OrganizationFieldset'       => 'Organizations\Form\OrganizationFieldset',
89 89
             'Organizations/EmployeesContainer'           => 'Organizations\Form\EmployeesContainer',
90 90
             'Organizations/Employees'                    => 'Organizations\Form\Employees',
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         'template_map' => array(
66 66
              'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
67 67
              'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
68
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
68
+             'organizations/form/employee-fieldset' => __DIR__ . '/../view/form/employee-fieldset.phtml',
69 69
              'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
70 70
              'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
71 71
              'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
             'organizations' => array(
152 152
                 'label' => 'Organizations',
153 153
                 'route' => 'lang/organizations',
154
-                'order' => 65,                             // allows to order the menu items
155
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
154
+                'order' => 65, // allows to order the menu items
155
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
156 156
 
157 157
                 'pages' => array(
158 158
                     'list' => array(
Please login to merge, or discard this patch.
src/Organizations/Controller/Plugin/AcceptInvitationHandler.php 2 patches
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.
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/Entity/EmployeePermissionsInterface.php 2 patches
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.
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/Factory/Form/EmployeeFieldsetFactory.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@  discard block
 block discarded – undo
46 46
 
47 47
          /* todo: WRITE own Hydrator strategy class */
48 48
         $strategy = new ClosureStrategy(
49
-            function ($object) use ($users) {
49
+            function($object) use ($users) {
50 50
             
51 51
                 if (is_string($object)) {
52 52
                     return $users->find($object);
53 53
                 }
54 54
                 return $object;
55 55
             },
56
-            function ($data) use ($users) {
56
+            function($data) use ($users) {
57 57
             
58 58
                 if (is_string($data)) {
59 59
                     $data = $users->find($data);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         /* todo: write own strategy class */
66 66
         $permStrategy = new ClosureStrategy(
67 67
             // extract
68
-            function ($object) {
68
+            function($object) {
69 69
                 /* @var $object \Organizations\Entity\EmployeePermissionsInterface */
70 70
                 $values = array();
71 71
                 foreach (array(
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
 
81 81
                 return $values;
82 82
             },
83
-            function ($data) {
83
+            function($data) {
84 84
                 $permissions = array_reduce(
85 85
                     $data,
86
-                    function ($c, $i) {
86
+                    function($c, $i) {
87 87
                         return $c | $i;
88 88
                     },
89 89
                     0
Please login to merge, or discard this patch.
Indentation   +8 added lines, -8 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
- * @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 Organizations\Factory\Form;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $repositories = $services->get('repositories');
45 45
         $users        = $repositories->get('Auth/User'); /* @var $users \Auth\Repository\User */
46 46
 
47
-         /* todo: WRITE own Hydrator strategy class */
47
+            /* todo: WRITE own Hydrator strategy class */
48 48
         $strategy = new ClosureStrategy(
49 49
             function ($object) use ($users) {
50 50
             
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 foreach (array(
72 72
                     Perms::JOBS_VIEW, Perms::JOBS_CHANGE, PERMS::JOBS_CREATE,
73 73
                     Perms::APPLICATIONS_VIEW, Perms::APPLICATIONS_CHANGE)
74
- as $perm) {
74
+    as $perm) {
75 75
                     if ($object->isAllowed($perm)) {
76 76
                         $values[] = $perm;
77 77
                     }
Please login to merge, or discard this patch.