Completed
Push — develop ( 62f68e...872778 )
by Carsten
13s
created
module/Core/src/Listener/LanguageRouteListener.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,10 +124,10 @@  discard block
 block discarded – undo
124 124
         }
125 125
         
126 126
         $router = $e->getRouter();
127
-        $basePath=$router->getBaseUrl();
127
+        $basePath = $router->getBaseUrl();
128 128
         $match = [];
129 129
         
130
-        if (preg_match('~^' . $basePath . '/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
130
+        if (preg_match('~^'.$basePath.'/([a-z]{2})(?:/|$)~', $e->getRequest()->getRequestUri(), $match)) {
131 131
             /* It seems we have already a language in the URI
132 132
              * Now there are two possibilities:
133 133
              *
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
         $options = $this->moduleOptions;
163 163
         // using default language if detect language is disabled
164
-        $lang = $options->isDetectLanguage() ? $this->detectLanguage($e):$options->getDefaultLanguage();
164
+        $lang = $options->isDetectLanguage() ? $this->detectLanguage($e) : $options->getDefaultLanguage();
165 165
         $langUri = rtrim("$basePath/$lang$origUri", '/');
166 166
         if ($router->match($request->setUri($langUri)) instanceof RouteMatch) {
167 167
             $e->stopPropagation(true);
@@ -212,8 +212,8 @@  discard block
 block discarded – undo
212 212
         setlocale(
213 213
             LC_ALL,
214 214
             array(
215
-            $locale . ".utf8",
216
-            $locale . ".iso88591",
215
+            $locale.".utf8",
216
+            $locale.".iso88591",
217 217
             $locale,
218 218
             substr($locale, 0, 2),
219 219
             'de_DE.utf8',
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@
 block discarded – undo
188 188
 
189 189
     /**
190 190
      * @param $response
191
-     * @param $uri
191
+     * @param string $uri
192 192
      *
193 193
      * @return mixed
194 194
      */
Please login to merge, or discard this patch.
module/Core/src/Listener/NotificationAjaxHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
                 $notifications = $event->getTarget()->getNotifications();
42 42
                 if (is_array($notifications) && !empty($notifications)) {
43 43
                     foreach ($notifications as $notification) {
44
-                        $headScript->appendScript('/* ' . $notification->getNotification() . ' */');
44
+                        $headScript->appendScript('/* '.$notification->getNotification().' */');
45 45
                     }
46 46
                 }
47 47
             }
Please login to merge, or discard this patch.
module/Core/src/Listener/XmlRenderListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,8 +101,8 @@
 block discarded – undo
101 101
             }
102 102
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
103 103
 
104
-            $templateDefault = $viewModel->getTemplate() . '.xml.phtml';
105
-            $templateChannel = $viewModel->getTemplate() . '.' . $channel . '.xml.phtml';
104
+            $templateDefault = $viewModel->getTemplate().'.xml.phtml';
105
+            $templateChannel = $viewModel->getTemplate().'.'.$channel.'.xml.phtml';
106 106
 
107 107
 
108 108
             if ($channel != 'default' && $resolver->resolve($templateChannel)) {
Please login to merge, or discard this patch.
module/Core/src/Listener/AjaxRenderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             }
78 78
             $resolver = $e->getApplication()->getServiceManager()->get('ViewResolver');
79 79
 
80
-            $template = $viewModel->getTemplate() . '.ajax';
80
+            $template = $viewModel->getTemplate().'.ajax';
81 81
             if ($resolver->resolve($template)) {
82 82
                 $viewModel->setTemplate($template);
83 83
             } else {
Please login to merge, or discard this patch.
module/Core/src/Listener/DefaultListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $this->serviceLocator = $serviceLocator;
33 33
     }
34 34
 
35
-    public function attach(EventManagerInterface $events, $priority=1000)
35
+    public function attach(EventManagerInterface $events, $priority = 1000)
36 36
     {
37 37
         $eventsApplication = $this->serviceLocator->get("Application")->getEventManager();
38 38
 
Please login to merge, or discard this patch.
module/Core/src/Listener/Events/CreatePaginatorEvent.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
      */
48 48
     protected $paginator;
49 49
 	
50
-	/**
50
+    /**
51 51
      * @return string
52 52
      */
53 53
     public function getPaginatorName()
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,16 +125,16 @@
 block discarded – undo
125 125
 
126 126
     public function setParams($params)
127 127
     {
128
-        if(is_array($params)){
129
-            if(isset($params['paginatorParams'])){
128
+        if (is_array($params)) {
129
+            if (isset($params['paginatorParams'])) {
130 130
                 $this->setPaginatorParams($params['paginatorParams']);
131 131
                 unset($params['paginatorParams']);
132 132
             }
133
-            if(isset($params['paginators'])){
133
+            if (isset($params['paginators'])) {
134 134
                 $this->setPaginators($params['paginators']);
135 135
                 unset($params['paginators']);
136 136
             }
137
-            if(isset($params['paginatorName'])){
137
+            if (isset($params['paginatorName'])) {
138 138
                 $this->setPaginatorName($params['paginatorName']);
139 139
                 unset($params['paginatorName']);
140 140
             }
Please login to merge, or discard this patch.
module/Core/src/Factory/Form/AbstractCustomizableFieldsetFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      *
45 45
      * @var string
46 46
      */
47
-    const CLASS_NAME   = '';
47
+    const CLASS_NAME = '';
48 48
 
49 49
     /**
50 50
      * Creation options.
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $instance = $this->createFormInstance($container, $requestedName, $options);
83 83
 
84 84
         if (!$instance instanceof CustomizableFieldsetInterface) {
85
-            throw new \RuntimeException('Form or Fieldset instance must implement ' . CustomizableFieldsetInterface::class);
85
+            throw new \RuntimeException('Form or Fieldset instance must implement '.CustomizableFieldsetInterface::class);
86 86
         }
87 87
 
88 88
         $customizeOptions = $this->getCustomizationOptions($container, $requestedName, $options);
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      * @param string             $name
118 118
      * @param array              $options
119 119
      *
120
-     * @return \Zend\Form\Fieldset
120
+     * @return \Core\Options\FieldsetCustomizationOptions
121 121
      * @throws \RuntimeException
122 122
      */
123 123
     protected function createFormInstance(ContainerInterface $container, $name, array $options = null)
Please login to merge, or discard this patch.
module/Core/src/Factory/Form/Tree/SelectFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $strategy = new TreeSelectStrategy();
97 97
         $strategy->setTreeRoot($root);
98
-        $strategy->setAllowSelectMultipleItems(function () use ($select) {
98
+        $strategy->setAllowSelectMultipleItems(function() use ($select) {
99 99
             return $select->isMultiple();
100 100
         });
101 101
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      *
145 145
      * @return array
146 146
      */
147
-    protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot=true)
147
+    protected function createValueOptions(NodeInterface $node, $allowSelectNodes = false, $isRoot = true)
148 148
     {
149 149
         $key    = $isRoot ? $node->getValue() : $node->getValueWithParents();
150 150
         $name   = $node->getName();
Please login to merge, or discard this patch.
module/Core/src/Factory/Form/View/Helper/FormEditorLightFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
         $helper->setOption('theme', 'modern');
58 58
         $helper->setOption('selector', 'div.tinymce_light');
59 59
     
60
-        if (in_array($lang, [ 'de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr' ])) {
60
+        if (in_array($lang, ['de', 'fr', 'it', 'es', 'hi', 'ar', 'ru', 'zh', 'tr'])) {
61 61
             $helper->setOption('language', $lang);
62
-            $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/') . $lang . '.js');
62
+            $helper->setOption('language_url', $basePath('modules/Core/js/tinymce-lang/').$lang.'.js');
63 63
         }
64 64
     
65 65
         return $helper;
Please login to merge, or discard this patch.