Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
tests/unit/Contact/ContactStubs.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
     private $id = 1;
5 5
     public $kernel;
6 6
 
7
+    /**
8
+     * @param FakeContactKernel $kernel
9
+     */
7 10
     function __construct($kernel)
8 11
     {
9 12
         $this->kernel = $kernel;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     function useShared($shared)
44 44
     {
45
-        switch($shared) {
45
+        switch ($shared) {
46 46
             case 'email':
47 47
                 require_once 'Intraface/shared/email/Email.php';
48 48
                 break;
Please login to merge, or discard this patch.
tests/unit/Debtor/DebtorTest.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@  discard block
 block discarded – undo
63 63
 class FakeDebtorSetting
64 64
 {
65 65
 
66
+    /**
67
+     * @param string $type
68
+     * @param string $setting
69
+     */
66 70
     function get($type, $setting)
67 71
     {
68 72
 
@@ -145,6 +149,9 @@  discard block
 block discarded – undo
145 149
 
146 150
     }
147 151
 
152
+    /**
153
+     * @param Invoice $debtor
154
+     */
148 155
     function createPayment($debtor)
149 156
     {
150 157
         $payment = new Payment($debtor);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     }
42 42
     function get($key = '')
43 43
     {
44
-        $info = array('name' => 'Intranetname', 'contact_person' => '','id' => 1);
44
+        $info = array('name' => 'Intranetname', 'contact_person' => '', 'id' => 1);
45 45
         if (empty($key)) {
46 46
             return $info;
47 47
         } else {
Please login to merge, or discard this patch.
tests/unit/Filehandler/file_functions.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -1,4 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
+/**
3
+ * @param string $f
4
+ */
2 5
 function fht_deltree($f)
3 6
 {
4 7
 
@@ -16,6 +19,9 @@  discard block
 block discarded – undo
16 19
 }
17 20
 
18 21
 
22
+/**
23
+ * @param string $f
24
+ */
19 25
 function iht_deltree($f)
20 26
 {
21 27
 
Please login to merge, or discard this 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/InstanceHandlerTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
         return new FileHandler($this->createKernel());
30 30
     }
31 31
 
32
+    /**
33
+     * @param string $file
34
+     */
32 35
     function createFile($file)
33 36
     {
34 37
         $data = array('file_name' => $file);
Please login to merge, or discard this 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/Product/ProductDoctrineGatewayTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
36 36
         return new Intraface_modules_product_ProductDoctrine;
37 37
     }
38 38
 
39
+    /**
40
+     * @param string $name
41
+     */
39 42
     function createProduct($name)
40 43
     {
41 44
         $product = $this->createProductObject();
@@ -49,6 +52,10 @@  discard block
 block discarded – undo
49 52
         return $product;
50 53
     }
51 54
 
55
+    /**
56
+     * @param string $group_name
57
+     * @param string[] $attributes
58
+     */
52 59
     public function createAttribute($group_name, $attributes)
53 60
     {
54 61
         $group = new Intraface_modules_product_Attribute_Group;
Please login to merge, or discard this patch.
tests/unit/Product/VariationGatewayTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
     
7 7
     private $groups;
8 8
     
9
+    /**
10
+     * @param integer $groups
11
+     */
9 12
     public function __construct($groups)
10 13
     {
11 14
         $this->groups = $groups;
Please login to merge, or discard this patch.
tests/unit/Shop/ShopGatewayTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -82,6 +82,9 @@
 block discarded – undo
82 82
         return $this->context->getKernel();
83 83
     }
84 84
 
85
+    /**
86
+     * @return integer
87
+     */
85 88
     function getShopId()
86 89
     {
87 90
         if ($this->query('shop_id')) {
Please login to merge, or discard this patch.
tests/unit/Stock/StockTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 class FakeStockProduct
7 7
 {
8 8
     public $kernel;
9
+
10
+    /**
11
+     * @param Stub_Kernel $kernel
12
+     */
9 13
     function __construct($kernel)
10 14
     {
11 15
         $this->kernel = $kernel;
Please login to merge, or discard this patch.
tests/unit/Stub/Keyword.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -1,6 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 class MyKeyword extends Keyword
3 3
 {
4
+    /**
5
+     * @param FakeKeywordObject $object
6
+     */
4 7
     function __construct($object, $id = 0)
5 8
     {
6 9
         parent::__construct($object, $id);
@@ -113,6 +116,9 @@  discard block
 block discarded – undo
113 116
 
114 117
 class MyStringKeyword extends Keyword
115 118
 {
119
+    /**
120
+     * @param FakeKeywordObject $object
121
+     */
116 122
     function __construct($object, $id = 0)
117 123
     {
118 124
         parent::__construct($object, $id);
Please login to merge, or discard this patch.