Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/modules/todo/Controller/Todo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         $this->document()->addScript('todo/todo.js');
50 50
 
51
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/todo');
51
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/todo');
52 52
         return $tpl->render($this, $data);
53 53
     }
54 54
 
Please login to merge, or discard this patch.
src/Intraface/modules/todo/Controller/Edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
             'kernel' => $this->getKernel()
28 28
         );
29 29
 
30
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/edit');
30
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/edit');
31 31
         return $tpl->render($this, $data);
32 32
     }
33 33
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                     $item_id = 0;
52 52
                 }
53 53
             }
54
-            return new k_SeeOther($this->url('../' . $todo->get('id')));
54
+            return new k_SeeOther($this->url('../'.$todo->get('id')));
55 55
         }
56 56
         return $this->render();
57 57
     }
Please login to merge, or discard this patch.
src/Intraface/modules/todo/Controller/Email.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     'subject' => $_POST['subject'],
61 61
                     'contact_id' => $contact->get('id'),
62 62
                     'type_id' => 6, // type_id 6 er todo
63
-                	'belong_to' => $todo->get('id')
63
+                    'belong_to' => $todo->get('id')
64 64
                 );
65 65
 
66 66
                 if ($id = $email->save($var)) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
         $todo = new TodoList($this->getKernel(), $this->context->name());
19 19
         $value['id'] = $todo->get('id');
20 20
         $value['subject'] = 'Todoliste';
21
-        $value['body'] = $this->getKernel()->setting->get('user','todo.email.standardtext') . "\n\nMed venlig hilsen\n".$this->getKernel()->user->getAddress()->get('name') . "\n" . $this->getKernel()->intranet->get('name');
21
+        $value['body'] = $this->getKernel()->setting->get('user', 'todo.email.standardtext')."\n\nMed venlig hilsen\n".$this->getKernel()->user->getAddress()->get('name')."\n".$this->getKernel()->intranet->get('name');
22 22
 
23 23
         $contacts = $todo->getContacts();
24 24
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             'value' => $value
32 32
         );
33 33
 
34
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/email');
34
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/email');
35 35
         return $tpl->render($this, $data);
36 36
     }
37 37
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
                 $email = new Email($this->getKernel());
58 58
                 $var = array(
59
-                    'body' => $_POST['body'] . "\n\n" . $contact->getLoginUrl(),
59
+                    'body' => $_POST['body']."\n\n".$contact->getLoginUrl(),
60 60
                     'subject' => $_POST['subject'],
61 61
                     'contact_id' => $contact->get('id'),
62 62
                     'type_id' => 6, // type_id 6 er todo
Please login to merge, or discard this patch.
src/Intraface/modules/payment/Controller/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 
48 48
         $data = array('payments' => $payments, 'gateway' => $gateway);
49 49
 
50
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
50
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/index');
51 51
         return $smarty->render($this, $data);
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/Intraface/modules/email/Controller/Index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
             'emails' => $emails->getAll(),
60 60
             'gateway' => $emails,
61 61
             'contact_module' => $contact_module,
62
-        	'email_shared' => $email_shared
62
+            'email_shared' => $email_shared
63 63
         );
64 64
 
65 65
         $tpl = $this->template->create(dirname(__FILE__) . '/templates/index');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         	'email_shared' => $email_shared
63 63
         );
64 64
 
65
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/index');
65
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/index');
66 66
         return $tpl->render($this, $data);
67 67
     }
68 68
 
Please login to merge, or discard this patch.
src/Intraface/modules/email/Controller/Email.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@  discard block
 block discarded – undo
19 19
 
20 20
         $tpl = $this->template->create(dirname(__FILE__) . '/templates/show');
21 21
         $data = array(
22
-        	'contact' => $contact,
23
-        	'value' => $value,
22
+            'contact' => $contact,
23
+            'value' => $value,
24 24
             'email' => $email,
25 25
             'kernel' => $this->getKernel(),
26 26
             'redirect' => $redirect
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $text = $this->getEmail()->getContact()->address->get('name') .
39 39
             "\n" . $this->getEmail()->getContact()->address->get('address') .
40 40
             "\n" . $this->getEmail()->getContact()->address->get('postcode') .
41
-        	"  " . $this->getEmail()->getContact()->address->get('city') . "\n\n\n";
41
+            "  " . $this->getEmail()->getContact()->address->get('city') . "\n\n\n";
42 42
 
43 43
         $pdf->ezText($text, $size);
44 44
 
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
 
108 108
         $tpl = $this->template->create(dirname(__FILE__) . '/templates/edit');
109 109
         $data = array(
110
-        	'contact' => $contact,
111
-        	'value' => $value,
110
+            'contact' => $contact,
111
+            'value' => $value,
112 112
             'email' => $email,
113 113
             'kernel' => $this->getKernel(),
114 114
             'redirect' => $redirect
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $value = $email->get();
18 18
         $contact = $email->getContact();
19 19
 
20
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/show');
20
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/show');
21 21
         $data = array(
22 22
         	'contact' => $contact,
23 23
         	'value' => $value,
@@ -35,18 +35,18 @@  discard block
 block discarded – undo
35 35
         $size = 12; // font size
36 36
 
37 37
         // udskriv adressehoved
38
-        $text = $this->getEmail()->getContact()->address->get('name') .
39
-            "\n" . $this->getEmail()->getContact()->address->get('address') .
40
-            "\n" . $this->getEmail()->getContact()->address->get('postcode') .
41
-        	"  " . $this->getEmail()->getContact()->address->get('city') . "\n\n\n";
38
+        $text = $this->getEmail()->getContact()->address->get('name').
39
+            "\n".$this->getEmail()->getContact()->address->get('address').
40
+            "\n".$this->getEmail()->getContact()->address->get('postcode').
41
+        	"  ".$this->getEmail()->getContact()->address->get('city')."\n\n\n";
42 42
 
43 43
         $pdf->ezText($text, $size);
44 44
 
45 45
         // uskriv subject
46
-        $pdf->ezText($this->getEmail()->get('subject') . "\n\n", $size);
46
+        $pdf->ezText($this->getEmail()->get('subject')."\n\n", $size);
47 47
 
48 48
         // udskriv body
49
-        $pdf->ezText($this->getEmail()->get('body') . "\n", $size);
49
+        $pdf->ezText($this->getEmail()->get('body')."\n", $size);
50 50
 
51 51
         // udskriv greeting
52 52
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $contact = $email->getContact();
106 106
         $redirect = Intraface_Redirect::factory($this->getKernel(), 'receive');
107 107
 
108
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/edit');
108
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/edit');
109 109
         $data = array(
110 110
         	'contact' => $contact,
111 111
         	'value' => $value,
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/Controller/Intranet/Index.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -50,16 +50,16 @@  discard block
 block discarded – undo
50 50
         $translation = $this->getKernel()->getTranslation('intranetmaintenance');
51 51
         $intranet = new IntranetMaintenance();
52 52
 
53
-    	$value = $_POST;
54
-    	$address_value = $_POST;
55
-    	$address_value["name"] = $_POST["address_name"];
56
-
57
-    	if ($intranet->save($_POST) && $intranet->setMaintainedByUser($_POST['maintained_by_user_id'], $this->getKernel()->intranet->get('id'))) {
58
-    		if ($intranet->address->save($address_value)) {
59
-    			return new k_SeeOther($this->url($intranet->getId()));
60
-    		}
61
-    	}
62
-    	return $this->render();
53
+        $value = $_POST;
54
+        $address_value = $_POST;
55
+        $address_value["name"] = $_POST["address_name"];
56
+
57
+        if ($intranet->save($_POST) && $intranet->setMaintainedByUser($_POST['maintained_by_user_id'], $this->getKernel()->intranet->get('id'))) {
58
+            if ($intranet->address->save($address_value)) {
59
+                return new k_SeeOther($this->url($intranet->getId()));
60
+            }
61
+        }
62
+        return $this->render();
63 63
     }
64 64
 
65 65
     function getIntranets()
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
     function getKernel()
91 91
     {
92
-    	return $this->context->getKernel();
92
+        return $this->context->getKernel();
93 93
     }
94 94
 
95 95
     function getIntranet()
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
 
100 100
     function getValues()
101 101
     {
102
-   		$intranet = new IntranetMaintenance();
103
-   		$value = array();
104
-   		$address_value = array();
102
+            $intranet = new IntranetMaintenance();
103
+            $value = array();
104
+            $address_value = array();
105 105
 
106 106
         $array = array_merge($value, $address_value);
107 107
         return $array;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             'intranet_maintenance' => $this->getIntranetmaintenance()
30 30
         );
31 31
 
32
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/index');
32
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/index');
33 33
         return $smarty->render($this, $data);
34 34
     }
35 35
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $modul = $this->getKernel()->module("intranetmaintenance");
41 41
         $translation = $this->getKernel()->getTranslation('intranetmaintenance');
42 42
 
43
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/edit');
43
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/edit');
44 44
         return $smarty->render($this);
45 45
     }
46 46
 
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/Controller/Intranet/Key.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -24,29 +24,29 @@  discard block
 block discarded – undo
24 24
         $translation = $this->getKernel()->getTranslation('intranetmaintenance');
25 25
         $intranet = new IntranetMaintenance(intval($_POST["id"]));
26 26
 
27
-    	$value = $_POST;
28
-    	$address_value = $_POST;
29
-    	$address_value["name"] = $_POST["address_name"];
27
+        $value = $_POST;
28
+        $address_value = $_POST;
29
+        $address_value["name"] = $_POST["address_name"];
30 30
 
31
-    	if ($intranet->save($_POST) && $intranet->setMaintainedByUser($_POST['maintained_by_user_id'], $this->getKernel()->intranet->get('id'))) {
32
-    		if ($intranet->address->save($address_value)) {
33
-    			return new k_SeeOther($this->url('../'));
34
-    		}
35
-    	}
31
+        if ($intranet->save($_POST) && $intranet->setMaintainedByUser($_POST['maintained_by_user_id'], $this->getKernel()->intranet->get('id'))) {
32
+            if ($intranet->address->save($address_value)) {
33
+                return new k_SeeOther($this->url('../'));
34
+            }
35
+        }
36 36
 
37
-    	return $this->render();
37
+        return $this->render();
38 38
     }
39 39
 
40 40
     function getValues()
41 41
     {
42 42
         if (is_numeric($this->context->name())) {
43
-    		$intranet = new IntranetMaintenance((int)$this->context->name());
44
-    		$value = $intranet->get();
45
-    		$address_value = $intranet->address->get();
43
+            $intranet = new IntranetMaintenance((int)$this->context->name());
44
+            $value = $intranet->get();
45
+            $address_value = $intranet->address->get();
46 46
         } else {
47
-    		$intranet = new IntranetMaintenance();
48
-    		$value = array();
49
-    		$address_value = array();
47
+            $intranet = new IntranetMaintenance();
48
+            $value = array();
49
+            $address_value = array();
50 50
         }
51 51
 
52 52
         $array = array_merge($value, $address_value);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     function getKernel()
57 57
     {
58
-    	return $this->context->getKernel();
58
+        return $this->context->getKernel();
59 59
     }
60 60
 
61 61
     function getIntranet()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         $modul = $this->getKernel()->module("intranetmaintenance");
15 15
         $translation = $this->getKernel()->getTranslation('intranetmaintenance');
16 16
 
17
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/edit');
17
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/edit');
18 18
         return $smarty->render($this);
19 19
     }
20 20
 
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/Controller/Index.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
     function getKernel()
30 30
     {
31
-    	return $this->context->getKernel();
31
+        return $this->context->getKernel();
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     function renderHtml()
24 24
     {
25
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
25
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/index');
26 26
         return $smarty->render($this);
27 27
     }
28 28
 
Please login to merge, or discard this patch.