Completed
Branch master (6ed6e7)
by Lars
07:57
created
src/Intraface/modules/stock/Controller/Product.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
     function renderHtml()
16 16
     {
17
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/product');
17
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/product');
18 18
         return $smarty->render($this);
19 19
     }
20 20
 
Please login to merge, or discard this patch.
src/Intraface/modules/stock/Controller/Variations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
     function renderHtml()
15 15
     {
16
-        $this->document->setTitle('Set stock for variations for product ' . $this->getProduct()->get('name'));
16
+        $this->document->setTitle('Set stock for variations for product '.$this->getProduct()->get('name'));
17 17
 
18
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/variations');
18
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/variations');
19 19
         return $smarty->render($this, array('variations' => $this->getProduct()->getVariations(), 'product' => $this->context->getProduct()));
20 20
     }
21 21
 
Please login to merge, or discard this patch.
src/Intraface/modules/order/include_front.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         );
18 18
     } else {
19 19
         $db = new DB_Sql;
20
-        $db->query("SELECT * FROM debtor WHERE type = 2 AND status = 0 AND active = 1 AND intranet_id = " . $kernel->intranet->get('id'));
20
+        $db->query("SELECT * FROM debtor WHERE type = 2 AND status = 0 AND active = 1 AND intranet_id = ".$kernel->intranet->get('id'));
21 21
         $orders = $db->numRows();
22 22
         if ($orders > 0) {
23 23
             $_attention_needed[] = array(
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/Controller/Show.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         $data = array(
101
-        	'procurement' => $this->getProcurement(),
102
-        	'kernel' => $this->getKernel(),
103
-        	'append_file' => $append_file,
104
-        	'filehandler' => $filehandler);
101
+            'procurement' => $this->getProcurement(),
102
+            'kernel' => $this->getKernel(),
103
+            'append_file' => $append_file,
104
+            'filehandler' => $filehandler);
105 105
         $tpl = $this->template->create(dirname(__FILE__) . '/templates/show');
106 106
         return $tpl->render($this, $data);
107 107
     }
@@ -113,9 +113,9 @@  discard block
 block discarded – undo
113 113
         $this->document->addScript('procurement/edit.js');
114 114
 
115 115
         $data = array(
116
-        	'procurement' => $this->getProcurement(),
117
-        	'kernel' => $this->getKernel(),
118
-        	'title' => $this->t("Edit procurement"),
116
+            'procurement' => $this->getProcurement(),
117
+            'kernel' => $this->getKernel(),
118
+            'title' => $this->t("Edit procurement"),
119 119
             'gateway' => new Intraface_modules_procurement_ProcurementGateway($this->getKernel()),
120 120
             'values' => $this->getValues());
121 121
         $tpl = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit');
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
     {
246 246
         $this->getProcurement()->loadItem();
247 247
         $this->getProcurement()->item->save(array(
248
-        	'product_id' => $product['product_id'],
249
-        	'product_variation_id' => $product['product_variation_id'],
250
-        	'quantity' => intval($quantity)));
248
+            'product_id' => $product['product_id'],
249
+            'product_variation_id' => $product['product_variation_id'],
250
+            'quantity' => intval($quantity)));
251 251
     }
252 252
 }
253 253
\ 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
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 $contact_module = $this->getKernel()->useModule('contact');
56 56
 
57 57
                 $redirect = Intraface_Redirect::factory($this->getKernel(), 'go');
58
-                $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('choosecontact'), NET_SCHEME . NET_HOST . $this->url());
58
+                $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('choosecontact'), NET_SCHEME.NET_HOST.$this->url());
59 59
                 $redirect->askParameter('contact_id');
60 60
                 $redirect->setIdentifier('contact');
61 61
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         	'kernel' => $this->getKernel(),
103 103
         	'append_file' => $append_file,
104 104
         	'filehandler' => $filehandler);
105
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/show');
105
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/show');
106 106
         return $tpl->render($this, $data);
107 107
     }
108 108
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         	'title' => $this->t("Edit procurement"),
119 119
             'gateway' => new Intraface_modules_procurement_ProcurementGateway($this->getKernel()),
120 120
             'values' => $this->getValues());
121
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit');
121
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/procurement-edit');
122 122
         return $tpl->render($this, $data);
123 123
     }
124 124
 
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/Controller/Index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             'procurements' => $procurements
68 68
         );
69 69
 
70
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/index');
70
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/index');
71 71
         return $smarty->render($this, $data);
72 72
     }
73 73
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             'gateway' => $this->getProcurementGateway()
83 83
         );
84 84
 
85
-        $smarty = $this->template->create(dirname(__FILE__) . '/templates/procurement-edit');
85
+        $smarty = $this->template->create(dirname(__FILE__).'/templates/procurement-edit');
86 86
         return $smarty->render($this, $data);
87 87
     }
88 88
 
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/Controller/Item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         if (isset($_GET['change_product'])) {
68 68
             $redirect = Intraface_Redirect::factory($this->getKernel(), 'go');
69
-            $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('selectproduct'), NET_SCHEME . NET_HOST . $this->url());
69
+            $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('selectproduct'), NET_SCHEME.NET_HOST.$this->url());
70 70
             $redirect->askParameter('product_id');
71 71
             return new k_SeeOther($url);
72 72
         }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
         $data = array('procurement' => $procurement, 'values' => $values);
83 83
 
84
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/item-edit');
84
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/item-edit');
85 85
         return $tpl->render($this, $data);
86 86
 
87 87
     }
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/Controller/PurchasePrice.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $procurement = $this->context->getProcurement();
17 17
 
18 18
         $data = array(
19
-    		'items' => $procurement->getItems(),
19
+            'items' => $procurement->getItems(),
20 20
             'procurement' => $procurement
21 21
         );
22 22
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             'procurement' => $procurement
21 21
         );
22 22
 
23
-        $tpl = $this->template->create(dirname(__FILE__) . '/templates/purchaseprice');
23
+        $tpl = $this->template->create(dirname(__FILE__).'/templates/purchaseprice');
24 24
         return $tpl->render($this, $data);
25 25
     }
26 26
 
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Visitor/Text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
                 $currency_iso_code = 'DKK';
14 14
             }
15 15
 
16
-            $table->addRow(array(round($item["quantity"]), substr($item["name"], 0, 40), $currency_iso_code.' ' . $amount));
16
+            $table->addRow(array(round($item["quantity"]), substr($item["name"], 0, 40), $currency_iso_code.' '.$amount));
17 17
         }
18 18
         return $table->getTable();
19 19
     }
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Visitor/OIOXML.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
     private function start()
41 41
     {
42
-        $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>' . "\n";
43
-        $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">' . "\n";
42
+        $this->output .= '<?xml version="1.0" encoding="iso-8859-1"?>'."\n";
43
+        $this->output .= '<Invoice xmlns="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/" xmlns:com="http://rep.oio.dk/ubl/xml/schemas/0p71/common/" xmlns:main="http://rep.oio.dk/ubl/xml/schemas/0p71/maindoc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rep.oio.dk/ubl/xml/schemas/0p71/pie/ http://rep.oio.dk/ubl/xml/schemas/0p71/pie/pieStrict.xsd">'."\n";
44 44
     }
45 45
 
46 46
     private function end()
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public function output($debtor)
52 52
     {
53 53
         $this->start();
54
-        $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>' . "\n";
54
+        $this->output .= '<com:ID>'.$debtor->get('id').'</com:ID>'."\n";
55 55
         $this->output .= '<com:IssueDate>'.$debtor->get('date_due').'</com:IssueDate>';
56 56
         $this->output .= '<com:TypeCode>PIE</com:TypeCode>';
57 57
         $this->output .= '<main:InvoiceCurrencyCode>DKK</main:InvoiceCurrencyCode>';
Please login to merge, or discard this patch.