Completed
Push — develop ( 69bf64...c61561 )
by
unknown
17:17 queued 09:01
created
module/Core/src/Core/Collection/IdentityWrapper.php 4 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,6 @@
 block discarded – undo
381 381
 	}
382 382
 
383 383
 	/**
384
-	 * @param mixed $element
385 384
 	 * @return mixed
386 385
 	 */
387 386
 	protected function getElement($key)
Please login to merge, or discard this patch.
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      */
26 26
     protected $identityExtractor;
27 27
     
28
-	/**
28
+    /**
29 29
      * @param Collection $collection
30 30
      */
31 31
     public function __construct(Collection $collection)
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $element = $this->getElement($key);
82 82
         
83 83
         if ($element !== false && $this->collection->removeElement($element)) {
84
-    		return $element;
84
+            return $element;
85 85
         }
86 86
     }
87 87
     
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $element = $this->getElement($key);
110 110
         
111
-		return $element !== false ? $element : null;
111
+        return $element !== false ? $element : null;
112 112
     }
113 113
     
114 114
     /**
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         
185 185
         if ($element !== false)
186 186
         {
187
-    		return $this->getKey($element);
187
+            return $this->getKey($element);
188 188
         }
189 189
     }
190 190
     
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         // validate mapped elements
253 253
         array_map($this->getIdentityExtractor(), $mapped->toArray());
254 254
         
255
-		return new static($mapped);
255
+        return new static($mapped);
256 256
     }
257 257
     
258 258
     /**
@@ -341,15 +341,15 @@  discard block
 block discarded – undo
341 341
     }
342 342
     
343 343
     /**
344
-	 * @param callable $identityExtractor
345
-	 * @return IdentityWrapper
346
-	 */
347
-	public function setIdentityExtractor(callable $identityExtractor)
348
-	{
349
-		$this->identityExtractor = $identityExtractor;
344
+     * @param callable $identityExtractor
345
+     * @return IdentityWrapper
346
+     */
347
+    public function setIdentityExtractor(callable $identityExtractor)
348
+    {
349
+        $this->identityExtractor = $identityExtractor;
350 350
 		
351
-		return $this;
352
-	}
351
+        return $this;
352
+    }
353 353
 
354 354
     /**
355 355
      *
@@ -371,23 +371,23 @@  discard block
 block discarded – undo
371 371
         return $this->identityExtractor;
372 372
     }
373 373
 
374
-	/**
375
-	 * @param mixed $element
376
-	 * @return mixed
377
-	 */
378
-	protected function getKey($element)
379
-	{
380
-	    return call_user_func($this->getIdentityExtractor(), $element);
381
-	}
374
+    /**
375
+     * @param mixed $element
376
+     * @return mixed
377
+     */
378
+    protected function getKey($element)
379
+    {
380
+        return call_user_func($this->getIdentityExtractor(), $element);
381
+    }
382 382
 
383
-	/**
384
-	 * @param mixed $element
385
-	 * @return mixed
386
-	 */
387
-	protected function getElement($key)
388
-	{
389
-	    return $this->collection->filter(function ($element) use ($key) {
390
-	        return $this->getKey($element) == $key;
391
-	    })->first();
392
-	}
383
+    /**
384
+     * @param mixed $element
385
+     * @return mixed
386
+     */
387
+    protected function getElement($key)
388
+    {
389
+        return $this->collection->filter(function ($element) use ($key) {
390
+            return $this->getKey($element) == $key;
391
+        })->first();
392
+    }
393 393
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function getKeys()
118 118
     {
119
-        return $this->collection->map(function ($element) {
119
+        return $this->collection->map(function($element) {
120 120
             return $this->getKey($element);
121 121
         })->toArray();
122 122
     }
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
      */
310 310
     public function offsetExists($offset)
311 311
     {
312
-        return (bool)$this->getElement($offset);
312
+        return (bool) $this->getElement($offset);
313 313
     }
314 314
     
315 315
     /**
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     {
360 360
         if (!isset($this->identityExtractor)) {
361 361
             // default identity extractor
362
-            $this->identityExtractor = function ($element) {
362
+            $this->identityExtractor = function($element) {
363 363
                 if (!is_callable([$element, 'getId'])) {
364 364
                     throw new \LogicException('$element must have getId() method');
365 365
                 }
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
 	 */
387 387
 	protected function getElement($key)
388 388
 	{
389
-	    return $this->collection->filter(function ($element) use ($key) {
389
+	    return $this->collection->filter(function($element) use ($key) {
390 390
 	        return $this->getKey($element) == $key;
391 391
 	    })->first();
392 392
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,8 +137,7 @@
 block discarded – undo
137 137
         if ($this->getElement($key) !== false)
138 138
         {
139 139
             $this->collection->set($this->collection->indexOf($value), $value);
140
-        }
141
-        else
140
+        } else
142 141
         {
143 142
             $this->collection->add($value);
144 143
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Form/CollectionContainer.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
     
180 180
     /**
181 181
      * @throws \RuntimeException
182
-     * @return Collection
182
+     * @return \Core\Entity\EntityInterface
183 183
      */
184 184
     protected function getCollection()
185 185
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
             $collection[] = $this->newEntry;
81 81
             $form = $this->buildForm($key, $this->newEntry);
82 82
             $eventManager = $form->getEventManager();
83
-			$eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
83
+            $eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
84 84
                 if (!$event->getParam('isValid')) {
85 85
                     $collection->removeElement($this->newEntry);
86 86
                 }
87 87
             });
88
-			$eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
88
+            $eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
89 89
                 $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry));
90 90
             });
91 91
             
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         }
118 118
     }
119 119
     
120
-	/**
120
+    /**
121 121
      * @see \Core\Form\Element\ViewHelperProviderInterface::getViewHelper()
122 122
      */
123 123
     public function getViewHelper()
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
      */
222 222
     protected function setupForm(CoreForm $form, $key)
223 223
     {
224
-         $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key)))
224
+            $form->setAttribute('action', sprintf('?form=%s', $this->formatAction($key)))
225 225
             ->setAttribute('data-entry-key', $key);
226 226
     }
227 227
 }
228 228
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@
 block discarded – undo
80 80
             $collection[] = $this->newEntry;
81 81
             $form = $this->buildForm($key, $this->newEntry);
82 82
             $eventManager = $form->getEventManager();
83
-			$eventManager->attach(CoreForm::EVENT_IS_VALID, function (Event $event) use ($collection) {
83
+			$eventManager->attach(CoreForm::EVENT_IS_VALID, function(Event $event) use ($collection) {
84 84
                 if (!$event->getParam('isValid')) {
85 85
                     $collection->removeElement($this->newEntry);
86 86
                 }
87 87
             });
88
-			$eventManager->attach(CoreForm::EVENT_PREPARE, function (Event $event) use ($collection) {
88
+			$eventManager->attach(CoreForm::EVENT_PREPARE, function(Event $event) use ($collection) {
89 89
                 $this->setupForm($event->getTarget(), $collection->indexOf($this->newEntry));
90 90
             });
91 91
             
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/Cv.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
     
119 119
     /**
120
-     * @return ArrayCollection
120
+     * @return IdentityWrapper
121 121
      */
122 122
     public function getEducationsIndexedById()
123 123
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     }
147 147
     
148 148
     /**
149
-     * @return ArrayCollection
149
+     * @return IdentityWrapper
150 150
      */
151 151
     public function getEmploymentsIndexedById()
152 152
     {
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     }
176 176
     
177 177
     /**
178
-     * @return ArrayCollection
178
+     * @return IdentityWrapper
179 179
      */
180 180
     public function getSkillsIndexedById()
181 181
     {
Please login to merge, or discard this patch.
module/Auth/src/Auth/Form/UserImageFactory.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     {
56 56
         /* @var $options \Applications\Options\ModuleOptions */
57 57
         $form->get($this->fileName)->setViewHelper('FormImageUpload')
58
-           ->setMaxSize($options->getContactImageMaxSize())
59
-           ->setAllowedTypes($options->getContactImageMimeType())
60
-           ->setForm($form);
58
+            ->setMaxSize($options->getContactImageMaxSize())
59
+            ->setAllowedTypes($options->getContactImageMimeType())
60
+            ->setForm($form);
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/ContactImage.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,14 +44,14 @@
 block discarded – undo
44 44
         $this->contact->setImage(null);
45 45
     }
46 46
     
47
-	/**
48
-	 * @param Contact $contact
49
-	 * @return ContactImage
50
-	 */
51
-	public function setContact(Contact $contact)
52
-	{
53
-		$this->contact = $contact;
47
+    /**
48
+     * @param Contact $contact
49
+     * @return ContactImage
50
+     */
51
+    public function setContact(Contact $contact)
52
+    {
53
+        $this->contact = $contact;
54 54
 		
55
-		return $this;
56
-	}
55
+        return $this;
56
+    }
57 57
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getUri()
35 35
     {
36
-        return "/file/Cv.ContactImage/" . $this->id . "/" .urlencode($this->name);
36
+        return "/file/Cv.ContactImage/".$this->id."/".urlencode($this->name);
37 37
     }
38 38
     
39 39
     /**
Please login to merge, or discard this patch.
module/Cv/src/Cv/Entity/Education.php 1 patch
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -156,41 +156,41 @@
 block discarded – undo
156 156
         return $this->description;
157 157
     }
158 158
     
159
-	/**
160
-	 * @return string
161
-	 */
162
-	public function getCountry()
163
-	{
164
-		return $this->country;
165
-	}
166
-
167
-	/**
168
-	 * @param string $country
169
-	 * @return Education
170
-	 */
171
-	public function setCountry($country)
172
-	{
173
-		$this->country = $country;
159
+    /**
160
+     * @return string
161
+     */
162
+    public function getCountry()
163
+    {
164
+        return $this->country;
165
+    }
166
+
167
+    /**
168
+     * @param string $country
169
+     * @return Education
170
+     */
171
+    public function setCountry($country)
172
+    {
173
+        $this->country = $country;
174 174
 		
175
-		return $this;
176
-	}
177
-
178
-	/**
179
-	 * @return string
180
-	 */
181
-	public function getCity()
182
-	{
183
-		return $this->city;
184
-	}
185
-
186
-	/**
187
-	 * @param string $city
188
-	 * @return Education
189
-	 */
190
-	public function setCity($city)
191
-	{
192
-		$this->city = $city;
175
+        return $this;
176
+    }
177
+
178
+    /**
179
+     * @return string
180
+     */
181
+    public function getCity()
182
+    {
183
+        return $this->city;
184
+    }
185
+
186
+    /**
187
+     * @param string $city
188
+     * @return Education
189
+     */
190
+    public function setCity($city)
191
+    {
192
+        $this->city = $city;
193 193
 		
194
-		return $this;
195
-	}
194
+        return $this;
195
+    }
196 196
 }
Please login to merge, or discard this patch.
module/Cv/src/Cv/Form/EmploymentCollectionFactory.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,6 @@
 block discarded – undo
16 16
         $container = new \Core\Form\CollectionContainer('CvEmploymentForm', new \Cv\Entity\Employment());
17 17
         $container->setLabel(/*@translate */ 'Employment history');
18 18
         
19
-		return $container;
19
+        return $container;
20 20
     }
21 21
 }
Please login to merge, or discard this patch.
module/Applications/config/module.config.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -10,20 +10,20 @@  discard block
 block discarded – undo
10 10
 
11 11
 return array(
12 12
     'doctrine' => array(
13
-       'driver' => array(
13
+        'driver' => array(
14 14
             'odm_default' => array(
15 15
                 'drivers' => array(
16 16
                     'Applications\Entity' => 'annotation',
17 17
                 ),
18 18
             ),
19 19
             'annotation' => array(
20
-               /*
20
+                /*
21 21
                 * All drivers (except DriverChain) require paths to work on. You
22 22
                 * may set this value as a string (for a single path) or an array
23 23
                 * for multiple paths.
24 24
                 * example https://github.com/doctrine/DoctrineORMModule
25 25
                 */
26
-               'paths' => array( __DIR__ . '/../src/Applications/Entity')
26
+                'paths' => array( __DIR__ . '/../src/Applications/Entity')
27 27
             ),
28 28
         ),
29 29
         'eventmanager' => array(
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
             'Applications/Options/ModuleOptions' => 'Applications\Options\ModuleOptions'
64 64
         ),
65 65
         'factories' => array(
66
-           'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
67
-           'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
68
-           'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
69
-           'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
70
-           'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
71
-           'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory'
66
+            'Applications/Options' => 'Applications\Factory\ModuleOptionsFactory',
67
+            'ApplicationRepository' => 'Applications\Repository\Service\ApplicationRepositoryFactory',
68
+            'ApplicationMapper' => 'Applications\Repository\Service\ApplicationMapperFactory',
69
+            'EducationMapper'   => 'Applications\Repository\Service\EducationMapperFactory',
70
+            'Applications/Listener/ApplicationCreated' => 'Applications\Factory\Listener\EventApplicationCreatedFactory',
71
+            'Applications/Listener/ApplicationStatusChangePre' => 'Applications\Factory\Listener\StatusChangeFactory'
72 72
         ),
73 73
         'aliases' => [
74
-           'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
74
+            'Applications/Listener/ApplicationStatusChangePost' => 'Applications/Listener/ApplicationStatusChangePre'
75 75
         ]
76 76
     ),
77 77
     'controllers' => array(
@@ -169,25 +169,25 @@  discard block
 block discarded – undo
169 169
     ),
170 170
     'form_elements' => array(
171 171
         'invokables' => array(
172
-             'Applications/Mail' => 'Applications\Form\Mail',
173
-             'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
174
-             'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
175
-             'Applications/CommentForm' => 'Applications\Form\CommentForm',
176
-             'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
177
-             'Applications/Apply' => 'Applications\Form\Apply',
178
-             'Applications/Contact' => 'Applications\Form\ContactContainer',
179
-             'Applications/Base'  => 'Applications\Form\Base',
180
-             'Applications/Facts' => 'Applications\Form\Facts',
181
-             'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
182
-             'Applications/Attributes' => 'Applications\Form\Attributes',
183
-             'Applications/Filter' => 'Applications\Form\FilterApplication',
184
-             'href' => 'Applications\Form\Element\Ref',
185
-         ),
172
+                'Applications/Mail' => 'Applications\Form\Mail',
173
+                'Applications/BaseFieldset' => 'Applications\Form\BaseFieldset',
174
+                'Applications/SettingsFieldset' => 'Applications\Form\SettingsFieldset',
175
+                'Applications/CommentForm' => 'Applications\Form\CommentForm',
176
+                'Applications/CommentFieldset' => 'Applications\Form\CommentFieldset',
177
+                'Applications/Apply' => 'Applications\Form\Apply',
178
+                'Applications/Contact' => 'Applications\Form\ContactContainer',
179
+                'Applications/Base'  => 'Applications\Form\Base',
180
+                'Applications/Facts' => 'Applications\Form\Facts',
181
+                'Applications/FactsFieldset' => 'Applications\Form\FactsFieldset',
182
+                'Applications/Attributes' => 'Applications\Form\Attributes',
183
+                'Applications/Filter' => 'Applications\Form\FilterApplication',
184
+                'href' => 'Applications\Form\Element\Ref',
185
+            ),
186 186
         'factories' => array(
187 187
             'Applications/ContactImage' => 'Applications\Factory\Form\ContactImageFactory',
188 188
             'Applications/Attachments' => 'Applications\Factory\Form\AttachmentsFactory',
189 189
         ),
190
-     ),
190
+        ),
191 191
 
192 192
     'form_elements_config' => array(
193 193
         'Applications/Apply' => array(
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
                 * for multiple paths.
24 24
                 * example https://github.com/doctrine/DoctrineORMModule
25 25
                 */
26
-               'paths' => array( __DIR__ . '/../src/Applications/Entity')
26
+               'paths' => array(__DIR__.'/../src/Applications/Entity')
27 27
             ),
28 28
         ),
29 29
         'eventmanager' => array(
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         'translation_file_patterns' => array(
139 139
             array(
140 140
                 'type' => 'gettext',
141
-                'base_dir' => __DIR__ . '/../language',
141
+                'base_dir' => __DIR__.'/../language',
142 142
                 'pattern' => '%s.mo',
143 143
             ),
144 144
         ),
@@ -146,16 +146,16 @@  discard block
 block discarded – undo
146 146
     // Configure the view service manager
147 147
     'view_manager' => array(
148 148
         'template_path_stack' => array(
149
-            'Applications' => __DIR__ . '/../view',
149
+            'Applications' => __DIR__.'/../view',
150 150
         ),
151 151
         'template_map' => array(
152
-            'applications/error/not-found' => __DIR__ . '/../view/error/not-found.phtml',
153
-            'layout/apply' => __DIR__ . '/../view/layout/layout.phtml',
154
-            'applications/sidebar/manage' => __DIR__ . '/../view/sidebar/manage.phtml',
155
-            'applications/mail/forward' => __DIR__ . '/../view/mail/forward.phtml',
156
-            'applications/detail/pdf' => __DIR__ . '/../view/applications/manage/detail.pdf.phtml',
157
-            'applications/index/disclaimer' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
158
-            'content/applications-privacy-policy' => __DIR__ . '/../view/applications/index/disclaimer.phtml',
152
+            'applications/error/not-found' => __DIR__.'/../view/error/not-found.phtml',
153
+            'layout/apply' => __DIR__.'/../view/layout/layout.phtml',
154
+            'applications/sidebar/manage' => __DIR__.'/../view/sidebar/manage.phtml',
155
+            'applications/mail/forward' => __DIR__.'/../view/mail/forward.phtml',
156
+            'applications/detail/pdf' => __DIR__.'/../view/applications/manage/detail.pdf.phtml',
157
+            'applications/index/disclaimer' => __DIR__.'/../view/applications/index/disclaimer.phtml',
158
+            'content/applications-privacy-policy' => __DIR__.'/../view/applications/index/disclaimer.phtml',
159 159
         )
160 160
     ),
161 161
     'view_helpers' => array(
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Container.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
         $formAction = $formInstance->getAttribute('action');
322 322
 
323 323
         if (empty($formAction)) {
324
-            $formInstance->setAttribute('action', '?form=' . $formName);
324
+            $formInstance->setAttribute('action', '?form='.$formName);
325 325
         }
326 326
 
327 327
         if (isset($form['label'])) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
                 $spec->setParent($this);
387 387
             }
388 388
 
389
-            $spec = [ '__instance__' => $spec, 'name' => $key, 'entity' => '*' ];
389
+            $spec = ['__instance__' => $spec, 'name' => $key, 'entity' => '*'];
390 390
         }
391 391
 
392 392
         if (!is_array($spec)) {
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
         }
506 506
         $this->activeForms = array_filter(
507 507
             $this->activeForms,
508
-            function ($item) use ($key) {
508
+            function($item) use ($key) {
509 509
                 return !in_array($item, $key);
510 510
             }
511 511
         );
@@ -519,7 +519,7 @@  discard block
 block discarded – undo
519 519
      * @throws \InvalidArgumentException
520 520
      * @return Container
521 521
      */
522
-    public function setEntity($entity, $key='*')
522
+    public function setEntity($entity, $key = '*')
523 523
     {
524 524
         if (!$entity instanceof EntityInterface)
525 525
         {
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
      *
543 543
      * @return \Core\Entity\EntityInterface
544 544
      */
545
-    public function getEntity($key='*')
545
+    public function getEntity($key = '*')
546 546
     {
547 547
         return isset($this->entities[$key]) ? $this->entities[$key] : null;
548 548
     }
@@ -745,10 +745,10 @@  discard block
 block discarded – undo
745 745
         $actualKey = $this->getActiveFormActual();
746 746
         if (isset($actualKey)) {
747 747
             $forms = array_keys($this->forms);
748
-            $formsFlip =  array_flip($forms);
748
+            $formsFlip = array_flip($forms);
749 749
             $index = $formsFlip[$actualKey];
750 750
             if (0 < $index) {
751
-                $key = $forms[$index-1];
751
+                $key = $forms[$index - 1];
752 752
             }
753 753
         }
754 754
         return $key;
@@ -765,10 +765,10 @@  discard block
 block discarded – undo
765 765
         $actualKey = $this->getActiveFormActual();
766 766
         if (isset($actualKey)) {
767 767
             $forms = array_keys($this->forms);
768
-            $formsFlip =  array_flip($forms);
768
+            $formsFlip = array_flip($forms);
769 769
             $index = $formsFlip[$actualKey];
770 770
             if ($index < count($forms) - 1) {
771
-                $key = $forms[$index+1];
771
+                $key = $forms[$index + 1];
772 772
             }
773 773
         }
774 774
         return $key;
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
      */
783 783
     public function formatAction($name)
784 784
     {
785
-        return sprintf('%s%s', $this->hasParent() ? $this->getName() . '.' : '', $name);
785
+        return sprintf('%s%s', $this->hasParent() ? $this->getName().'.' : '', $name);
786 786
     }
787 787
 
788 788
     /**
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
     public function getActionFor($key)
793 793
     {
794 794
         if (isset($this->forms[$key])) {
795
-            return '?form=' . $this->formatAction($this->forms[$key]['name']);
795
+            return '?form='.$this->formatAction($this->forms[$key]['name']);
796 796
         }
797 797
     }
798 798
 }
799 799
\ No newline at end of file
Please login to merge, or discard this patch.