Passed
Push — master ( e4006a...0c4633 )
by Lars
21:40 queued 06:51
created
src/Intraface/modules/newsletter/Controller/Log.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     function renderHtml()
12 12
     {
13
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/log');
13
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/log');
14 14
         return $smarty->render($this);
15 15
     }
16 16
 
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/Controller/List.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $letter = new Newsletter($list);
29 29
         $letters = $letter->getList();
30 30
 
31
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/list');
31
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/list');
32 32
         return $smarty->render($this);
33 33
     }
34 34
     
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
     function renderHtmlEdit()
50 50
     {
51
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/list-edit');
51
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/list-edit');
52 52
         return $smarty->render($this);
53 53
     }
54 54
 
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/Controller/Index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
         if ($this->query('contact_id')) {
21 21
             $gateway = new Intraface_modules_newsletter_ListGateway($this->getKernel());
22 22
             $lists = $gateway->findByContactId($this->query('contact_id'));
23
-            $tpl = $this->template->create(dirname(__FILE__) . '/templates/contact-lists');
23
+            $tpl = $this->template->create(dirname(__FILE__).'/templates/contact-lists');
24 24
             return $tpl->render($this, array('lists' => $lists));
25 25
         }
26 26
 
Please login to merge, or discard this patch.
src/Intraface/modules/newsletter/Controller/Letters.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $module = $this->getKernel()->module("newsletter");
26 26
 
27
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/letters');
27
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/letters');
28 28
         return $smarty->render($this);
29 29
     }
30 30
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     {
33 33
         $module = $this->getKernel()->module("newsletter");
34 34
 
35
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/letter-edit');
35
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/letter-edit');
36 36
         return $smarty->render($this);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/YearGateway.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     function findById($id, $load_active = true)
30 30
     {
31
-        require_once dirname(__FILE__) . '/Year.php';
31
+        require_once dirname(__FILE__).'/Year.php';
32 32
     	return new Year($this->kernel, $id, $load_active);
33 33
     }
34 34
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         $sql = "SELECT id FROM accounting_voucher
64 64
             WHERE intranet_id = ".$this->kernel->intranet->get('id')."
65
-            AND id = " . (int)$voucher_id . "
65
+            AND id = " . (int)$voucher_id."
66 66
             LIMIT 1";
67 67
 
68 68
         $db = new DB_Sql;
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@
 block discarded – undo
58 58
         return $account_years;
59 59
     }
60 60
 
61
+    /**
62
+     * @param string $voucher_id
63
+     */
61 64
     function findByVoucherId($voucher_id)
62 65
     {
63 66
         $sql = "SELECT id FROM accounting_voucher
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/Year/End.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 	function renderHtml()
12 12
 	{
13
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/end');
13
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/end');
14 14
         return $smarty->render($this);
15 15
 	}
16 16
 
@@ -29,21 +29,21 @@  discard block
 block discarded – undo
29 29
         $workbook->setVersion(8);
30 30
 
31 31
         // sending HTTP headers
32
-        $workbook->send($kernel->intranet->get('name') . ' - konti ' . $year->get('label') . '.xls');
32
+        $workbook->send($kernel->intranet->get('name').' - konti '.$year->get('label').'.xls');
33 33
 
34 34
         // Creating a worksheet
35
-        $worksheet =& $workbook->addWorksheet('Konti ' . $year->get('label'));
35
+        $worksheet = & $workbook->addWorksheet('Konti '.$year->get('label'));
36 36
         $worksheet->setInputEncoding('UTF-8');
37 37
 
38
-        $format_bold =& $workbook->addFormat();
38
+        $format_bold = & $workbook->addFormat();
39 39
         $format_bold->setBold();
40 40
         $format_bold->setSize(8);
41 41
 
42
-        $format_italic =& $workbook->addFormat();
42
+        $format_italic = & $workbook->addFormat();
43 43
         $format_italic->setItalic();
44 44
         $format_italic->setSize(8);
45 45
 
46
-        $format =& $workbook->addFormat();
46
+        $format = & $workbook->addFormat();
47 47
         $format->setSize(8);
48 48
         $i = 0;
49 49
         $worksheet->write($i, 0, $kernel->intranet->get('name'), $format_bold);
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/Year/Show.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     function renderHtml()
47 47
     {
48
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/show');
48
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/show');
49 49
         return $smarty->render($this);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/Year/Index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     function renderHtml()
21 21
     {
22
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/index');
22
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/index');
23 23
         return $smarty->render($this);
24 24
     }
25 25
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     function renderHtmlCreate()
49 49
     {
50
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit');
50
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit');
51 51
         return $smarty->render($this);
52 52
     }
53 53
 
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 
65 65
     function getValues()
66 66
     {
67
-        $values['from_date_dk'] = '01-01-' . date('Y');
68
-        $values['to_date_dk'] = '31-12-' . date('Y');
67
+        $values['from_date_dk'] = '01-01-'.date('Y');
68
+        $values['to_date_dk'] = '31-12-'.date('Y');
69 69
         return $values;
70 70
     }
71 71
 
Please login to merge, or discard this patch.
src/Intraface/modules/accounting/Controller/Year/Edit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
     function renderHtml()
12 12
     {
13
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/year/edit');
13
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/year/edit');
14 14
         return $smarty->render($this);
15 15
     }
16 16
 
Please login to merge, or discard this patch.