Completed
Pull Request — develop (#359)
by Mathias
23:51
created
module/Core/src/Core/Entity/Hydrator/ImageSetHydrator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $imageSpecs = $this->options->getImages();
87 87
 
88 88
 
89
-        $images = [ ImageSetInterface::ORIGINAL => $this->createEntity($file, $data) ];
89
+        $images = [ImageSetInterface::ORIGINAL => $this->createEntity($file, $data)];
90 90
 
91 91
         foreach ($imageSpecs as $key => $size) {
92 92
             $newImage = ImageSetInterface::THUMBNAIL == $key
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 : $this->createImage($image, $size);
95 95
 
96 96
             if ($newImage) {
97
-                $entity   = $this->createEntity($newImage, $data, $key);
97
+                $entity = $this->createEntity($newImage, $data, $key);
98 98
                 $images[$key] = $entity;
99 99
             }
100 100
         }
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         $entity
144 144
             ->setFile($file)
145
-            ->setName(($prefix ? "$prefix-" : '') . $data['name'])
145
+            ->setName(($prefix ? "$prefix-" : '').$data['name'])
146 146
             ->setType($data['type'])
147 147
         ;
148 148
 
Please login to merge, or discard this patch.
module/Core/src/Core/Options/ImageSetOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @var array
44 44
      */
45 45
     protected $images = [
46
-        ImageSetInterface::THUMBNAIL => [100,100],
46
+        ImageSetInterface::THUMBNAIL => [100, 100],
47 47
     ];
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
module/Core/src/Core/Factory/Service/ImagineFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             case ImagineOptions::LIB_GD:
47 47
             case ImagineOptions::LIB_IMAGICK:
48 48
             case ImagineOptions::LIB_GMAGICK:
49
-                $imagineClass = '\Imagine\\' . $lib . '\Imagine';
49
+                $imagineClass = '\Imagine\\'.$lib.'\Imagine';
50 50
                 $imagine = new $imagineClass;
51 51
                 break;
52 52
         }
Please login to merge, or discard this patch.
module/Organizations/config/module.config.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
                 ],
14 14
             ],
15 15
             'annotation' => [
16
-                'paths' => [ __DIR__ . '/../src/Organizations/Entity']
16
+                'paths' => [__DIR__.'/../src/Organizations/Entity']
17 17
             ],
18 18
         ],
19 19
         'eventmanager' => [
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         'translation_file_patterns' => [
41 41
             [
42 42
                 'type' => 'gettext',
43
-                'base_dir' => __DIR__ . '/../language',
43
+                'base_dir' => __DIR__.'/../language',
44 44
                 'pattern' => '%s.mo',
45 45
             ],
46 46
         ],
@@ -68,18 +68,18 @@  discard block
 block discarded – undo
68 68
     'view_manager' => [
69 69
         // Map template to files. Speeds up the lookup through the template stack.
70 70
         'template_map' => [
71
-             'organizations/index/edit' => __DIR__ . '/../view/organizations/index/form.phtml',
72
-             'organizations/form/employees-fieldset' => __DIR__ . '/../view/form/employees-fieldset.phtml',
73
-             'organizations/form/employee-fieldset' => __DIR__ .'/../view/form/employee-fieldset.phtml',
74
-             'organizations/form/invite-employee-bar' => __DIR__ . '/../view/form/invite-employee-bar.phtml',
75
-             'organizations/error/no-parent' => __DIR__ . '/../view/error/no-parent.phtml',
76
-             'organizations/error/invite' => __DIR__ . '/../view/error/invite.phtml',
77
-             'organizations/mail/invite-employee' => __DIR__ . '/../view/mail/invite-employee.phtml',
78
-            'organizations/form/workflow-fieldset' => __DIR__ . '/../view/form/workflow-fieldset.phtml',
71
+             'organizations/index/edit' => __DIR__.'/../view/organizations/index/form.phtml',
72
+             'organizations/form/employees-fieldset' => __DIR__.'/../view/form/employees-fieldset.phtml',
73
+             'organizations/form/employee-fieldset' => __DIR__.'/../view/form/employee-fieldset.phtml',
74
+             'organizations/form/invite-employee-bar' => __DIR__.'/../view/form/invite-employee-bar.phtml',
75
+             'organizations/error/no-parent' => __DIR__.'/../view/error/no-parent.phtml',
76
+             'organizations/error/invite' => __DIR__.'/../view/error/invite.phtml',
77
+             'organizations/mail/invite-employee' => __DIR__.'/../view/mail/invite-employee.phtml',
78
+            'organizations/form/workflow-fieldset' => __DIR__.'/../view/form/workflow-fieldset.phtml',
79 79
         ],
80 80
         // Where to look for view templates not mapped above
81 81
         'template_path_stack' => [
82
-            __DIR__ . '/../view',
82
+            __DIR__.'/../view',
83 83
         ],
84 84
     ],
85 85
     'form_elements' => [
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
                 'allow' => [
150 150
                     'Entity/OrganizationImage',
151 151
                     'route/lang/organizations/invite',
152
-                    'Organizations/InviteEmployee' => [ 'accept' ],
152
+                    'Organizations/InviteEmployee' => ['accept'],
153 153
                 ],
154 154
                 'deny' => [
155 155
                     'route/lang/organizations',
156
-                    'Organizations/InviteEmployee' => [ 'invite' ],
156
+                    'Organizations/InviteEmployee' => ['invite'],
157 157
                 ],
158 158
             ],
159 159
             // recruiters are allowed to view their companies
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 'allow' => [
162 162
                     'route/lang/organizations',
163 163
                     'Organizations/InviteEmployee',
164
-                    'Entity/Organization' => [ 'edit' => 'Organizations/Write' ],
164
+                    'Entity/Organization' => ['edit' => 'Organizations/Write'],
165 165
                 ],
166 166
             ],
167 167
         ],
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
             'organizations' => [
178 178
                 'label' => 'Organizations',
179 179
                 'route' => 'lang/organizations',
180
-                'order' => 65,                             // allows to order the menu items
181
-                'resource' => 'route/lang/organizations',  // if a resource is defined, the acl will be applied.
180
+                'order' => 65, // allows to order the menu items
181
+                'resource' => 'route/lang/organizations', // if a resource is defined, the acl will be applied.
182 182
 
183 183
                 'pages' => [
184 184
                     'list' => [
Please login to merge, or discard this patch.