Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/debtor/DebtorGateway.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * returns the possible debtor types!
22 22
      *
23
-     * @return array types
23
+     * @return string[] types
24 24
      */
25 25
     static function getDebtorTypes()
26 26
     {
@@ -60,8 +60,6 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * Bruges til at lave en menu p� kontakten eller produktet
62 62
      *
63
-     * @param string  $type    contact eller product
64
-     * @param integer $type_id id p� contact eller product.
65 63
      *
66 64
      * @return integer
67 65
      */
@@ -95,6 +93,9 @@  discard block
 block discarded – undo
95 93
         return $db->numRows();
96 94
     }
97 95
 
96
+    /**
97
+     * @param integer $id
98
+     */
98 99
     function findById($id)
99 100
     {
100 101
         if (is_int($id) && $id != 0) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
                 $sql = "SELECT id
71 71
                 FROM debtor
72
-                    WHERE intranet_id = " . $this->kernel->intranet->get("id") . "
72
+                    WHERE intranet_id = " . $this->kernel->intranet->get("id")."
73 73
                         AND contact_id = ".(int)$contact_id."
74 74
               AND type='".$this->type_key."'
75 75
               AND active = 1";
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     function setNewContactId($old_contact_id, $new_contact_id)
83 83
     {
84 84
         $db = new DB_Sql;
85
-        $db->query('UPDATE debtor SET contact_id = ' . $new_contact_id . ' WHERE contact_id = ' . $old_contact_id);
85
+        $db->query('UPDATE debtor SET contact_id = '.$new_contact_id.' WHERE contact_id = '.$old_contact_id);
86 86
         return true;
87 87
     }
88 88
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $db = new DB_Sql;
92 92
         $db->query('SELECT * FROM debtor WHERE date_created >=
93 93
         	DATE_SUB(NOW(),INTERVAL 1 DAY)
94
-        	AND type = ' .$this->type_key . ' AND intranet_id = ' .$this->kernel->intranet->get('id'));
94
+        	AND type = ' .$this->type_key.' AND intranet_id = '.$this->kernel->intranet->get('id'));
95 95
         return $db->numRows();
96 96
     }
97 97
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     public function isFilledIn()
398 398
     {
399 399
         $db = new DB_Sql;
400
-        $db->query("SELECT id FROM debtor WHERE type = " . $this->getTypeKey() . " AND intranet_id = " . $this->kernel->intranet->get('id'));
400
+        $db->query("SELECT id FROM debtor WHERE type = ".$this->getTypeKey()." AND intranet_id = ".$this->kernel->intranet->get('id'));
401 401
         return $db->numRows();
402 402
     }
403 403
 }
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/PaymentMethod.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     /**
14 14
      * Do not change the key for the payment methods
15 15
      *
16
-     * @return array The possible payment types
16
+     * @return string[] The possible payment types
17 17
      */
18 18
     public function getTypes()
19 19
     {
@@ -30,6 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     /**
32 32
      * Returns specific payment method
33
+     * @param string $method
33 34
      */
34 35
     public function getByName($method)
35 36
     {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/FileHandlerHTML.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -79,6 +79,9 @@
 block discarded – undo
79 79
 {
80 80
     private $file_handler;
81 81
 
82
+    /**
83
+     * @param FileHandler $file_handler
84
+     */
82 85
     function __construct($file_handler)
83 86
     {
84 87
         $this->file_handler = $file_handler;
Please login to merge, or discard this 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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         echo '<label for="'.$upload_field_name.'">'.t($options['field_description'], 'filehandler').'</label>';
134 134
         echo '<input name="'.$upload_field_name.'" type="file" id="'.$upload_field_name.'" />';
135 135
         if ($options['include_submit_button_name'] != '') {
136
-            echo ' <input type="submit" name="'.$options['include_submit_button_name'].'" value="'.t('upload', 'filehandler') . '" /> <br />';
136
+            echo ' <input type="submit" name="'.$options['include_submit_button_name'].'" value="'.t('upload', 'filehandler').'" /> <br />';
137 137
         }
138 138
         if ($this->file_handler->kernel->user->hasModuleAccess('filemanager') and $options['filemanager'] === true) {
139 139
             echo ' &nbsp; '.t('or').' &nbsp; <input type="submit" name="'.$submit_name.'" value="'.t('choose from filemanager', 'filehandler').'" />';
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $this->file_handler->createInstance('small');
156 156
 
157 157
             if ($options['div_style'] == '') {
158
-                $options['div_style'] = 'height: '.($this->file_handler->instance->get('height')+10).'px;';
158
+                $options['div_style'] = 'height: '.($this->file_handler->instance->get('height') + 10).'px;';
159 159
             }
160 160
             echo '<div class="show_file" style="'.$options['div_style'].'"><img src="'.$this->file_handler->instance->get('file_uri').'" style="width: '.$this->file_handler->instance->get('width').'px; height: '.$this->file_handler->instance->get('height').'px" /> '.$this->file_handler->get('file_name');
161 161
             if ($delete_link != '') {
Please login to merge, or discard this patch.
src/Intraface/modules/filemanager/InstanceManager.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,7 +225,6 @@  discard block
 block discarded – undo
225 225
      * Checks whether a name is free to use
226 226
      * 
227 227
      * @param string $name 
228
-     * @param integer $id integer which should not be checked
229 228
      * @return boolean true or false
230 229
      */
231 230
     private function isNameFree($name, $type_key = 0) 
@@ -367,7 +366,7 @@  discard block
 block discarded – undo
367 366
     /**
368 367
      * returns the resize types
369 368
      * 
370
-     * @return array resize types
369
+     * @return string[] resize types
371 370
      */
372 371
     public function getResizeTypes() {
373 372
         return array(0 => 'relative', 1 => 'strict'); 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
             return false;
157 157
         }
158 158
         
159
-        $sql = 'name = '.$this->db->quote($input['name'], 'text').', ' .
160
-                'max_width = '.$this->db->quote($input['max_width'], 'integer').', ' .
161
-                'max_height = '.$this->db->quote($input['max_height'], 'integer').', ' .
159
+        $sql = 'name = '.$this->db->quote($input['name'], 'text').', '.
160
+                'max_width = '.$this->db->quote($input['max_width'], 'integer').', '.
161
+                'max_height = '.$this->db->quote($input['max_height'], 'integer').', '.
162 162
                 'resize_type_key = '.$this->db->quote($resize_type_key);
163 163
         
164 164
         if ($this->type_key == 0 || $this->get('origin') == 'standard') {
@@ -169,9 +169,9 @@  discard block
 block discarded – undo
169 169
                 $type_key = $this->type_key;
170 170
             }
171 171
             
172
-            $result = $this->db->exec('INSERT INTO file_handler_instance_type SET ' .
173
-                    'intranet_id = '.$this->db->quote($this->intranet_id, 'integer').', ' .
174
-                    'type_key = '.$this->db->quote($type_key, 'integer').', ' .
172
+            $result = $this->db->exec('INSERT INTO file_handler_instance_type SET '.
173
+                    'intranet_id = '.$this->db->quote($this->intranet_id, 'integer').', '.
174
+                    'type_key = '.$this->db->quote($type_key, 'integer').', '.
175 175
                     'active = 1, '.$sql);
176 176
             if (PEAR::isError($result)) {
177 177
                 throw new Exception('Error in exec: '.$result->getUserInfo());
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
             return $this->type_key;
186 186
         }
187 187
         else {
188
-            $result = $this->db->exec('UPDATE file_handler_instance_type SET '.$sql.' ' .
189
-                    'WHERE intranet_id = '.$this->db->quote($this->intranet_id, 'integer').' ' .
188
+            $result = $this->db->exec('UPDATE file_handler_instance_type SET '.$sql.' '.
189
+                    'WHERE intranet_id = '.$this->db->quote($this->intranet_id, 'integer').' '.
190 190
                             'AND type_key = '.$this->db->quote($this->type_key, 'integer'));
191 191
             if (PEAR::isError($result)) {
192 192
                 throw new Exception('Error in exec: '.$result->getUserInfo());
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
             }
239 239
         }
240 240
         
241
-        $result = $this->db->query('SELECT type_key FROM file_handler_instance_type WHERE ' .
242
-                'intranet_id = '.$this->db->quote($this->intranet_id, 'integer').' AND ' .
243
-                'name = '.$this->db->quote($name, 'text').' AND ' .
244
-                'type_key != '.$this->db->quote((int)$type_key, 'integer').' AND ' .
241
+        $result = $this->db->query('SELECT type_key FROM file_handler_instance_type WHERE '.
242
+                'intranet_id = '.$this->db->quote($this->intranet_id, 'integer').' AND '.
243
+                'name = '.$this->db->quote($name, 'text').' AND '.
244
+                'type_key != '.$this->db->quote((int)$type_key, 'integer').' AND '.
245 245
                 'active = 1');
246 246
         if (PEAR::isError($result)) {
247 247
             throw new Exception('Error in query: '.$result->getUserInfo());
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     private function getNextFreeTypeKey() 
265 265
     {
266 266
         // We do not active = 1, then it is possible to recreate deleted items without messing everything up.
267
-        $result = $this->db->query('SELECT MAX(type_key) AS max_key FROM file_handler_instance_type WHERE ' .
267
+        $result = $this->db->query('SELECT MAX(type_key) AS max_key FROM file_handler_instance_type WHERE '.
268 268
                 'intranet_id = '.$this->db->quote($this->intranet_id, 'integer'));
269 269
         if (PEAR::isError($result)) {
270 270
             throw new Exception('Error in query: '.$result->getUserInfo());
Please login to merge, or discard this patch.
src/Intraface/modules/intranetmaintenance/Controller/Intranet/Show.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -207,6 +207,9 @@
 block discarded – undo
207 207
     	$this->removeDir('/home/intraface/upload/' . $intranet_id . '/');
208 208
     }
209 209
 
210
+    /**
211
+     * @param string $path
212
+     */
210 213
     protected function removeDir($path)
211 214
     {
212 215
 		// Add trailing slash to $path if one is not there
Please login to merge, or discard this patch.
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 $contact_module = $this->getKernel()->useModule('contact');
49 49
 
50 50
                 $redirect = Intraface_Redirect::factory($kernel, 'go');
51
-                $url = $redirect->setDestination($contact_module->getPath()."select_contact", NET_SCHEME . NET_HOST . $this->url());
51
+                $url = $redirect->setDestination($contact_module->getPath()."select_contact", NET_SCHEME.NET_HOST.$this->url());
52 52
                 $redirect->askParameter('contact_id');
53 53
                 $redirect->setIdentifier('contact');
54 54
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         // add existing user
62 62
         if ($this->query('add_user') == 1) {
63 63
             $redirect = Intraface_Redirect::factory($this->getKernel(), 'go');
64
-            $url = $redirect->setDestination(NET_SCHEME . NET_HOST . $this->url('../../user'), NET_SCHEME . NET_HOST . $this->url(null));
64
+            $url = $redirect->setDestination(NET_SCHEME.NET_HOST.$this->url('../../user'), NET_SCHEME.NET_HOST.$this->url(null));
65 65
             $redirect->askParameter('user_id');
66 66
             $redirect->setIdentifier('add_user');
67 67
             return new k_SeeOther($url);
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
                 $user = new UserMaintenance($redirect->getParameter('user_id'));
78 78
                 $user->setIntranetAccess($intranet->get('id'));
79 79
                 $user_id = $user->get('id');
80
-                return new k_SeeOther($this->url('../../user/' . $user->get('id'), array('intranet_id' => $this->name())));
80
+                return new k_SeeOther($this->url('../../user/'.$user->get('id'), array('intranet_id' => $this->name())));
81 81
             }
82 82
         }
83 83
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $gateway = new Intraface_ModuleGateway($this->mdb2);
93 93
         $modules = $gateway->getList();
94 94
 
95
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/show');
95
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/show');
96 96
         return $smarty->render($this, array('modules' => $modules));
97 97
     }
98 98
 
@@ -103,13 +103,13 @@  discard block
 block discarded – undo
103 103
         $modul = $this->getKernel()->module("intranetmaintenance");
104 104
         $translation = $this->getKernel()->getTranslation('intranetmaintenance');
105 105
 
106
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/edit');
106
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/edit');
107 107
         return $smarty->render($this);
108 108
     }
109 109
 
110 110
     function renderHtmlDelete()
111 111
     {
112
-        $smarty = $this->template->create(dirname(__FILE__) . '/../templates/intranet/delete');
112
+        $smarty = $this->template->create(dirname(__FILE__).'/../templates/intranet/delete');
113 113
         return $smarty->render($this);
114 114
     }
115 115
 
@@ -141,70 +141,70 @@  discard block
 block discarded – undo
141 141
             throw new Exception('Du kan kun slette bambus beta og bambus - sune og lars');
142 142
         }
143 143
 
144
-        $db->query("DELETE FROM accounting_account WHERE intranet_id = " . $intranet_id);
145
-        $db->query("DELETE FROM accounting_post WHERE intranet_id = " . $intranet_id);
146
-        $db->query("DELETE FROM accounting_vat_period WHERE intranet_id = " . $intranet_id);
147
-        $db->query("DELETE FROM accounting_voucher WHERE intranet_id = " . $intranet_id);
148
-        $db->query("DELETE FROM accounting_voucher_file WHERE intranet_id = " . $intranet_id);
149
-        $db->query("DELETE FROM accounting_year WHERE intranet_id = " . $intranet_id);
150
-        $db->query("DELETE FROM accounting_year_end WHERE intranet_id = " . $intranet_id);
151
-        $db->query("DELETE FROM accounting_year_end_action WHERE intranet_id = " . $intranet_id);
144
+        $db->query("DELETE FROM accounting_account WHERE intranet_id = ".$intranet_id);
145
+        $db->query("DELETE FROM accounting_post WHERE intranet_id = ".$intranet_id);
146
+        $db->query("DELETE FROM accounting_vat_period WHERE intranet_id = ".$intranet_id);
147
+        $db->query("DELETE FROM accounting_voucher WHERE intranet_id = ".$intranet_id);
148
+        $db->query("DELETE FROM accounting_voucher_file WHERE intranet_id = ".$intranet_id);
149
+        $db->query("DELETE FROM accounting_year WHERE intranet_id = ".$intranet_id);
150
+        $db->query("DELETE FROM accounting_year_end WHERE intranet_id = ".$intranet_id);
151
+        $db->query("DELETE FROM accounting_year_end_action WHERE intranet_id = ".$intranet_id);
152 152
 
153 153
         // her skulle vi slette noget address
154 154
 
155
-        $db->query("DELETE FROM contact WHERE intranet_id = " . $intranet_id);
156
-        $db->query("DELETE FROM contact_person WHERE intranet_id = " . $intranet_id);
157
-        $db->query("DELETE FROM contact_message WHERE intranet_id  = " . $intranet_id);
155
+        $db->query("DELETE FROM contact WHERE intranet_id = ".$intranet_id);
156
+        $db->query("DELETE FROM contact_person WHERE intranet_id = ".$intranet_id);
157
+        $db->query("DELETE FROM contact_message WHERE intranet_id  = ".$intranet_id);
158 158
 
159
-        $db->query("DELETE FROM cms_element WHERE intranet_id = " . $intranet_id);
160
-        $db->query("DELETE FROM cms_page WHERE intranet_id = " . $intranet_id);
161
-        $db->query("DELETE FROM cms_parameter WHERE intranet_id = " . $intranet_id);
162
-        $db->query("DELETE FROM cms_section WHERE intranet_id = " . $intranet_id);
163
-        $db->query("DELETE FROM cms_site WHERE intranet_id = " . $intranet_id);
164
-        $db->query("DELETE FROM cms_template WHERE intranet_id = " . $intranet_id);
165
-        $db->query("DELETE FROM cms_template_section WHERE intranet_id = " . $intranet_id);
159
+        $db->query("DELETE FROM cms_element WHERE intranet_id = ".$intranet_id);
160
+        $db->query("DELETE FROM cms_page WHERE intranet_id = ".$intranet_id);
161
+        $db->query("DELETE FROM cms_parameter WHERE intranet_id = ".$intranet_id);
162
+        $db->query("DELETE FROM cms_section WHERE intranet_id = ".$intranet_id);
163
+        $db->query("DELETE FROM cms_site WHERE intranet_id = ".$intranet_id);
164
+        $db->query("DELETE FROM cms_template WHERE intranet_id = ".$intranet_id);
165
+        $db->query("DELETE FROM cms_template_section WHERE intranet_id = ".$intranet_id);
166 166
 
167
-        $db->query("DELETE FROM comment WHERE intranet_id = " . $intranet_id);
167
+        $db->query("DELETE FROM comment WHERE intranet_id = ".$intranet_id);
168 168
 
169
-        $db->query("DELETE FROM debtor WHERE intranet_id = " . $intranet_id);
170
-        $db->query("DELETE FROM debtor_item WHERE intranet_id = " . $intranet_id);
169
+        $db->query("DELETE FROM debtor WHERE intranet_id = ".$intranet_id);
170
+        $db->query("DELETE FROM debtor_item WHERE intranet_id = ".$intranet_id);
171 171
 
172
-        $db->query("DELETE FROM email WHERE intranet_id = " . $intranet_id);
173
-        $db->query("DELETE FROM email_attachment WHERE intranet_id = " . $intranet_id);
172
+        $db->query("DELETE FROM email WHERE intranet_id = ".$intranet_id);
173
+        $db->query("DELETE FROM email_attachment WHERE intranet_id = ".$intranet_id);
174 174
 
175
-        $db->query("DELETE FROM file_handler WHERE intranet_id = " . $intranet_id);
176
-        $db->query("DELETE FROM file_handler_instance WHERE intranet_id = " . $intranet_id);
177
-        $db->query("DELETE FROM filehandler_append_file WHERE intranet_id = " . $intranet_id);
175
+        $db->query("DELETE FROM file_handler WHERE intranet_id = ".$intranet_id);
176
+        $db->query("DELETE FROM file_handler_instance WHERE intranet_id = ".$intranet_id);
177
+        $db->query("DELETE FROM filehandler_append_file WHERE intranet_id = ".$intranet_id);
178 178
 
179
-        $db->query("DELETE FROM invoice_payment WHERE intranet_id = " . $intranet_id);
180
-        $db->query("DELETE FROM invoice_reminder WHERE intranet_id = " . $intranet_id);
181
-        $db->query("DELETE FROM invoice_reminder_item WHERE intranet_id = " . $intranet_id);
182
-        $db->query("DELETE FROM invoice_reminder_unpaid_reminder WHERE intranet_id = " . $intranet_id);
179
+        $db->query("DELETE FROM invoice_payment WHERE intranet_id = ".$intranet_id);
180
+        $db->query("DELETE FROM invoice_reminder WHERE intranet_id = ".$intranet_id);
181
+        $db->query("DELETE FROM invoice_reminder_item WHERE intranet_id = ".$intranet_id);
182
+        $db->query("DELETE FROM invoice_reminder_unpaid_reminder WHERE intranet_id = ".$intranet_id);
183 183
 
184
-        $db->query("DELETE FROM keyword WHERE intranet_id = " . $intranet_id);
185
-        $db->query("DELETE FROM keyword_x_object WHERE intranet_id = " . $intranet_id);
184
+        $db->query("DELETE FROM keyword WHERE intranet_id = ".$intranet_id);
185
+        $db->query("DELETE FROM keyword_x_object WHERE intranet_id = ".$intranet_id);
186 186
 
187
-        $db->query("DELETE FROM newsletter_archieve WHERE intranet_id = " . $intranet_id);
188
-        $db->query("DELETE FROM newsletter_list WHERE intranet_id = " . $intranet_id);
189
-        $db->query("DELETE FROM newsletter_subscriber WHERE intranet_id = " . $intranet_id);
187
+        $db->query("DELETE FROM newsletter_archieve WHERE intranet_id = ".$intranet_id);
188
+        $db->query("DELETE FROM newsletter_list WHERE intranet_id = ".$intranet_id);
189
+        $db->query("DELETE FROM newsletter_subscriber WHERE intranet_id = ".$intranet_id);
190 190
 
191
-        $db->query("DELETE FROM onlinepayment WHERE intranet_id = " . $intranet_id);
191
+        $db->query("DELETE FROM onlinepayment WHERE intranet_id = ".$intranet_id);
192 192
 
193
-        $db->query("DELETE FROM procurement WHERE intranet_id = " . $intranet_id);
194
-        $db->query("DELETE FROM procurement_item WHERE intranet_id = " . $intranet_id);
193
+        $db->query("DELETE FROM procurement WHERE intranet_id = ".$intranet_id);
194
+        $db->query("DELETE FROM procurement_item WHERE intranet_id = ".$intranet_id);
195 195
 
196
-        $db->query("DELETE FROM product WHERE intranet_id = " . $intranet_id);
197
-        $db->query("DELETE FROM product_detail WHERE intranet_id = " . $intranet_id);
198
-        $db->query("DELETE FROM product_related WHERE intranet_id = " . $intranet_id);
196
+        $db->query("DELETE FROM product WHERE intranet_id = ".$intranet_id);
197
+        $db->query("DELETE FROM product_detail WHERE intranet_id = ".$intranet_id);
198
+        $db->query("DELETE FROM product_related WHERE intranet_id = ".$intranet_id);
199 199
 
200
-        $db->query("DELETE FROM stock_adaptation WHERE intranet_id = " . $intranet_id);
201
-        $db->query("DELETE FROM stock_regulation WHERE intranet_id = " . $intranet_id);
200
+        $db->query("DELETE FROM stock_adaptation WHERE intranet_id = ".$intranet_id);
201
+        $db->query("DELETE FROM stock_regulation WHERE intranet_id = ".$intranet_id);
202 202
 
203
-        $db->query("DELETE FROM todo_list WHERE intranet_id = " . $intranet_id);
204
-        $db->query("DELETE FROM todo_item WHERE intranet_id = " . $intranet_id);
205
-        $db->query("DELETE FROM todo_contact WHERE intranet_id = " . $intranet_id);
203
+        $db->query("DELETE FROM todo_list WHERE intranet_id = ".$intranet_id);
204
+        $db->query("DELETE FROM todo_item WHERE intranet_id = ".$intranet_id);
205
+        $db->query("DELETE FROM todo_contact WHERE intranet_id = ".$intranet_id);
206 206
 
207
-        $this->removeDir('/home/intraface/upload/' . $intranet_id . '/');
207
+        $this->removeDir('/home/intraface/upload/'.$intranet_id.'/');
208 208
     }
209 209
 
210 210
     protected function removeDir($path)
@@ -214,8 +214,8 @@  discard block
 block discarded – undo
214 214
             $path .= "/";
215 215
         }
216 216
 
217
-        $normal_files = glob($path . "*");
218
-        $hidden_files = glob($path . "\.?*");
217
+        $normal_files = glob($path."*");
218
+        $hidden_files = glob($path."\.?*");
219 219
         $all_files = array_merge($normal_files, $hidden_files);
220 220
 
221 221
         foreach ($all_files as $file) {
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             if (is_file($file) === true) {
228 228
                 // Remove each file in this Directory
229 229
                 unlink($file);
230
-                echo "Removed File: " . $file . "<br>";
230
+                echo "Removed File: ".$file."<br>";
231 231
             } elseif (is_dir($file) === true) {
232 232
                 // If this Directory contains a Subdirectory, run this Function on it
233 233
                 removeDir($file);
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/DebtorAccount.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * returns Payment object
40 40
      * 
41
-     * @return object Payment
41
+     * @return Payment Payment
42 42
      */
43 43
     private function getPayment() 
44 44
     {
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * returns depreciation object
51 51
      * 
52
-     * @return object Depreciation
52
+     * @return Depreciation Depreciation
53 53
      */
54 54
     private function getDepreciation() 
55 55
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     /**
61 61
      * Returns Credit note object
62 62
      * 
63
-     * @return object creditnote
63
+     * @return CreditNote creditnote
64 64
      */
65 65
     private function getCreditNote() 
66 66
     {
Please login to merge, or discard this patch.
src/Intraface/modules/invoice/ReminderItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
     private $db;
12 12
     public $error;
13 13
 
14
+    /**
15
+     * @param Reminder $reminder
16
+     */
14 17
     function __construct($reminder, $id = 0)
15 18
     {
16 19
         $this->reminder = $reminder;
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/AccessUpdate.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      * Run the AccessUpdate and applies module access acording to module packages
36 36
      *
37 37
      * @param integer intranet_id id on intranet, and the access update will only run on this intranet.
38
-     * @return boolean true on success, false on failure
38
+     * @return null|boolean true on success, false on failure
39 39
      */
40 40
     public function run($intranet_id = 0)
41 41
     {
Please login to merge, or discard this patch.
src/Intraface/modules/modulepackage/Action.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,8 +155,9 @@
 block discarded – undo
155 155
      * Executes the actions by adding and deleting module packages according to the actions
156 156
      *
157 157
      * @param object intranet intranet object
158
+     * @param Intraface_Intranet $intranet
158 159
      *
159
-     * @return boolean true or false.
160
+     * @return null|boolean true or false.
160 161
      */
161 162
     public function execute($intranet)
162 163
     {
Please login to merge, or discard this patch.