Completed
Push — master ( 811327...4aef6e )
by Carsten
14:04 queued 19s
created
module/Core/src/Controller/Plugin/CreatePaginatorService.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
 
82 82
         $adapter->setParams($params);
83 83
         $paginator->setCurrentPageNumber($params->get('page', 1))
84
-                  ->setItemCountPerPage($params->get('count', 10));
84
+                    ->setItemCountPerPage($params->get('count', 10));
85 85
 
86 86
         return $paginator;
87 87
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@
 block discarded – undo
62 62
         $paginatorManager = $this->serviceManager->get('Core/PaginatorService');
63 63
         $paginator = $paginatorManager->get($paginatorName);
64 64
         if (!isset($paginator) || !$paginator instanceof LaminasPaginator) {
65
-            throw new \RuntimeException('Could not create paginator ' . $paginatorName);
65
+            throw new \RuntimeException('Could not create paginator '.$paginatorName);
66 66
         }
67 67
         $adapter = $paginator->getAdapter();
68 68
         if (!isset($adapter) || !$adapter instanceof AdapterInterface) {
69
-            throw new \RuntimeException('Paginator ' . $paginatorName . ' has no Adapter');
69
+            throw new \RuntimeException('Paginator '.$paginatorName.' has no Adapter');
70 70
         }
71 71
 
72 72
         $params     = $usePostParams
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/ContentCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
                 $response = new ViewModel(array('target' => $target));
87 87
                 $response->setTemplate($template);
88 88
             }
89
-            $viewModel->addChild($response, $this->_captureTo . $i);
89
+            $viewModel->addChild($response, $this->_captureTo.$i);
90 90
         }
91 91
                 
92 92
         return $viewModel;
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/CreatePaginator.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,8 +121,8 @@
 block discarded – undo
121 121
             $paginator = $paginators->get($paginatorName, $params);
122 122
         }
123 123
         $paginator->setCurrentPageNumber(isset($params['page']) ? $params['page'] : 1)
124
-                  ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10)
125
-                  ->setPageRange(isset($params['range']) ? $params['range'] : 5);
124
+                    ->setItemCountPerPage(isset($params['count']) ? $params['count'] : 10)
125
+                    ->setPageRange(isset($params['range']) ? $params['range'] : 5);
126 126
 
127 127
         return $paginator;
128 128
     }
Please login to merge, or discard this patch.
module/Core/src/Controller/Plugin/Service/NotificationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $translator = $container->get('translator');
39 39
         
40 40
         $notificationListener = $container->get('Core/Listener/Notification');
41
-        $notification   = new Notification($flashMessenger);
41
+        $notification = new Notification($flashMessenger);
42 42
         $notification->setListener($notificationListener);
43 43
         $notification->setTranslator($translator);
44 44
         
Please login to merge, or discard this patch.
module/Core/src/Paginator/PaginatorServiceFactory.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
  */
26 26
 class PaginatorServiceFactory implements FactoryInterface
27 27
 {
28
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
29
-	{
30
-		$configArray = $container->get('Config');
31
-		$configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32
-		$config      = new PaginatorServiceConfig($configArray);
33
-		$service   = new PaginatorService($container,$config->toArray());
28
+    public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
29
+    {
30
+        $configArray = $container->get('Config');
31
+        $configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32
+        $config      = new PaginatorServiceConfig($configArray);
33
+        $service   = new PaginatorService($container,$config->toArray());
34 34
 		
35
-		return $service;
36
-	}
35
+        return $service;
36
+    }
37 37
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
  */
26 26
 class PaginatorServiceFactory implements FactoryInterface
27 27
 {
28
-	public function __invoke( ContainerInterface $container, $requestedName, array $options = null )
28
+	public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
29 29
 	{
30 30
 		$configArray = $container->get('Config');
31 31
 		$configArray = isset($configArray['paginator_manager']) ? $configArray['paginator_manager'] : array();
32 32
 		$config      = new PaginatorServiceConfig($configArray);
33
-		$service   = new PaginatorService($container,$config->toArray());
33
+		$service = new PaginatorService($container, $config->toArray());
34 34
 		
35 35
 		return $service;
36 36
 	}
Please login to merge, or discard this patch.
module/Core/src/Service/SnapshotGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
         }
90 90
 
91 91
         if (!$target) {
92
-            $target = get_class($source) . 'Snapshot';
92
+            $target = get_class($source).'Snapshot';
93 93
             $target = new $target($source);
94 94
         }
95 95
 
Please login to merge, or discard this patch.
module/Core/src/Service/Tracy.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
         $config['log'] = $log;
73 73
 
74
-        return new static($eventManager,$config);
74
+        return new static($eventManager, $config);
75 75
     }
76 76
 
77 77
     public function startDebug()
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         /** @var Logger $logger */
102 102
         $logger = Debugger::getLogger();
103 103
         $logger->emailSnooze = $config['email_snooze'];
104
-        $logger->mailer = function ($message, $email) use ($logger) {
104
+        $logger->mailer = function($message, $email) use ($logger) {
105 105
             $exceptionFile = null;
106 106
 
107 107
             if ($message instanceof \Exception || $message instanceof \Throwable) {
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
                 while ($message) {
111 111
                     $tmp[] = (
112 112
                         $message instanceof \ErrorException
113
-                            ? Helpers::errorTypeToString($message->getSeverity()) . ': ' . $message->getMessage()
114
-                            : Helpers::getClass($message) . ': ' . $message->getMessage() . ($message->getCode() ? ' #' . $message->getCode() : '')
115
-                        ) . ' in ' . $message->getFile() . ':' . $message->getLine();
113
+                            ? Helpers::errorTypeToString($message->getSeverity()).': '.$message->getMessage()
114
+                            : Helpers::getClass($message).': '.$message->getMessage().($message->getCode() ? ' #'.$message->getCode() : '')
115
+                        ).' in '.$message->getFile().':'.$message->getLine();
116 116
                     $message = $message->getPrevious();
117 117
                 }
118 118
                 $message = implode("\ncaused by ", $tmp);
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             $host = preg_replace('#[^\w.-]+#', '', isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : php_uname('n'));
129 129
             $mimeMessage = new Mime\Message();
130 130
 
131
-            $text = new Mime\Part($message . "\n\nsource: " . Helpers::getSource());
131
+            $text = new Mime\Part($message."\n\nsource: ".Helpers::getSource());
132 132
             $text->type = Mime\Mime::TYPE_TEXT;
133 133
             $text->charset = 'utf-8';
134 134
             $mimeMessage->addPart($text);
Please login to merge, or discard this patch.
module/Core/src/Service/RestClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@
 block discarded – undo
92 92
      */
93 93
     protected function authetificate()
94 94
     {
95
-        $auth = array_key_exists('user', $this->config)?$this->config['user']:'';
96
-        $pass = array_key_exists('pass', $this->config)?$this->config['pass']:'';
95
+        $auth = array_key_exists('user', $this->config) ? $this->config['user'] : '';
96
+        $pass = array_key_exists('pass', $this->config) ? $this->config['pass'] : '';
97 97
         return $this->setAuth($auth, $pass);
98 98
     }
99 99
 
Please login to merge, or discard this patch.
module/Core/src/Service/Config.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
             $config    = $this->serviceManager->get('Config');
90 90
             $appConfig = $this->serviceManager->get('ApplicationConfig');
91 91
             foreach ($appConfig['modules'] as $module) {
92
-                $this->config[$module] = array_key_exists($module, $config)?$config[$module]:array();
92
+                $this->config[$module] = array_key_exists($module, $config) ? $config[$module] : array();
93 93
             }
94 94
         }
95 95
         if (isset($namespace)) {
96
-            return array_key_exists($namespace, $this->config)?$this->config[$namespace]: array();
96
+            return array_key_exists($namespace, $this->config) ? $this->config[$namespace] : array();
97 97
         }
98 98
         return $this->config;
99 99
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         }
107 107
         if (!empty($this->map[$key])) {
108 108
             $module          = $this->getNamespace();
109
-            return isset($this->map[$key][$module])?$this->map[$key][$module]:array();
109
+            return isset($this->map[$key][$module]) ? $this->map[$key][$module] : array();
110 110
         }
111 111
         return array();
112 112
     }
Please login to merge, or discard this patch.