Completed
Push — develop ( e70242...efddeb )
by Mathias
65:39 queued 53:48
created
module/Cv/src/Cv/Factory/Form/LanguageSkillCollectionFactory.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -9,19 +9,19 @@
 block discarded – undo
9 9
 
10 10
 class LanguageSkillCollectionFactory implements FactoryInterface
11 11
 {
12
-	/**
13
-	 * Create a CollectionContainer form
14
-	 *
15
-	 * @param ContainerInterface $container
16
-	 * @param string $requestedName
17
-	 * @param array|null $options
18
-	 *
19
-	 * @return \Core\Form\CollectionContainer
20
-	 */
12
+    /**
13
+     * Create a CollectionContainer form
14
+     *
15
+     * @param ContainerInterface $container
16
+     * @param string $requestedName
17
+     * @param array|null $options
18
+     *
19
+     * @return \Core\Form\CollectionContainer
20
+     */
21 21
     public function __invoke(ContainerInterface $container, $requestedName, array $options = null) {
22
-	    $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
23
-	    $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
22
+        $collectionContainer = new CollectionContainer( 'Cv/LanguageSkillForm', new Language() );
23
+        $collectionContainer->setLabel(/*@translate */ 'Additional Language Skills' );
24 24
 	
25
-	    return $collectionContainer;
25
+        return $collectionContainer;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
module/Behat/src/SummaryFormContext.php 1 patch
Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -15,112 +15,112 @@
 block discarded – undo
15 15
 
16 16
 class SummaryFormContext implements Context
17 17
 {
18
-	use CommonContextTrait;
18
+    use CommonContextTrait;
19 19
 	
20
-	private $elementMap = array(
21
-		'name' => '#sf-nameForm',
22
-		'location' => '#sf-locationForm',
23
-		'employees' => '#sf-employeesManagement',
24
-		'workflow' => '#sf-workflowSettings',
25
-		'jobTitleAndLocation' => '#general-locationForm',
26
-		'jobClassification' => '#sf-general-classifications',
27
-		'customerNote' => '#sf-general-customerNote',
28
-		'personalInformations' => '#sf-contact-contact',
29
-		'resumePersonalInformations' => '#sf-contact',
30
-	);
20
+    private $elementMap = array(
21
+        'name' => '#sf-nameForm',
22
+        'location' => '#sf-locationForm',
23
+        'employees' => '#sf-employeesManagement',
24
+        'workflow' => '#sf-workflowSettings',
25
+        'jobTitleAndLocation' => '#general-locationForm',
26
+        'jobClassification' => '#sf-general-classifications',
27
+        'customerNote' => '#sf-general-customerNote',
28
+        'personalInformations' => '#sf-contact-contact',
29
+        'resumePersonalInformations' => '#sf-contact',
30
+    );
31 31
 	
32
-	/**
33
-	 * @When I click edit on :name form
34
-	 * @TODO: [ZF3] move this method to CoreContext
35
-	 */
36
-	public function iClickEditOnForm($name)
37
-	{
38
-		$this->iClickForm($name);
39
-		$name = Inflector::camelize($name);
40
-		$type = $this->elementMap[$name];
41
-		$locator = $type.' .sf-summary .sf-controls button';
42
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
43
-		if(!$element){
44
-			throw new \Exception('No element found with this locator: "'.$locator.'"');
45
-		}
46
-		$element->click();
47
-	}
32
+    /**
33
+     * @When I click edit on :name form
34
+     * @TODO: [ZF3] move this method to CoreContext
35
+     */
36
+    public function iClickEditOnForm($name)
37
+    {
38
+        $this->iClickForm($name);
39
+        $name = Inflector::camelize($name);
40
+        $type = $this->elementMap[$name];
41
+        $locator = $type.' .sf-summary .sf-controls button';
42
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
43
+        if(!$element){
44
+            throw new \Exception('No element found with this locator: "'.$locator.'"');
45
+        }
46
+        $element->click();
47
+    }
48 48
 	
49
-	/**
50
-	 * @When I click :form form
51
-	 */
52
-	public function iClickForm($name)
53
-	{
54
-		$name = Inflector::camelize($name);
55
-		$type = $this->elementMap[$name];
56
-		$locator = $type.' .sf-summary';
57
-		$session = $this->minkContext->getSession();
58
-		$script = <<<EOC
49
+    /**
50
+     * @When I click :form form
51
+     */
52
+    public function iClickForm($name)
53
+    {
54
+        $name = Inflector::camelize($name);
55
+        $type = $this->elementMap[$name];
56
+        $locator = $type.' .sf-summary';
57
+        $session = $this->minkContext->getSession();
58
+        $script = <<<EOC
59 59
 var tElement = jQuery("$locator .sf-controls");
60 60
 tElement.css('display','block');
61 61
 tElement.css('visibility','visible');
62 62
 EOC;
63
-		$session->executeScript($script);
64
-	}
63
+        $session->executeScript($script);
64
+    }
65 65
 	
66
-	/**
67
-	 * @When I save :type form
68
-	 */
69
-	public function iSaveForm($type)
70
-	{
71
-		$type = Inflector::camelize($type);
72
-		$method = 'iSave'.$type;
73
-		if(method_exists($this,$method)){
74
-			call_user_func([$this,$method]);
75
-		}else{
76
-			$locator = $this->elementMap[$type].'-buttons-submit';
77
-			$this->coreContext->scrollIntoView($locator);
78
-			$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
79
-			$element->click();
80
-		}
81
-	}
66
+    /**
67
+     * @When I save :type form
68
+     */
69
+    public function iSaveForm($type)
70
+    {
71
+        $type = Inflector::camelize($type);
72
+        $method = 'iSave'.$type;
73
+        if(method_exists($this,$method)){
74
+            call_user_func([$this,$method]);
75
+        }else{
76
+            $locator = $this->elementMap[$type].'-buttons-submit';
77
+            $this->coreContext->scrollIntoView($locator);
78
+            $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
79
+            $element->click();
80
+        }
81
+    }
82 82
 	
83
-	public function iSaveOrganizationName()
84
-	{
85
-		$locator = '#nameForm-buttons-submit';
86
-		$this->coreContext->scrollIntoView($locator);
87
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
88
-		$element->click();
89
-	}
83
+    public function iSaveOrganizationName()
84
+    {
85
+        $locator = '#nameForm-buttons-submit';
86
+        $this->coreContext->scrollIntoView($locator);
87
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
88
+        $element->click();
89
+    }
90 90
 	
91
-	/**
92
-	 * Saving organization workflow
93
-	 */
94
-	public function iSaveWorkflow()
95
-	{
96
-		$locator = '#workflowSettings-buttons-submit';
97
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
98
-		$element->click();
99
-	}
91
+    /**
92
+     * Saving organization workflow
93
+     */
94
+    public function iSaveWorkflow()
95
+    {
96
+        $locator = '#workflowSettings-buttons-submit';
97
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
98
+        $element->click();
99
+    }
100 100
 	
101
-	public function iSaveOrganizationLocation()
102
-	{
103
-		$locator = '#locationForm-buttons-submit';
104
-		$this->coreContext->scrollIntoView($locator);
105
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
106
-		$element->click();
107
-	}
101
+    public function iSaveOrganizationLocation()
102
+    {
103
+        $locator = '#locationForm-buttons-submit';
104
+        $this->coreContext->scrollIntoView($locator);
105
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
106
+        $element->click();
107
+    }
108 108
 	
109 109
 	
110
-	public function iSaveJobClassification()
111
-	{
112
-		$locator = '#general-classifications-buttons-submit';
113
-		$this->coreContext->scrollIntoView($locator);
114
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
115
-		$element->click();
116
-	}
110
+    public function iSaveJobClassification()
111
+    {
112
+        $locator = '#general-classifications-buttons-submit';
113
+        $this->coreContext->scrollIntoView($locator);
114
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
115
+        $element->click();
116
+    }
117 117
 	
118
-	public function iSaveCustomerNote()
119
-	{
120
-		$locator = '#general-customerNote-buttons-submit';
121
-		$this->coreContext->scrollIntoView('#sf-general-customerNote');
122
-		$element = $this->minkContext->getSession()->getPage()->find('css',$locator);
123
-		$element->click();
124
-	}
118
+    public function iSaveCustomerNote()
119
+    {
120
+        $locator = '#general-customerNote-buttons-submit';
121
+        $this->coreContext->scrollIntoView('#sf-general-customerNote');
122
+        $element = $this->minkContext->getSession()->getPage()->find('css',$locator);
123
+        $element->click();
124
+    }
125 125
 	
126 126
 }
127 127
\ No newline at end of file
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/NotificationFactory.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
      * @param array|null            $options
32 32
      * @return Notification
33 33
      */
34
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
35
-	{
36
-		$pluginManager = $container->get('ControllerPluginManager');
37
-		$flashMessenger = $pluginManager->get('FlashMessenger');
38
-		$translator = $container->get('translator');
34
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
35
+    {
36
+        $pluginManager = $container->get('ControllerPluginManager');
37
+        $flashMessenger = $pluginManager->get('FlashMessenger');
38
+        $translator = $container->get('translator');
39 39
 		
40
-		$notificationListener = $container->get('Core/Listener/Notification');
41
-		$notification   = new Notification($flashMessenger);
42
-		$notification->setListener($notificationListener);
43
-		$notification->setTranslator($translator);
40
+        $notificationListener = $container->get('Core/Listener/Notification');
41
+        $notification   = new Notification($flashMessenger);
42
+        $notification->setListener($notificationListener);
43
+        $notification->setTranslator($translator);
44 44
 		
45
-		return $notification;
46
-	}
45
+        return $notification;
46
+    }
47 47
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ContentCollector.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     public function trigger($event, $target = null)
75 75
     {
76 76
         if (empty($this->_template) || !is_string($this->_template)) {
77
-              throw new \InvalidArgumentException('ContentCollector must have a template-name');
77
+                throw new \InvalidArgumentException('ContentCollector must have a template-name');
78 78
         }
79 79
           
80 80
         $responseCollection = $this->getController()->getEventManager()->trigger($event, $target);
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
         $viewModel->setTemplate($this->_template);
83 83
         foreach ($responseCollection as $i => $response) {
84 84
             if (is_string($response)) {
85
-                      $template = $response;
86
-                      $response = new ViewModel(array('target' => $target));
87
-                      $response->setTemplate($template);
85
+                        $template = $response;
86
+                        $response = new ViewModel(array('target' => $target));
87
+                        $response->setTemplate($template);
88 88
             }
89 89
             $viewModel->addChild($response, $this->_captureTo . $i);
90 90
         }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Mail.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         } elseif (isset($this->config['templateHalf'])) {
226 226
             $template = $this->config['templateHalf'];
227 227
         } else {
228
-              throw new \InvalidArgumentException('No template provided for Mail.');
228
+                throw new \InvalidArgumentException('No template provided for Mail.');
229 229
         }
230 230
         return $template;
231 231
     }
@@ -276,11 +276,11 @@  discard block
 block discarded – undo
276 276
         return $erg;
277 277
     }
278 278
     
279
-	/**
280
-	 * @param ContainerInterface $container
281
-	 *
282
-	 * @return static
283
-	 */
279
+    /**
280
+     * @param ContainerInterface $container
281
+     *
282
+     * @return static
283
+     */
284 284
     public static function factory(ContainerInterface $container)
285 285
     {
286 286
         //@TODO: need to define transport to be use during ::send()
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ConfigFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
  */
14 14
 class ConfigFactory implements FactoryInterface
15 15
 {
16
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
17
-	{
18
-		$config = $container->get('Config');
19
-		$plugin = new Config($config);
16
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
17
+    {
18
+        $config = $container->get('Config');
19
+        $plugin = new Config($config);
20 20
 		
21
-		return $plugin;
22
-	}
21
+        return $plugin;
22
+    }
23 23
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Mailer.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,11 +87,11 @@
 block discarded – undo
87 87
         return $sendMail ? $this->send($mail) : $mail;
88 88
     }
89 89
 	
90
-	/**
91
-	 * @param ContainerInterface $container
92
-	 *
93
-	 * @return Mailer
94
-	 */
90
+    /**
91
+     * @param ContainerInterface $container
92
+     *
93
+     * @return Mailer
94
+     */
95 95
     public static function factory(ContainerInterface $container)
96 96
     {
97 97
         return new static($container->get('Core/MailService'));
Please login to merge, or discard this patch.
module/Core/src/Core/Entity/AbstractIdentifiableEntity.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  *
18 18
  * @author Anthonius Munthi <[email protected]>
19 19
  * @ODM\MappedSuperclass
20
-  */
20
+ */
21 21
 abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface
22 22
 {
23 23
     use IdentifiableEntityTrait;
Please login to merge, or discard this patch.
module/Core/src/Core/Mail/MailServiceFactory.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -26,41 +26,41 @@
 block discarded – undo
26 26
  */
27 27
 class MailServiceFactory implements FactoryInterface
28 28
 {
29
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
30
-	{
31
-		$config = $container->get('Config');
32
-		$mails = isset($config['mails']) ? $config['mails'] : [];
29
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
30
+    {
31
+        $config = $container->get('Config');
32
+        $mails = isset($config['mails']) ? $config['mails'] : [];
33 33
 		
34
-		/* @var \Auth\Options\ModuleOptions $authOptions */
35
-		$authOptions = $container->get('Auth/Options');
34
+        /* @var \Auth\Options\ModuleOptions $authOptions */
35
+        $authOptions = $container->get('Auth/Options');
36 36
 		
37
-		/* @var \Core\Options\MailServiceOptions $mailServiceOptions */
38
-		$mailServiceOptions = $container->get('Core/MailServiceOptions');
37
+        /* @var \Core\Options\MailServiceOptions $mailServiceOptions */
38
+        $mailServiceOptions = $container->get('Core/MailServiceOptions');
39 39
 		
40
-		$configArray = [
41
-			'from' => [
42
-				'name' => $authOptions->getFromName(),
43
-				'email' => $authOptions->getFromEmail()
44
-			],
45
-		];
40
+        $configArray = [
41
+            'from' => [
42
+                'name' => $authOptions->getFromName(),
43
+                'email' => $authOptions->getFromEmail()
44
+            ],
45
+        ];
46 46
 
47
-		$configArray['transport'] = $this->getTransport($mailServiceOptions);
48
-		$configArray = array_merge($configArray, $mails);
47
+        $configArray['transport'] = $this->getTransport($mailServiceOptions);
48
+        $configArray = array_merge($configArray, $mails);
49 49
 		
50
-		$config = new MailServiceConfig($configArray);
51
-		$service   = new MailService($container,$config->toArray());
52
-		$config->configureServiceManager($service);
53
-		foreach($config->toArray() as $name=>$value){
54
-			$method = 'set'.$name;
55
-			if(method_exists($service,$method)){
56
-				call_user_func([$service,$method],$value);
57
-			}
58
-		}
50
+        $config = new MailServiceConfig($configArray);
51
+        $service   = new MailService($container,$config->toArray());
52
+        $config->configureServiceManager($service);
53
+        foreach($config->toArray() as $name=>$value){
54
+            $method = 'set'.$name;
55
+            if(method_exists($service,$method)){
56
+                call_user_func([$service,$method],$value);
57
+            }
58
+        }
59 59
 		
60
-		return $service;
61
-	}
60
+        return $service;
61
+    }
62 62
 
63
-	public function getTransport(MailServiceOptions $mailServiceOptions)
63
+    public function getTransport(MailServiceOptions $mailServiceOptions)
64 64
     {
65 65
         $type = $mailServiceOptions->getTransportClass();
66 66
         if (MailService::TRANSPORT_SMTP == $type) {
Please login to merge, or discard this patch.