Completed
Pull Request — develop (#462)
by ANTHONIUS
11:47
created
module/Core/src/Core/Factory/Controller/LazyControllerFactory.php 1 patch
Braces   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,16 +54,15 @@
 block discarded – undo
54 54
 						
55 55
 						try {
56 56
 							$parameter_instances[] = $parentLocator->get($cn);
57
-						}
58
-						catch (\Exception $x) {
57
+						} catch (\Exception $x) {
59 58
 							echo __CLASS__
60 59
 							     . " couldn't create an instance of $cn to satisfy the constructor for $requestedName.";
61 60
 							exit;
62 61
 						}
63
-					}
64
-					else{
65
-						if( $p->isArray() && $p->getName() == 'config' )
66
-							$parameter_instances[] = $parentLocator->get('config');
62
+					} else{
63
+						if( $p->isArray() && $p->getName() == 'config' ) {
64
+													$parameter_instances[] = $parentLocator->get('config');
65
+						}
67 66
 					}
68 67
 					
69 68
 				}
Please login to merge, or discard this patch.
module/Behat/src/SummaryFormContext.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 		$method = 'iSave'.$type;
73 73
 		if(method_exists($this,$method)){
74 74
 			call_user_func([$this,$method]);
75
-		}else{
75
+		} else{
76 76
 			$locator = $this->elementMap[$type].'-buttons-submit';
77 77
 			$this->coreContext->scrollIntoView($locator);
78 78
 			$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailServiceFactory.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
         $type = $mailServiceOptions->getTransportClass();
66 66
         if (MailService::TRANSPORT_SMTP == $type) {
67 67
             return new Smtp($mailServiceOptions);
68
-        }elseif(MailService::TRANSPORT_FILE == $type){
68
+        } elseif(MailService::TRANSPORT_FILE == $type){
69 69
             $fileOptions = new FileOptions();
70 70
             $fileOptions->setPath($mailServiceOptions->getPath());
71 71
             return new FileTransport($fileOptions);
72
-        }elseif(MailService::TRANSPORT_SENDMAIL == $type){
72
+        } elseif(MailService::TRANSPORT_SENDMAIL == $type){
73 73
             return new Sendmail();
74 74
         }
75 75
 
Please login to merge, or discard this patch.
module/Behat/src/JobContext.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 		$element = $page->find('css',$mapMultiple[$field]);
185 185
 		if(!is_null($element) && $element->getAttribute('multiple')=='multiple'){
186 186
 			$this->minkContext->selectOption($value,$multipleField);
187
-		}else{
187
+		} else{
188 188
 			$locator = $mapSelect2[$field];
189 189
 			$this->select2Context->iFillInSelect2Field($locator,$value);
190 190
 		}
@@ -247,14 +247,14 @@  discard block
 block discarded – undo
247 247
             if($user instanceof User){
248 248
                 $job->setUser($user);
249 249
                 $job->setOrganization($organization);
250
-            }else{
250
+            } else{
251 251
                 throw new \Exception('There is no user with this login:"'.$normalizedField['user'.'"']);
252 252
             }
253 253
         }
254 254
 
255 255
         if($status == 'draft'){
256 256
             $job->setIsDraft(true);
257
-        }elseif($status == 'published'){
257
+        } elseif($status == 'published'){
258 258
             $job->setIsDraft(false);
259 259
             $job->setDatePublishStart(new \DateTime());
260 260
         }
Please login to merge, or discard this patch.