Completed
Pull Request — develop (#453)
by ANTHONIUS
06:53
created
module/Core/src/Core/Controller/Plugin/Mailer.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
100 100
         return $sendMail ? $this->send($mail) : $mail;
101 101
     }
102 102
 	
103
-	/**
104
-	 * @param ContainerInterface $container
105
-	 *
106
-	 * @return Mailer
107
-	 */
103
+    /**
104
+     * @param ContainerInterface $container
105
+     *
106
+     * @return Mailer
107
+     */
108 108
     public static function factory(ContainerInterface $container)
109 109
     {
110 110
         return new static($container);
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ConfigFactory.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,15 +15,15 @@
 block discarded – undo
15 15
 
16 16
 class ConfigFactory implements FactoryInterface
17 17
 {
18
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
-	{
20
-		$config = $container->get('Config');
21
-		$plugin = new Config($config);
18
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
19
+    {
20
+        $config = $container->get('Config');
21
+        $plugin = new Config($config);
22 22
 		
23
-		return $plugin;
24
-	}
23
+        return $plugin;
24
+    }
25 25
 	
26
-	/**
26
+    /**
27 27
      * Create the settings service
28 28
      *
29 29
      * @param  ServiceLocatorInterface $serviceLocator
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 class ConfigFactory implements FactoryInterface
17 17
 {
18
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
18
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
19 19
 	{
20 20
 		$config = $container->get('Config');
21 21
 		$plugin = new Config($config);
@@ -31,6 +31,6 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function createService(ServiceLocatorInterface $serviceLocator)
33 33
     {
34
-        return $this($serviceLocator,Config::class);
34
+        return $this($serviceLocator, Config::class);
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/ListQuery.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,10 +210,10 @@
 block discarded – undo
210 210
         return $dbQuery;
211 211
     }
212 212
 	
213
-	/**
214
-	 * @param ContainerInterface $container
215
-	 * @return ListQuery
216
-	 */
213
+    /**
214
+     * @param ContainerInterface $container
215
+     * @return ListQuery
216
+     */
217 217
     public static function factory(ContainerInterface $container)
218 218
     {
219 219
         return new static($container);
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/FileSender.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -25,18 +25,18 @@  discard block
 block discarded – undo
25 25
  */
26 26
 class FileSender extends AbstractPlugin
27 27
 {
28
-	/**
29
-	 * @var RepositoryService
30
-	 */
28
+    /**
29
+     * @var RepositoryService
30
+     */
31 31
     private $repositories;
32 32
 	
33
-	public function __construct(RepositoryService $repositories)
34
-	{
35
-		$this->repositories = $repositories;
36
-	}
33
+    public function __construct(RepositoryService $repositories)
34
+    {
35
+        $this->repositories = $repositories;
36
+    }
37 37
 	
38 38
 	
39
-	public function __invoke($repositoryName, $fileId)
39
+    public function __invoke($repositoryName, $fileId)
40 40
     {
41 41
         return $this->sendFile($repositoryName, $fileId);
42 42
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         }
54 54
         
55 55
         $response->getHeaders()->addHeaderline('Content-Type', $file->type)
56
-                               ->addHeaderline('Content-Length', $file->size);
56
+                                ->addHeaderline('Content-Length', $file->size);
57 57
         $response->sendHeaders();
58 58
         
59 59
         $resource = $file->getResource();
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
         return $response;
66 66
     }
67 67
 	
68
-	/**
69
-	 * @param ContainerInterface $container
70
-	 *
71
-	 * @return static
72
-	 */
68
+    /**
69
+     * @param ContainerInterface $container
70
+     *
71
+     * @return static
72
+     */
73 73
     static public function factory(ContainerInterface $container)
74 74
     {
75
-    	$repositories = $container->get('repositories');
76
-    	return new static($repositories);
75
+        $repositories = $container->get('repositories');
76
+        return new static($repositories);
77 77
     }
78 78
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/EntitySnapshotFactory.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -20,22 +20,22 @@
 block discarded – undo
20 20
 
21 21
 class EntitySnapshotFactory implements FactoryInterface
22 22
 {
23
-	/**
24
-	 * @param ContainerInterface $container
25
-	 * @param string $requestedName
26
-	 * @param array|null $options
27
-	 *
28
-	 * @return EntitySnapshot
29
-	 */
30
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
31
-	{
32
-		$entitySnapshotPlugin = new EntitySnapshot();
33
-		// @TODO actually we just need...
34
-		// an access to all options defining an Snapshot-Generator
35
-		// the Hydrator-Manager
36
-		$entitySnapshotPlugin->setServiceLocator($container);
37
-		$repositories = $container->get('repositories');
38
-		$entitySnapshotPlugin->setRepositories($repositories);
39
-		return $entitySnapshotPlugin;
40
-	}
23
+    /**
24
+     * @param ContainerInterface $container
25
+     * @param string $requestedName
26
+     * @param array|null $options
27
+     *
28
+     * @return EntitySnapshot
29
+     */
30
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
31
+    {
32
+        $entitySnapshotPlugin = new EntitySnapshot();
33
+        // @TODO actually we just need...
34
+        // an access to all options defining an Snapshot-Generator
35
+        // the Hydrator-Manager
36
+        $entitySnapshotPlugin->setServiceLocator($container);
37
+        $repositories = $container->get('repositories');
38
+        $entitySnapshotPlugin->setRepositories($repositories);
39
+        return $entitySnapshotPlugin;
40
+    }
41 41
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	 *
28 28
 	 * @return EntitySnapshot
29 29
 	 */
30
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
30
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
31 31
 	{
32 32
 		$entitySnapshotPlugin = new EntitySnapshot();
33 33
 		// @TODO actually we just need...
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/Plugin/Service/NotificationFactory.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@
 block discarded – undo
21 21
 
22 22
 class NotificationFactory implements FactoryInterface
23 23
 {
24
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
25
-	{
26
-		$pluginManager = $container->get('ControllerPluginManager');
27
-		$flashMessenger = $pluginManager->get('FlashMessenger');
28
-		$translator = $container->get('translator');
24
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
25
+    {
26
+        $pluginManager = $container->get('ControllerPluginManager');
27
+        $flashMessenger = $pluginManager->get('FlashMessenger');
28
+        $translator = $container->get('translator');
29 29
 		
30
-		$notificationListener = $container->get('Core/Listener/Notification');
31
-		$notification   = new Notification($flashMessenger);
32
-		$notification->setListener($notificationListener);
33
-		$notification->setTranslator($translator);
30
+        $notificationListener = $container->get('Core/Listener/Notification');
31
+        $notification   = new Notification($flashMessenger);
32
+        $notification->setListener($notificationListener);
33
+        $notification->setTranslator($translator);
34 34
 		
35
-		return $notification;
36
-	}
35
+        return $notification;
36
+    }
37 37
 	
38
-	public function createService(ServiceLocatorInterface $serviceLocator)
38
+    public function createService(ServiceLocatorInterface $serviceLocator)
39 39
     {
40 40
         /* @var \Zend\Mvc\Controller\PluginManager $serviceLocator */
41 41
         return $this($serviceLocator,Notification::class);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 
22 22
 class NotificationFactory implements FactoryInterface
23 23
 {
24
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
24
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
25 25
 	{
26 26
 		$pluginManager = $container->get('ControllerPluginManager');
27 27
 		$flashMessenger = $pluginManager->get('FlashMessenger');
28 28
 		$translator = $container->get('translator');
29 29
 		
30 30
 		$notificationListener = $container->get('Core/Listener/Notification');
31
-		$notification   = new Notification($flashMessenger);
31
+		$notification = new Notification($flashMessenger);
32 32
 		$notification->setListener($notificationListener);
33 33
 		$notification->setTranslator($translator);
34 34
 		
@@ -38,6 +38,6 @@  discard block
 block discarded – undo
38 38
 	public function createService(ServiceLocatorInterface $serviceLocator)
39 39
     {
40 40
         /* @var \Zend\Mvc\Controller\PluginManager $serviceLocator */
41
-        return $this($serviceLocator,Notification::class);
41
+        return $this($serviceLocator, Notification::class);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/IndexController.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -26,29 +26,29 @@  discard block
 block discarded – undo
26 26
  */
27 27
 class IndexController extends AbstractActionController
28 28
 {
29
-	/** @var  DefaultListener */
30
-	private $defaultListener;
29
+    /** @var  DefaultListener */
30
+    private $defaultListener;
31 31
 	
32
-	private $config;
32
+    private $config;
33 33
 	
34
-	/**
35
-	 * @var ModuleManager
36
-	 */
37
-	private $moduleManager;
34
+    /**
35
+     * @var ModuleManager
36
+     */
37
+    private $moduleManager;
38 38
 	
39
-	public function __construct($defaultListener,$config,$moduleManager)
40
-	{
41
-		$this->defaultListener = $defaultListener;
42
-		$this->config = $config;
43
-		$this->moduleManager = $moduleManager;
44
-	}
39
+    public function __construct($defaultListener,$config,$moduleManager)
40
+    {
41
+        $this->defaultListener = $defaultListener;
42
+        $this->config = $config;
43
+        $this->moduleManager = $moduleManager;
44
+    }
45 45
     /**
46 46
      * attaches further Listeners for generating / processing the output
47 47
      * @return $this
48 48
      */
49 49
     public function attachDefaultListeners()
50 50
     {
51
-    	// @TODO: [ZF3] check if attach the default listener is really work
51
+        // @TODO: [ZF3] check if attach the default listener is really work
52 52
         parent::attachDefaultListeners();
53 53
         $events          = $this->getEventManager();
54 54
         $this->defaultListener->attach($events);
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function indexAction()
63 63
     {
64 64
         $auth = $this->Auth();
65
-	      $config = $this->config;
65
+            $config = $this->config;
66 66
 
67 67
         if (!$auth->isLoggedIn()) {
68 68
             
@@ -147,14 +147,14 @@  discard block
 block discarded – undo
147 147
     {
148 148
         $viewModel = new ViewModel();
149 149
         $viewModel->setTemplate('error/index')
150
-                  ->setVariable('message', 'An unexpected error had occured. Please try again later.');
150
+                    ->setVariable('message', 'An unexpected error had occured. Please try again later.');
151 151
         return $viewModel;
152 152
     }
153 153
 	
154 154
     static public function factory(ContainerInterface $container)
155 155
     {
156
-	    $defaultListener = $container->get('DefaultListeners');
157
-	    $config = $container->get('config');
158
-	    return new static($defaultListener,$config,$container->get('ModuleManager'));
156
+        $defaultListener = $container->get('DefaultListeners');
157
+        $config = $container->get('config');
158
+        return new static($defaultListener,$config,$container->get('ModuleManager'));
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 */
37 37
 	private $moduleManager;
38 38
 	
39
-	public function __construct($defaultListener,$config,$moduleManager)
39
+	public function __construct($defaultListener, $config, $moduleManager)
40 40
 	{
41 41
 		$this->defaultListener = $defaultListener;
42 42
 		$this->config = $config;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
     	// @TODO: [ZF3] check if attach the default listener is really work
52 52
         parent::attachDefaultListeners();
53
-        $events          = $this->getEventManager();
53
+        $events = $this->getEventManager();
54 54
         $this->defaultListener->attach($events);
55 55
         return $this;
56 56
     }
@@ -155,6 +155,6 @@  discard block
 block discarded – undo
155 155
     {
156 156
 	    $defaultListener = $container->get('DefaultListeners');
157 157
 	    $config = $container->get('config');
158
-	    return new static($defaultListener,$config,$container->get('ModuleManager'));
158
+	    return new static($defaultListener, $config, $container->get('ModuleManager'));
159 159
     }
160 160
 }
Please login to merge, or discard this patch.
module/Core/src/Core/Controller/AdminController.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,11 +35,11 @@
 block discarded – undo
35 35
     
36 36
     static public function factory(ContainerInterface $sm)
37 37
     {
38
-    	/* @var EventManager $eventManager */
39
-    	$eventManager = $sm->get('Core/AdminController/Events');
40
-    	$eventManager->setEventPrototype(new AdminControllerEvent());
41
-    	$ob = new static($eventManager);
42
-    	return $ob;
38
+        /* @var EventManager $eventManager */
39
+        $eventManager = $sm->get('Core/AdminController/Events');
40
+        $eventManager->setEventPrototype(new AdminControllerEvent());
41
+        $ob = new static($eventManager);
42
+        return $ob;
43 43
     }
44 44
     
45 45
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
          * @var AdminControllerEvent $event */
54 54
         $events = $this->adminControllerEvents;
55 55
         $event  = $events->getEvent(AdminControllerEvent::EVENT_DASHBOARD, $this);
56
-        $events->trigger($event,$this);
56
+        $events->trigger($event, $this);
57 57
 
58 58
         $model = new ViewModel();
59 59
         $widgets = [];
Please login to merge, or discard this patch.
module/Core/src/Core/Form/Tree/ManagementFieldset.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     public function init()
52 52
     {
53
-    	$this->setName('items');
53
+        $this->setName('items');
54 54
         $this->add([
55 55
                 'type' => 'Collection',
56 56
                 'name' => 'items',
Please login to merge, or discard this patch.