Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/filemanager/ImageHandler.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2
- /**
3
-  * Image handler. Klarer h�ndtering af billeder.
4
-  *
5
-  * @package Intraface
6
-  * @author: Sune
7
-  * @version: 1.0
8
-  *
9
-  */
2
+    /**
3
+     * Image handler. Klarer h�ndtering af billeder.
4
+     *
5
+     * @package Intraface
6
+     * @author: Sune
7
+     * @version: 1.0
8
+     *
9
+     */
10 10
 
11 11
 class ImageHandler extends Intraface_Standard
12 12
 {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/FileHandlerHTML.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -86,19 +86,19 @@
 block discarded – undo
86 86
 
87 87
 
88 88
     /**
89
-    * Denne funktion skal printe et upload field.
90
-    *
91
-    * Det skal p� en eller anden m�de v�re muligt at s�tte f�lgende parameter:
92
-    * @param checkbox_name: navnet p� den checkboks, som inds�ttes, n�r der er uploadet et billede
93
-    * @param upload_field_name: navnet p� type="file" input-felttet.
94
-    * @param submit_name: navnet p� submit-knappen, som f�rer til "V�lg fra filarkiv"
95
-    * @param options: array:
96
-    *       image_attr (mulighed for at s�tte attributer p� img-tag);
97
-    *           field_description: (det som st�r foran upload feltet, standard 'Fil')
98
-    *           image_size: (st�rrelsen p� billedet. Standard original
99
-    *           type: full/only_upload
100
-    *           include_submit_button_name: hvis sat bliver der indsat en "Upload" knap efter fil-felt, men strengen som navn
101
-    */
89
+     * Denne funktion skal printe et upload field.
90
+     *
91
+     * Det skal p� en eller anden m�de v�re muligt at s�tte f�lgende parameter:
92
+     * @param checkbox_name: navnet p� den checkboks, som inds�ttes, n�r der er uploadet et billede
93
+     * @param upload_field_name: navnet p� type="file" input-felttet.
94
+     * @param submit_name: navnet p� submit-knappen, som f�rer til "V�lg fra filarkiv"
95
+     * @param options: array:
96
+     *       image_attr (mulighed for at s�tte attributer p� img-tag);
97
+     *           field_description: (det som st�r foran upload feltet, standard 'Fil')
98
+     *           image_size: (st�rrelsen p� billedet. Standard original
99
+     *           type: full/only_upload
100
+     *           include_submit_button_name: hvis sat bliver der indsat en "Upload" knap efter fil-felt, men strengen som navn
101
+     */
102 102
 
103 103
     function printFormUploadTag($checkbox_name, $upload_field_name, $submit_name, $options = array())
104 104
     {
Please login to merge, or discard this patch.
src/Intraface/modules/procurement/ProcurementItem.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             $product = new Product($this->procurement->kernel, $input["product_id"], $input['product_detail_id']);
235 235
 
236 236
             if (!is_object($product) || $product->get('id') == 0) {
237
-                 $this->error->set("Ugyldigt produkt");
237
+                    $this->error->set("Ugyldigt produkt");
238 238
             } else {
239 239
                 $product_detail_id = $product->get("detail_id");
240 240
             }
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
         $product = new Product($this->procurement->kernel, $product_id);
348 348
 
349 349
         if (!is_object($product) || $product->get('id') == 0) {
350
-             throw new Excetion('Invalid product id');
350
+                throw new Excetion('Invalid product id');
351 351
         } else {
352 352
             $product_detail_id = $product->get("detail_id");
353 353
         }
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/ActionStore.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,10 +192,10 @@
 block discarded – undo
192 192
     }
193 193
     
194 194
 /**
195
-     * Returns the store identifier which is generated on store and restore.
196
-     *
197
-     * @return string action store identifier
198
-     */
195
+ * Returns the store identifier which is generated on store and restore.
196
+ *
197
+ * @return string action store identifier
198
+ */
199 199
     public function getIdentifier()
200 200
     {
201 201
         return $this->identifier;
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/ModulePackage.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @param int id on a ModulePackage
38 38
      *
39 39
      * @return void
40
-      */
40
+     */
41 41
     public function __construct($id = 0)
42 42
     {
43 43
         $this->db = MDB2::singleton(DB_DSN);
@@ -204,18 +204,18 @@  discard block
 block discarded – undo
204 204
         $i = 0;
205 205
         $db = $this->dbquery->getRecordset('module_package.id, module_package_plan.plan, module_package_plan.id AS plan_id, module_package.product_id, module_package_group.group_name, module_package_group.id AS group_id');
206 206
         while ($db->nextRecord()) {
207
-             $list[$i]['id'] = $db->f('id');
208
-             $list[$i]['plan'] = $db->f('plan');
209
-             $list[$i]['plan_id'] = $db->f('plan_id');
210
-             $list[$i]['group'] = $db->f('group_name');
211
-             $list[$i]['group_id'] = $db->f('group_id');
212
-             $list[$i]['product_id'] = $db->f('product_id');
207
+                $list[$i]['id'] = $db->f('id');
208
+                $list[$i]['plan'] = $db->f('plan');
209
+                $list[$i]['plan_id'] = $db->f('plan_id');
210
+                $list[$i]['group'] = $db->f('group_name');
211
+                $list[$i]['group_id'] = $db->f('group_id');
212
+                $list[$i]['product_id'] = $db->f('product_id');
213 213
             if ($db->f('product_id') != 0) {
214 214
                 $product_ids[] = $db->f('product_id');
215 215
             }
216
-             $list[$i]['modules'] = $this->getModules($db->f('id'));
217
-             $list[$i]['product'] = array();
218
-             $i++;
216
+                $list[$i]['modules'] = $this->getModules($db->f('id'));
217
+                $list[$i]['product'] = array();
218
+                $i++;
219 219
         }
220 220
 
221 221
         // get all products in one request and add them to the array
Please login to merge, or discard this patch.
src/Intraface/modules/contact/ContactReminder.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             throw new Exception('Could not save information in ContactReminder->update' . $result->getUserInfo());
226 226
             return false;
227 227
         }
228
-         return $this->id;
228
+            return $this->id;
229 229
     }
230 230
 
231 231
     /**
@@ -245,8 +245,8 @@  discard block
 block discarded – undo
245 245
             throw new Exception('Could not postphone reminder' . $result->getUserInfo());
246 246
             return false;
247 247
         }
248
-         $this->load();
249
-         return true;
248
+            $this->load();
249
+            return true;
250 250
     }
251 251
 
252 252
     /**
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         if ($result->numRows() == 0) {
279 279
             return array();
280 280
         }
281
-         return $result->fetchAll(MDB2_FETCHMODE_ASSOC);
281
+            return $result->fetchAll(MDB2_FETCHMODE_ASSOC);
282 282
 
283 283
     }
284 284
 
@@ -297,8 +297,8 @@  discard block
 block discarded – undo
297 297
             throw new Exception('Could not postphone reminder' . $result->getUserInfo());
298 298
             return false;
299 299
         }
300
-         $this->load();
301
-         return true;
300
+            $this->load();
301
+            return true;
302 302
 
303 303
     }
304 304
 
Please login to merge, or discard this patch.
src/Intraface/modules/contact/Contact.php 1 patch
Indentation   -3 removed lines patch added patch discarded remove patch
@@ -105,9 +105,6 @@
 block discarded – undo
105 105
 
106 106
  function getContacts()
107 107
  }
108
-
109
-
110
-
111 108
  *
112 109
  * @package Intraface_Contact
113 110
  * @author  Lars Olesen <[email protected]>
Please login to merge, or discard this patch.
src/Intraface/modules/contact/MainContact.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         $this->addPreloadFile('Contact.php');
22 22
         $this->addPreloadFile('ContactMessage.php'); // kan m�ske slettes
23 23
         $this->addPreloadFile('ContactPerson.php');
24
-         $this->addPreloadFile('ContactReminder.php');
24
+            $this->addPreloadFile('ContactReminder.php');
25 25
 
26 26
         $this->addRequiredShared('email');
27 27
         $this->addRequiredShared('keyword');
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         // settings
42 42
         // paymentconditions in days
43
-         $this->includeSettingFile('settings.php');
43
+            $this->includeSettingFile('settings.php');
44 44
 
45 45
         $this->addSetting('paymentcondition', array(0, 8, 14, 30));
46 46
         $this->addSetting(
@@ -51,29 +51,29 @@  discard block
 block discarded – undo
51 51
             )
52 52
         );
53 53
 
54
-         $this->addSetting('contact_login_url', array(
54
+            $this->addSetting('contact_login_url', array(
55 55
             0 => 'kundelogin.dk',
56 56
             1 => 'medlemslogin.dk'
57
-         ));
57
+            ));
58 58
 
59
-         $this->addSetting(
60
-             'preferred_invoice',
61
-             array(
59
+            $this->addSetting(
60
+                'preferred_invoice',
61
+                array(
62 62
                 1 => 'pdf',
63 63
                 2 => 'email',
64 64
                 3 => 'electronic'
65
-             )
66
-         );
65
+                )
66
+            );
67 67
 
68
-         $this->addSetting(
69
-             'reminder_status',
70
-             array(
68
+            $this->addSetting(
69
+                'reminder_status',
70
+                array(
71 71
                 0 => '_Invalid type_',
72 72
                 1 => 'created',
73 73
                 2 => 'seen',
74 74
                 3 => 'cancelled'
75
-             )
76
-         );
75
+                )
76
+            );
77 77
 
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
src/Intraface/modules/shop/BasketEvaluation.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -147,15 +147,15 @@
 block discarded – undo
147 147
         }
148 148
 
149 149
         $sql = "running_index = ".$this->db->quote($input['running_index'], 'integer').", " .
150
-                 "evaluate_target_key = ".$this->db->quote($input['evaluate_target_key'], 'integer').", " .
151
-                 "evaluate_method_key = ".$this->db->quote($input['evaluate_method_key'], 'integer').", " .
152
-                 "evaluate_value = ".$this->db->quote($input['evaluate_value'], 'text').", " .
153
-                 "evaluate_value_case_sensitive = ".$this->db->quote($input['evaluate_value_case_sensitive'], 'integer').", " .
154
-                 "go_to_index_after = ".$this->db->quote($input['go_to_index_after'], 'integer').", " .
155
-                 "action_action_key = ".$this->db->quote($input['action_action_key'], 'integer').", " .
156
-                 "action_value = ".$this->db->quote($input['action_value'], 'text').", " .
157
-                 "action_quantity = ".$this->db->quote($input['action_quantity'], 'integer').", " .
158
-                 "action_unit_key = ".$this->db->quote($input['action_unit_key'], 'integer');
150
+                    "evaluate_target_key = ".$this->db->quote($input['evaluate_target_key'], 'integer').", " .
151
+                    "evaluate_method_key = ".$this->db->quote($input['evaluate_method_key'], 'integer').", " .
152
+                    "evaluate_value = ".$this->db->quote($input['evaluate_value'], 'text').", " .
153
+                    "evaluate_value_case_sensitive = ".$this->db->quote($input['evaluate_value_case_sensitive'], 'integer').", " .
154
+                    "go_to_index_after = ".$this->db->quote($input['go_to_index_after'], 'integer').", " .
155
+                    "action_action_key = ".$this->db->quote($input['action_action_key'], 'integer').", " .
156
+                    "action_value = ".$this->db->quote($input['action_value'], 'text').", " .
157
+                    "action_quantity = ".$this->db->quote($input['action_quantity'], 'integer').", " .
158
+                    "action_unit_key = ".$this->db->quote($input['action_unit_key'], 'integer');
159 159
 
160 160
         if ($this->id != 0) {
161 161
             $result = $this->db->exec("UPDATE webshop_basket_evaluation SET ".$sql." WHERE intranet_id = ".$this->db->quote($this->intranet->getId(), 'integer')." AND id = ".$this->db->quote($this->id, 'integer')  . " AND shop_id = ".$this->db->quote($this->shop->getId(), 'integer'));
Please login to merge, or discard this patch.