Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/modules/onlinepayment/Language.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@
 block discarded – undo
17 17
 
18 18
     function getConfirmationEmailSubject($language)
19 19
     {
20
-    	return $this->Translation[$language]->subject;
20
+        return $this->Translation[$language]->subject;
21 21
     }
22 22
 
23 23
     function getConfirmationEmailBody($language)
24 24
     {
25
-    	return $this->Translation[$language]->email;
25
+        return $this->Translation[$language]->email;
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
     {
6 6
         $this->setTableName('onlinepayment_settings');
7 7
         // $this->hasColumn('intranet_id', 'integer', 11, array('greaterthan' => 0)); // defined in intranet template
8
-        $this->hasColumn('email', 'string',  65555);
9
-        $this->hasColumn('subject', 'string',  255);
8
+        $this->hasColumn('email', 'string', 65555);
9
+        $this->hasColumn('subject', 'string', 255);
10 10
     }
11 11
 
12 12
     public function setUp()
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/Controller/ChooseProvider.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@  discard block
 block discarded – undo
16 16
     function renderHtml()
17 17
     {
18 18
         $onlinepayment_module = $this->context->getKernel()->module('onlinepayment');
19
-    	$onlinepayment = OnlinePayment::factory($this->context->getKernel());
20
-    	$value = $onlinepayment->getProvider();
19
+        $onlinepayment = OnlinePayment::factory($this->context->getKernel());
20
+        $value = $onlinepayment->getProvider();
21 21
         $smarty = $this->template->create(dirname(__FILE__) . '/templates/chooseprovider');
22 22
         return $smarty->render($this, array('value' => $value));
23 23
     }
@@ -26,12 +26,12 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $onlinepayment_module = $this->context->getKernel()->module('onlinepayment');
28 28
 
29
-    	$onlinepayment = OnlinePayment::factory($this->context->getKernel());
30
-    	if ($onlinepayment->setProvider($_POST)) {
31
-    		return new k_SeeOther($this->url('../'));
32
-    	} else {
33
-    		$value = $_POST;
34
-    	}
29
+        $onlinepayment = OnlinePayment::factory($this->context->getKernel());
30
+        if ($onlinepayment->setProvider($_POST)) {
31
+            return new k_SeeOther($this->url('../'));
32
+        } else {
33
+            $value = $_POST;
34
+        }
35 35
         return $this->render();
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         $onlinepayment_module = $this->context->getKernel()->module('onlinepayment');
19 19
     	$onlinepayment = OnlinePayment::factory($this->context->getKernel());
20 20
     	$value = $onlinepayment->getProvider();
21
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/chooseprovider');
21
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/chooseprovider');
22 22
         return $smarty->render($this, array('value' => $value));
23 23
     }
24 24
 
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/Controller/Index.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
         $onlinepayment = OnlinePayment::factory($this->context->getKernel());
31 31
 
32 32
         if (isset($_GET['status'])) {
33
-        	$onlinepayment->getDBQuery()->setFilter('status', $_GET['status']);
33
+            $onlinepayment->getDBQuery()->setFilter('status', $_GET['status']);
34 34
         } else {
35 35
             $onlinepayment->getDBQuery()->setFilter('status', 2);
36 36
         }
37 37
         if (isset($_GET['text'])) {
38
-        	$onlinepayment->getDBQuery()->setFilter('text', $_GET['text']);
38
+            $onlinepayment->getDBQuery()->setFilter('text', $_GET['text']);
39 39
         }
40 40
         if (isset($_GET["from_date"]) && $_GET["from_date"] != "") {
41 41
             $onlinepayment->getDBQuery()->setFilter("from_date", $_GET["from_date"]);
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
         $payments = $onlinepayment->getList();
48 48
 
49 49
         $data = array(
50
-        	'kernel' => $this->getKernel(),
51
-        	'payments' => $payments,
52
-        	'onlinepayment' => $onlinepayment);
50
+            'kernel' => $this->getKernel(),
51
+            'payments' => $payments,
52
+            'onlinepayment' => $onlinepayment);
53 53
 
54 54
         $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
55 55
         return $smarty->render($this, $data);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
         	'payments' => $payments,
52 52
         	'onlinepayment' => $onlinepayment);
53 53
 
54
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
54
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/index');
55 55
         return $smarty->render($this, $data);
56 56
     }
57 57
 }
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/Controller/Settings.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $settings = Doctrine::getTable('Intraface_modules_onlinepayment_Language')->findOneByIntranetId($this->context->getKernel()->intranet->getId());
33 33
 
34 34
         if (!$settings) {
35
-        	$settings = new Intraface_modules_onlinepayment_Language;
35
+            $settings = new Intraface_modules_onlinepayment_Language;
36 36
             $settings->save();
37 37
         }
38 38
         $value = $onlinepayment->getSettings();
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
          */
63 63
         $settings = Doctrine::getTable('Intraface_modules_onlinepayment_Language')->findOneByIntranetId($this->context->getKernel()->intranet->getId());
64 64
         if (!$settings) {
65
-        	$settings = new Intraface_modules_onlinepayment_Language;
65
+            $settings = new Intraface_modules_onlinepayment_Language;
66 66
         }
67 67
         $settings->Translation['da']->email = $_POST['email']['da'];
68 68
         $settings->Translation['da']->subject = $_POST['subject']['da'];
@@ -74,11 +74,11 @@  discard block
 block discarded – undo
74 74
 
75 75
         $settings->save();
76 76
 
77
-    	if ($onlinepayment->setSettings($_POST)) {
78
-    		return new k_SeeOther($this->url());
79
-    	} else {
80
-    		$value = $_POST;
81
-    	}
77
+        if ($onlinepayment->setSettings($_POST)) {
78
+            return new k_SeeOther($this->url());
79
+        } else {
80
+            $value = $_POST;
81
+        }
82 82
         return $this->render();
83 83
     }
84 84
 }
85 85
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
             'value' => $value
46 46
         );
47 47
 
48
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/settings');
48
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/settings');
49 49
         return $smarty->render($this, $data);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
src/Intraface/modules/onlinepayment/Controller/Payment.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -22,21 +22,21 @@
 block discarded – undo
22 22
 
23 23
     function postForm()
24 24
     {
25
-    	$module = $this->context->getKernel()->module("onlinepayment");
25
+        $module = $this->context->getKernel()->module("onlinepayment");
26 26
         // $onlinepayment = new OnlinePayment($this->context->getKernel(), $_POST['id']);
27
-    	// $implemented_providers = $onlinepayment_module->getSetting('implemented_providers');
28
-    	// $implemented_providers[$this->context->getKernel()->setting->get('intranet', 'onlinepayment.provider_key')]
29
-    	$onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id',  $this->name());
27
+        // $implemented_providers = $onlinepayment_module->getSetting('implemented_providers');
28
+        // $implemented_providers[$this->context->getKernel()->setting->get('intranet', 'onlinepayment.provider_key')]
29
+        $onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id',  $this->name());
30 30
 
31 31
 
32
-    	if ($onlinepayment->update($_POST)) {
33
-    		$onlinepayment->load();
34
-    		$value['dk_amount'] = $onlinepayment->get('dk_amount');
35
-    		//header("Location: index.php?from_id=".$onlinepayment->get("id"));
36
-    		//exit;
37
-    	} else {
38
-    		$value = $_POST;
39
-    	}
40
-    	return $this->render();
32
+        if ($onlinepayment->update($_POST)) {
33
+            $onlinepayment->load();
34
+            $value['dk_amount'] = $onlinepayment->get('dk_amount');
35
+            //header("Location: index.php?from_id=".$onlinepayment->get("id"));
36
+            //exit;
37
+        } else {
38
+            $value = $_POST;
39
+        }
40
+        return $this->render();
41 41
     }
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@  discard block
 block discarded – undo
12 12
     {
13 13
         $module = $this->context->getKernel()->module("onlinepayment");
14 14
         $translation = $this->context->getKernel()->getTranslation('onlinepayment');
15
-        $onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id',  $this->name());
15
+        $onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id', $this->name());
16 16
 
17 17
         $value['dk_amount'] = $onlinepayment->get('dk_amount');
18 18
 
19
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/payment');
19
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/payment');
20 20
         return $smarty->render($this, array('value' => $value, 'kernel' => $this->context->getKernel(), 'onlinepayment' => $onlinepayment));
21 21
     }
22 22
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
         // $onlinepayment = new OnlinePayment($this->context->getKernel(), $_POST['id']);
27 27
     	// $implemented_providers = $onlinepayment_module->getSetting('implemented_providers');
28 28
     	// $implemented_providers[$this->context->getKernel()->setting->get('intranet', 'onlinepayment.provider_key')]
29
-    	$onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id',  $this->name());
29
+    	$onlinepayment = OnlinePayment::factory($this->context->getKernel(), 'id', $this->name());
30 30
 
31 31
 
32 32
     	if ($onlinepayment->update($_POST)) {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/CreditNote.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,13 +78,13 @@  discard block
 block discarded – undo
78 78
             for ($i = 0, $max = count($items); $i < $max; $i++) {
79 79
                 $product = new Product($this->kernel, $items[$i]['product_id']);
80 80
                 if ($product->get('state_account_id') == 0) {
81
-                    $this->error->set('Produktet ' . $product->get('name') . ' ved ikke hvor den skal bogf�res');
81
+                    $this->error->set('Produktet '.$product->get('name').' ved ikke hvor den skal bogf�res');
82 82
                 }
83 83
                 else {
84 84
                     require_once 'Intraface/modules/accounting/Account.php';
85 85
                     $account = Account::factory($year, $product->get('state_account_id'));
86 86
                     if ($account->get('id') == 0 || $account->get('type') != 'operating') {
87
-                        $this->error->set('Ugyldig konto for bogf�ring af produktet ' . $product->get('name'));
87
+                        $this->error->set('Ugyldig konto for bogf�ring af produktet '.$product->get('name'));
88 88
                         $return = false;
89 89
                     }
90 90
                 }
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $voucher->save(array(
135 135
             'voucher_number' => $voucher_number,
136 136
             'date' => $voucher_date,
137
-            'text' => 'Kreditnota #' . $this->get('number')
137
+            'text' => 'Kreditnota #'.$this->get('number')
138 138
         ));
139 139
 
140 140
 
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $credit_account_number = $credit_account->get('number');
151 151
             $voucher = Voucher::factory($year, $voucher_number);
152 152
 
153
-            $amount = $item['quantity'] * $item['price']->getAsIso(2);
153
+            $amount = $item['quantity']*$item['price']->getAsIso(2);
154 154
 
155 155
             // hvis bel�bet er mindre end nul, skal konti byttes om og bel�bet skal g�res positivt
156 156
             if ($amount < 0) {
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
                 'debet_account_number' => $debet_account_number,
168 168
                 'credit_account_number' => $credit_account_number,
169 169
                 'vat_off' => 1,
170
-                'text' => $text.' #' . $this->get('number') . ' - ' . $item['name']
170
+                'text' => $text.' #'.$this->get('number').' - '.$item['name']
171 171
             );
172 172
             if ($debet_account->get('vat') == 'out') {
173
-                $total_with_vat += $item["quantity"] * $item["price"]->getAsIso(2);
173
+                $total_with_vat += $item["quantity"]*$item["price"]->getAsIso(2);
174 174
             }
175 175
 
176 176
             if (!$voucher->saveInDaybook($input_values, true)) {
@@ -187,11 +187,11 @@  discard block
 block discarded – undo
187 187
                     'voucher_number' => $voucher_number,
188 188
                     'reference' => $this->get('number'),
189 189
                     'date' => $voucher_date,
190
-                    'amount' => number_format($total_with_vat * $this->kernel->setting->get('intranet', 'vatpercent') / 100, 2, ",", "."), // opm�rksom p� at vat bliver rigtig defineret
190
+                    'amount' => number_format($total_with_vat*$this->kernel->setting->get('intranet', 'vatpercent')/100, 2, ",", "."), // opm�rksom p� at vat bliver rigtig defineret
191 191
                     'debet_account_number' => $debet_account->get('number'),
192 192
                     'credit_account_number' => $credit_account->get('number'),
193 193
                     'vat_off' => 1,
194
-                    'text' => $text.' #' . $this->get('number') . ' - ' . $debet_account->get('name')
194
+                    'text' => $text.' #'.$this->get('number').' - '.$debet_account->get('name')
195 195
             );
196 196
             if (!$voucher->saveInDaybook($input_values, true)) {
197 197
                 $this->error->merge($voucher->error->getMessage());
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
 
201 201
         require_once 'Intraface/modules/accounting/VoucherFile.php';
202 202
         $voucher_file = new VoucherFile($voucher);
203
-        if (!$voucher_file->save(array('description' => $text.' #' . $this->get('number'), 'belong_to'=>'credit_note','belong_to_id'=>$this->get('id')))) {
203
+        if (!$voucher_file->save(array('description' => $text.' #'.$this->get('number'), 'belong_to'=>'credit_note', 'belong_to_id'=>$this->get('id')))) {
204 204
             $this->error->merge($voucher_file->error->getMessage());
205 205
             $this->error->set('Filen blev ikke overflyttet');
206 206
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,8 +79,7 @@
 block discarded – undo
79 79
                 $product = new Product($this->kernel, $items[$i]['product_id']);
80 80
                 if ($product->get('state_account_id') == 0) {
81 81
                     $this->error->set('Produktet ' . $product->get('name') . ' ved ikke hvor den skal bogf�res');
82
-                }
83
-                else {
82
+                } else {
84 83
                     require_once 'Intraface/modules/accounting/Account.php';
85 84
                     $account = Account::factory($year, $product->get('state_account_id'));
86 85
                     if ($account->get('id') == 0 || $account->get('type') != 'operating') {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/FileViewer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         $last_modified = filemtime($this->file_path);
92 92
 
93 93
         header('Content-Type: '.$this->mime_type);
94
-        header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $last_modified).' GMT');
94
+        header('Last-Modified: '.gmdate('D, d M Y H:i:s', $last_modified).' GMT');
95 95
         header('Cache-Control:');
96 96
         header('Content-Disposition: inline; filename='.$this->file_name);
97 97
         header('Pragma:');
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/Append/File.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,18 +20,18 @@
 block discarded – undo
20 20
         // @todo should add the template for intranet
21 21
         //$this->actAs('Intraface_Doctrine_Template_Intranet');
22 22
         $options = array('created' =>  array('name'          => 'date_created',    // Name of created column
23
-                                             'type'          => 'timestamp',     // Doctrine column data type
24
-                                             'options'       => array(),         // Array of options for column
25
-                                             'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
26
-                                             'disabled'      => false,           // Disable the created column(default)
27
-                                             'expression'    => 'NOW()'),        // Update column with database expression(default=false)
28
-                         'updated' =>  array('name'          => 'date_updated',    // Name of updated column(default)
29
-                                             'type'          => 'timestamp',     // Doctrine column data type(default)
30
-                                             'options'       => array(),         // Array of options for column(default)
31
-                                             'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
32
-                                             'disabled'      => false,           // Disable the updated column(default)
33
-                                             'expression'    => 'NOW()',         // Use a database expression to set column(default=false)
34
-                                             'onInsert'      => true));          // Whether or not to set column onInsert(default)
23
+                                                'type'          => 'timestamp',     // Doctrine column data type
24
+                                                'options'       => array(),         // Array of options for column
25
+                                                'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
26
+                                                'disabled'      => false,           // Disable the created column(default)
27
+                                                'expression'    => 'NOW()'),        // Update column with database expression(default=false)
28
+                            'updated' =>  array('name'          => 'date_updated',    // Name of updated column(default)
29
+                                                'type'          => 'timestamp',     // Doctrine column data type(default)
30
+                                                'options'       => array(),         // Array of options for column(default)
31
+                                                'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
32
+                                                'disabled'      => false,           // Disable the updated column(default)
33
+                                                'expression'    => 'NOW()',         // Use a database expression to set column(default=false)
34
+                                                'onInsert'      => true));          // Whether or not to set column onInsert(default)
35 35
 
36 36
         $this->actAs('Timestampable', $options);
37 37
 
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -4,34 +4,34 @@
 block discarded – undo
4 4
     function setTableDefinition()
5 5
     {
6 6
         $this->setTableName('filehandler_append_file');
7
-        $this->hasColumn('intranet_id',    'integer', 11);
8
-        $this->hasColumn('date_created',    'datetime');
9
-        $this->hasColumn('date_updated',    'datetime');
10
-        $this->hasColumn('belong_to_key',   'integer', 11);
11
-        $this->hasColumn('belong_to_id',    'integer', 11);
7
+        $this->hasColumn('intranet_id', 'integer', 11);
8
+        $this->hasColumn('date_created', 'datetime');
9
+        $this->hasColumn('date_updated', 'datetime');
10
+        $this->hasColumn('belong_to_key', 'integer', 11);
11
+        $this->hasColumn('belong_to_id', 'integer', 11);
12 12
         $this->hasColumn('file_handler_id', 'integer', 11);
13
-        $this->hasColumn('description',     'string', 65555);
14
-        $this->hasColumn('position',        'integer', 11);
15
-        $this->hasColumn('active',          'integer', 1);
13
+        $this->hasColumn('description', 'string', 65555);
14
+        $this->hasColumn('position', 'integer', 11);
15
+        $this->hasColumn('active', 'integer', 1);
16 16
     }
17 17
 
18 18
     public function setUp()
19 19
     {
20 20
         // @todo should add the template for intranet
21 21
         //$this->actAs('Intraface_Doctrine_Template_Intranet');
22
-        $options = array('created' =>  array('name'          => 'date_created',    // Name of created column
23
-                                             'type'          => 'timestamp',     // Doctrine column data type
24
-                                             'options'       => array(),         // Array of options for column
25
-                                             'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
26
-                                             'disabled'      => false,           // Disable the created column(default)
27
-                                             'expression'    => 'NOW()'),        // Update column with database expression(default=false)
28
-                         'updated' =>  array('name'          => 'date_updated',    // Name of updated column(default)
29
-                                             'type'          => 'timestamp',     // Doctrine column data type(default)
30
-                                             'options'       => array(),         // Array of options for column(default)
31
-                                             'format'        => 'Y-m-d H:i:s',   // Format of date used with PHP date() function(default)
32
-                                             'disabled'      => false,           // Disable the updated column(default)
33
-                                             'expression'    => 'NOW()',         // Use a database expression to set column(default=false)
34
-                                             'onInsert'      => true));          // Whether or not to set column onInsert(default)
22
+        $options = array('created' =>  array('name'          => 'date_created', // Name of created column
23
+                                             'type'          => 'timestamp', // Doctrine column data type
24
+                                             'options'       => array(), // Array of options for column
25
+                                             'format'        => 'Y-m-d H:i:s', // Format of date used with PHP date() function(default)
26
+                                             'disabled'      => false, // Disable the created column(default)
27
+                                             'expression'    => 'NOW()'), // Update column with database expression(default=false)
28
+                         'updated' =>  array('name'          => 'date_updated', // Name of updated column(default)
29
+                                             'type'          => 'timestamp', // Doctrine column data type(default)
30
+                                             'options'       => array(), // Array of options for column(default)
31
+                                             'format'        => 'Y-m-d H:i:s', // Format of date used with PHP date() function(default)
32
+                                             'disabled'      => false, // Disable the updated column(default)
33
+                                             'expression'    => 'NOW()', // Use a database expression to set column(default=false)
34
+                                             'onInsert'      => true)); // Whether or not to set column onInsert(default)
35 35
 
36 36
         $this->actAs('Timestampable', $options);
37 37
 
Please login to merge, or discard this patch.
src/Intraface/modules/todo/Controller/Setting.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
         $module = $this->getKernel()->module('todo');
14 14
         $translation = $this->getKernel()->getTranslation('todo');
15 15
 
16
-    	$value['publiclist'] = 	$kernel->setting->get('intranet','todo.publiclist');
17
-    	$value['emailstandardtext'] = 	$kernel->setting->get('user','todo.email.standardtext');
16
+        $value['publiclist'] = 	$kernel->setting->get('intranet','todo.publiclist');
17
+        $value['emailstandardtext'] = 	$kernel->setting->get('user','todo.email.standardtext');
18 18
 
19 19
         $data = array(
20 20
             'value' => $value
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
     function postForm()
28 28
     {
29
-    	$kernel->setting->set('intranet','todo.publiclist', $_POST['publiclist']);
30
-    	$kernel->setting->set('user','todo.email.standardtext', $_POST['emailstandardtext']);
31
-    	return new k_SeeOther($this->url('../'));
29
+        $kernel->setting->set('intranet','todo.publiclist', $_POST['publiclist']);
30
+        $kernel->setting->set('user','todo.email.standardtext', $_POST['emailstandardtext']);
31
+        return new k_SeeOther($this->url('../'));
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,21 +13,21 @@
 block discarded – undo
13 13
         $module = $this->getKernel()->module('todo');
14 14
         $translation = $this->getKernel()->getTranslation('todo');
15 15
 
16
-    	$value['publiclist'] = 	$kernel->setting->get('intranet','todo.publiclist');
17
-    	$value['emailstandardtext'] = 	$kernel->setting->get('user','todo.email.standardtext');
16
+    	$value['publiclist'] = $kernel->setting->get('intranet', 'todo.publiclist');
17
+    	$value['emailstandardtext'] = $kernel->setting->get('user', 'todo.email.standardtext');
18 18
 
19 19
         $data = array(
20 20
             'value' => $value
21 21
         );
22 22
 
23
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/setting');
23
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/setting');
24 24
         return $tpl->render($this, $data);
25 25
     }
26 26
 
27 27
     function postForm()
28 28
     {
29
-    	$kernel->setting->set('intranet','todo.publiclist', $_POST['publiclist']);
30
-    	$kernel->setting->set('user','todo.email.standardtext', $_POST['emailstandardtext']);
29
+    	$kernel->setting->set('intranet', 'todo.publiclist', $_POST['publiclist']);
30
+    	$kernel->setting->set('user', 'todo.email.standardtext', $_POST['emailstandardtext']);
31 31
     	return new k_SeeOther($this->url('../'));
32 32
     }
33 33
 }
34 34
\ No newline at end of file
Please login to merge, or discard this patch.