Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/modules/cms/Controller/Template.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
             'sections' => $this->getModel()->getSections()
52 52
         );
53 53
 
54
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/template');
54
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/template');
55 55
         return $tpl->render($this, $data);
56 56
     }
57 57
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             'translation' => $this->getKernel()->getTranslation()
64 64
         );
65 65
 
66
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/template-edit');
66
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/template-edit');
67 67
         return $tpl->render($this, $data);
68 68
     }
69 69
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Element.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         } elseif ($this->getElement()->get('type') == 'filelist') {
43 43
             return $append_file = new AppendFile($this->getKernel(), 'cms_element_filelist', $this->getElement()->get('id'));
44 44
         } elseif ($this->getElement()->get('type') == 'picture') {
45
-             return new AppendFile($this->getKernel(), 'cms_element_picture', $this->getElement()->get('id'));
45
+                return new AppendFile($this->getKernel(), 'cms_element_picture', $this->getElement()->get('id'));
46 46
         }
47 47
         throw new Exception('No valid fileappender present');
48 48
     }
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
                 if ($element->get('type') == 'picture') {
122 122
                     return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1)));
123 123
                 } elseif ($element->get('type') == 'gallery') {
124
-                     return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1, 'multiple_choice' => 1)));
124
+                        return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 1, 'multiple_choice' => 1)));
125 125
                 } elseif ($element->get('type') == 'filelist') {
126
-                     return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 0, 'multiple_choice' => 1)));
126
+                        return new k_SeeOther($this->url('filehandler/selectfile', array('images' => 0, 'multiple_choice' => 1)));
127 127
                 } else {
128 128
                     throw new Exception("Det er ikke en gyldig elementtype til at lave redirect fra");
129 129
                 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             'translation' => $this->getKernel()->getTranslation('cms')
102 102
         );
103 103
 
104
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/section-html-edit');
104
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/section-html-edit');
105 105
         return $tpl->render($this, $data);
106 106
 
107 107
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             } elseif (!empty($_POST['close'])) {
132 132
                 return new k_SeeOther($this->url('../../'));
133 133
             } else {
134
-                return new k_SeeOther($this->url('../../element/' . $element->get('id')));
134
+                return new k_SeeOther($this->url('../../element/'.$element->get('id')));
135 135
             }
136 136
         } else {
137 137
             $value = $_POST;
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Sections.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
         }
48 48
 
49 49
         $data = array(
50
-        	'cmspage' => $cmspage,
51
-        	'sections' => $sections,
50
+            'cmspage' => $cmspage,
51
+            'sections' => $sections,
52 52
             'kernel' => $this->getKernel(),
53 53
             'error' => $this->error
54 54
         );
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             'kernel' => $this->getKernel(),
53 53
             'error' => $this->error
54 54
         );
55
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/page');
55
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/page');
56 56
         return $tpl->render($this, $data);
57 57
     }
58 58
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 }
98 98
                 */
99 99
                 if (!$section->save($value)) {
100
-                    $this->error[$section->get('id')] = $this->t('error in section') . ' ' . strtolower(implode($section->error->message, ', '));
100
+                    $this->error[$section->get('id')] = $this->t('error in section').' '.strtolower(implode($section->error->message, ', '));
101 101
                 }
102 102
             }
103 103
         }
@@ -119,14 +119,14 @@  discard block
 block discarded – undo
119 119
 
120 120
                 return new k_SeeOther($url);
121 121
                 */
122
-                return new k_SeeOther($this->url($section_id . '/filehandler/selectfile'));
122
+                return new k_SeeOther($this->url($section_id.'/filehandler/selectfile'));
123 123
             } elseif ($this->body('edit_html')) {
124 124
                 $keys = array_keys($_POST['edit_html']);
125 125
                 return new k_SeeOther($this->url($keys[0]));
126 126
             } elseif ($this->body('close')) {
127 127
                 return new k_SeeOther($this->url('../../', array('type' => $this->context->getModel()->get('type'), 'id' => $this->context->getModel()->cmssite->get('id'))));
128 128
             } else {
129
-                return new k_SeeOther($this->url('../../' . $this->context->getModel()->get('id')));
129
+                return new k_SeeOther($this->url('../../'.$this->context->getModel()->get('id')));
130 130
             }
131 131
         } else {
132 132
             $cmspage = $section->cmspage;
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Index.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 
15 15
     function map($name)
16 16
     {
17
-         if (is_numeric($name)) {
18
-             return 'Intraface_modules_cms_Controller_Site';
19
-         }  elseif ($name == 'create') {
17
+            if (is_numeric($name)) {
18
+                return 'Intraface_modules_cms_Controller_Site';
19
+            }  elseif ($name == 'create') {
20 20
             return 'Intraface_modules_cms_Controller_SiteEdit';
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             'sites' => $sites
32 32
         );
33 33
 
34
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/index');
34
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/index');
35 35
         return $tpl->render($this, $data);
36 36
     }
37 37
 
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             'cms_module' => $cms_module
51 51
         );
52 52
 
53
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/site-edit');
53
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/site-edit');
54 54
         return $tpl->render($this, $data);
55 55
     }
56 56
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     {
17 17
          if (is_numeric($name)) {
18 18
              return 'Intraface_modules_cms_Controller_Site';
19
-         }  elseif ($name == 'create') {
19
+         } elseif ($name == 'create') {
20 20
             return 'Intraface_modules_cms_Controller_SiteEdit';
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Stylesheet.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
             'cmssite' => $cmssite
20 20
         );
21 21
 
22
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/stylesheet-edit');
22
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/stylesheet-edit');
23 23
         return $tpl->render($this, $data);
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
             'element_types' => $element_types
72 72
         );
73 73
 
74
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/section-html');
74
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/section-html');
75 75
         return $tpl->render($this, $data);
76 76
     }
77 77
 
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Pages.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@  discard block
 block discarded – undo
85 85
         $news = $cmsnews->getList();
86 86
 
87 87
         $data = array(
88
-        	'type' => $type,
89
-        	'page_types_plural' => $page_types_plural,
88
+            'type' => $type,
89
+            'page_types_plural' => $page_types_plural,
90 90
             'cmssite' => $cmssite,
91 91
             'cmspage' => $cmspage,
92 92
             'pages' => $pages,
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
         $this->document->addScript('cms/parseUrlIdentifier.js');
140 140
 
141 141
         $data = array('value' => $value,
142
-        	'type' => $type,
143
-        	'cmspage' => $cmspage,
144
-        	'template' => $template,
142
+            'type' => $type,
143
+            'cmspage' => $cmspage,
144
+            'template' => $template,
145 145
             'translation' => $this->getKernel()->getTranslation('cms'),
146 146
             'templates' => $templates,
147 147
             'cmssite' => $cmssite,
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             'news' => $news
95 95
         );
96 96
 
97
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/pages');
97
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/pages');
98 98
         return $tpl->render($this, $data);
99 99
     }
100 100
 
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             'kernel' => $this->getKernel(),
149 149
             'cmspages' => $cmspages);
150 150
 
151
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/page-edit');
151
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/page-edit');
152 152
         return $tpl->render($this, $data);
153 153
     }
154 154
 
@@ -160,12 +160,12 @@  discard block
 block discarded – undo
160 160
 
161 161
         if ($cmspage->save($_POST)) {
162 162
             if (!empty($_POST['choose_file']) && $this->getKernel()->user->hasModuleAccess('filemanager')) {
163
-                return new k_SeeOther($this->url($cmspage->get('id') . '/filehandler/selectfile', array('images' => 1)));
163
+                return new k_SeeOther($this->url($cmspage->get('id').'/filehandler/selectfile', array('images' => 1)));
164 164
             } elseif (!empty($_POST['close'])) {
165 165
                 return new k_SeeOther($this->url($cmspage->get('id')));
166 166
             } elseif (!empty($_POST['add_keywords'])) {
167 167
                 $keyword_shared = $this->getKernel()->useShared('keyword');
168
-                return new k_SeeOther($this->url($cmspage->get('id') . '/keyword/connect'));
168
+                return new k_SeeOther($this->url($cmspage->get('id').'/keyword/connect'));
169 169
             } else {
170 170
                 return new k_SeeOther($this->url(null, array('type' => $cmspage->get('type'))));
171 171
             }
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/TemplateSectionEdit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
             'kernel' => $this->getKernel()
36 36
         );
37 37
 
38
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/template-section-edit');
38
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/template-section-edit');
39 39
         return $tpl->render($this, $data);
40 40
     }
41 41
     
Please login to merge, or discard this patch.
src/Intraface/modules/cms/Controller/Navigation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     {
15 15
         $webshop_module = $this->getKernel()->module('cms');
16 16
 
17
-        $this->document->setTitle('Navigation for ' . $this->getSite()->get('name'));
17
+        $this->document->setTitle('Navigation for '.$this->getSite()->get('name'));
18 18
 
19 19
         $data['categories'] = $this->getNavigationGateway()->findBySite($this->getSite());
20 20
 
Please login to merge, or discard this patch.