Completed
Pull Request — develop (#435)
by ANTHONIUS
05:57
created
module/Behat/src/CoreContext.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 */
44 44
 	public function getApplication()
45 45
 	{
46
-		if(!is_object(static::$application)){
46
+		if (!is_object(static::$application)) {
47 47
 			$configFile = realpath(__DIR__.'/../../../config/config.php');
48 48
 			$config = include($configFile);
49 49
 			static::$application = Application::init($config);
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	public function iSubmitTheFormWithId($arg)
128 128
 	{
129 129
 		$node = $this->minkContext->getSession()->getPage()->find('css', $arg);
130
-		if($node) {
130
+		if ($node) {
131 131
 			$this->minkContext->getSession()->executeScript("jQuery('$arg').submit();");
132 132
 		} else {
133 133
 			throw new \Exception('Element not found');
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 	public function iSetMainWindowName()
152 152
 	{
153 153
 		$window_name = 'main_window';
154
-		$script = 'window.name = "' . $window_name . '"';
154
+		$script = 'window.name = "'.$window_name.'"';
155 155
 		$this->getSession()->executeScript($script);
156 156
 	}
157 157
 	
@@ -210,14 +210,14 @@  discard block
 block discarded – undo
210 210
 				break;
211 211
 			
212 212
 			default:
213
-				throw new \Exception(__METHOD__ . ' Couldn\'t find selector: ' . $selector . ' - Allowed selectors: #id, .className, //xpath');
213
+				throw new \Exception(__METHOD__.' Couldn\'t find selector: '.$selector.' - Allowed selectors: #id, .className, //xpath');
214 214
 				break;
215 215
 		}
216 216
 		
217 217
 		try {
218 218
 			$this->getSession()->executeScript($function);
219 219
 		} catch (\Exception $e) {
220
-			throw new \Exception(__METHOD__ . ' failed'. ' Message: for this locator:"'.$selector.'"');
220
+			throw new \Exception(__METHOD__.' failed'.' Message: for this locator:"'.$selector.'"');
221 221
 		}
222 222
 	}
223 223
 	
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
 	 *
239 239
 	 * @return \Behat\Mink\Element\NodeElement|mixed|null
240 240
 	 */
241
-	public function getElement($locator,$selector='css')
241
+	public function getElement($locator, $selector = 'css')
242 242
 	{
243 243
 		$page = $this->minkContext->getSession()->getPage();
244
-		$element = $page->find('css',$locator);
244
+		$element = $page->find('css', $locator);
245 245
 		return $element;
246 246
 	}
247 247
 	
Please login to merge, or discard this patch.
module/Behat/src/SummaryFormContext.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 		$name = Inflector::camelize($name);
40 40
 		$type = $this->elementMap[$name];
41 41
 		$locator = $type.' .sf-summary .sf-controls button';
42
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
43
-		if(!$element){
42
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
43
+		if (!$element) {
44 44
 			throw new \Exception('No element found with this locator: "'.$locator.'"');
45 45
 		}
46 46
 		$element->click();
@@ -70,12 +70,12 @@  discard block
 block discarded – undo
70 70
 	{
71 71
 		$type = Inflector::camelize($type);
72 72
 		$method = 'iSave'.$type;
73
-		if(method_exists($this,$method)){
74
-			call_user_func([$this,$method]);
75
-		}else{
73
+		if (method_exists($this, $method)) {
74
+			call_user_func([$this, $method]);
75
+		} else {
76 76
 			$locator = $this->elementMap[$type].'-buttons-submit';
77 77
 			$this->coreContext->scrollIntoView($locator);
78
-			$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
78
+			$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
79 79
 			$element->click();
80 80
 		}
81 81
 	}
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	{
85 85
 		$locator = '#general-classifications-buttons-submit';
86 86
 		$this->coreContext->scrollIntoView($locator);
87
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
87
+		$element = $this->minkContext->getSession()->getPage()->find('css', $locator);
88 88
 		$element->click();
89 89
 	}
90 90
 	
Please login to merge, or discard this patch.
module/Jobs/src/Jobs/Controller/AdminController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 		return $ob;
46 46
 	}
47 47
 	
48
-	public function setContainer( ContainerInterface $container )
48
+	public function setContainer(ContainerInterface $container)
49 49
 	{
50 50
 		$this->repositories     = $container->get('repositories');
51 51
 		$this->formManager      = $container->get('forms');
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $params = $this->params()->fromQuery();
59 59
         return $this->pagination([
60
-            'params'    => [ 'Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status' ] ],
61
-            'form'      => [ 'as' => 'form', 'Jobs/AdminSearch' ],
62
-            'paginator' => [ 'as' => 'jobs', 'Jobs/Admin' ],
60
+            'params'    => ['Jobs_Admin', ['text', 'page' => 1, 'companyId', 'status']],
61
+            'form'      => ['as' => 'form', 'Jobs/AdminSearch'],
62
+            'paginator' => ['as' => 'jobs', 'Jobs/Admin'],
63 63
         ]);
64 64
     }
65 65
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                     $oldStatus = $job->getStatus();
85 85
                     $job->changeStatus($post['status'], '[System] Status changed via Admin GUI.');
86 86
                     $events = $this->jobEvents;
87
-                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, [ 'job' => $job, 'status' => $oldStatus ]);
87
+                    $events->trigger(JobEvent::EVENT_STATUS_CHANGED, $this, ['job' => $job, 'status' => $oldStatus]);
88 88
                 }
89 89
             }
90 90
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
         $form->bind($job);
98 98
 
99
-        return [ 'form' => $form, 'job' => $job ];
99
+        return ['form' => $form, 'job' => $job];
100 100
     }
101 101
     
102 102
 }
Please login to merge, or discard this patch.