Completed
Pull Request — master (#27)
by Lars
11:57
created
tests/unit/Stub/Intranet.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 get($key = '')
12 12
     {
13
-        $info = array('name' => 'Intranetname', 'contact_person' => '','id' => 1, 'public_key' => 'somepublickey', 'identifier' => 'intraface');
13
+        $info = array('name' => 'Intranetname', 'contact_person' => '', 'id' => 1, 'public_key' => 'somepublickey', 'identifier' => 'intraface');
14 14
         if (empty($key)) {
15 15
             return $info;
16 16
         } else {
Please login to merge, or discard this patch.
tests/unit/Filehandler/file_functions.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,10 +7,10 @@  discard block
 block discarded – undo
7 7
             if (!strcmp($item, '.') || !strcmp($item, '..')) {
8 8
                 continue;
9 9
             }
10
-            fht_deltree($f . "/" . $item);
10
+            fht_deltree($f."/".$item);
11 11
         }
12 12
         rmdir($f);
13
-    } else{
13
+    } else {
14 14
         @unlink($f);
15 15
     }
16 16
 }
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
             if (!strcmp($item, '.') || !strcmp($item, '..')) {
25 25
                 continue;
26 26
             }
27
-            iht_deltree($f . "/" . $item);
27
+            iht_deltree($f."/".$item);
28 28
         }
29 29
         rmdir($f);
30
-    } else{
30
+    } else {
31 31
         @unlink($f);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
tests/unit/Filehandler/FileHandlerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     {
12 12
         $db = MDB2::singleton(DB_DSN);
13 13
         $db->query('TRUNCATE file_handler');
14
-        fht_deltree(PATH_UPLOAD . '1');
14
+        fht_deltree(PATH_UPLOAD.'1');
15 15
     }
16 16
 
17 17
     function createKernel()
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $fh = new FileHandler($this->createKernel());
80 80
         // first we make a copy of the file as it is moved by upload.
81
-        copy(dirname(__FILE__) . '/wideonball.jpg', PATH_UPLOAD.'wideonball.jpg');
81
+        copy(dirname(__FILE__).'/wideonball.jpg', PATH_UPLOAD.'wideonball.jpg');
82 82
         $id = $fh->save(PATH_UPLOAD.'wideonball.jpg', 'Filename');
83 83
         $fh->error->view();
84 84
         $this->assertTrue($id > 0);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $fh = new FileHandler($this->createKernel());
90 90
         // first we make a copy of the file as it is moved by upload.
91
-        copy(dirname(__FILE__) . '/wideonball.jpg', PATH_UPLOAD.'wideonball.jpg');
91
+        copy(dirname(__FILE__).'/wideonball.jpg', PATH_UPLOAD.'wideonball.jpg');
92 92
         $id = $fh->save(PATH_UPLOAD.'wideonball.jpg', 'Filename');
93 93
         $fh->load();
94 94
         $this->assertEquals(50, strlen($fh->get('access_key')));
Please login to merge, or discard this patch.
tests/unit/Filehandler/TemporaryFileTest.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 __construct()
12 12
     {
13
-        $this->upload_path = PATH_UPLOAD.'1'. DIRECTORY_SEPARATOR;
13
+        $this->upload_path = PATH_UPLOAD.'1'.DIRECTORY_SEPARATOR;
14 14
         $this->tempdir_path = $this->upload_path.PATH_UPLOAD_TEMPORARY;
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
tests/unit/Filehandler/InstanceHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $data = array('file_name' => $file);
35 35
         $filehandler = $this->createFileHandler();
36
-        copy(dirname(__FILE__) . '/'.$file, PATH_UPLOAD.$file);
36
+        copy(dirname(__FILE__).'/'.$file, PATH_UPLOAD.$file);
37 37
         $filehandler->save(PATH_UPLOAD.$file, $file);
38 38
         $filehandler->load();
39 39
         $this->assertEquals('', $filehandler->error->view());
Please login to merge, or discard this patch.
tests/unit/Filehandler/ImageHandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $data = array('file_name' => $this->file_name);
32 32
         $filehandler = new FileHandler($this->createKernel());
33
-        copy(dirname(__FILE__) . '/'.$this->file_name, PATH_UPLOAD.$this->file_name);
33
+        copy(dirname(__FILE__).'/'.$this->file_name, PATH_UPLOAD.$this->file_name);
34 34
         $filehandler->save(PATH_UPLOAD.$this->file_name, $this->file_name);
35 35
         $filehandler->load();
36 36
         $this->assertEquals('', $filehandler->error->view());
Please login to merge, or discard this patch.
tests/unit/Newsletter/NewsletterTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 
19 19
     function getSubscribers()
20 20
     {
21
-        for ($i = 0; $i<10000; $i++) {
21
+        for ($i = 0; $i < 10000; $i++) {
22 22
             $array[] = array(
23 23
                 'contact_id' => '1',
24 24
                 'contact_email' => '[email protected]'
Please login to merge, or discard this patch.
tests/unit/Accounting/VatPeriodTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         // ganges med -1 for at f� rigtigt fortegn til udregning
106 106
         $this->value['saldo_vat_out'] = $account_vat_in->get('saldo');
107
-        $saldo_total += -1 * $this->value['saldo_vat_out']; // total
107
+        $saldo_total += -1*$this->value['saldo_vat_out']; // total
108 108
 
109 109
 
110 110
         // Moms af varek�b i udlandet
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
         // ganges med -1 for at f� rigtigt fortegn til udregning
117 117
         $this->value['saldo_vat_abroad'] = $account_vat_abroad->get('saldo');
118
-        $saldo_total += -1 * $this->value['saldo_vat_abroad'];
118
+        $saldo_total += -1*$this->value['saldo_vat_abroad'];
119 119
 
120 120
         // K�bsmoms
121 121
         // K�bsmomsen inkluderer ogs� den udregnede moms af moms af varek�b i udlandet.
Please login to merge, or discard this patch.
tests/unit/XMLRPC/ContactXMLRPCTest.php 1 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 getClient()
24 24
     {
25
-        require_once dirname(__FILE__) . '/../../../install/Install.php';
25
+        require_once dirname(__FILE__).'/../../../install/Install.php';
26 26
 
27 27
         if (!defined('SERVER_STATUS')) {
28 28
             define('SERVER_STATUS', 'TEST');
Please login to merge, or discard this patch.