Test Failed
Branch master (969917)
by Joe
02:18
created
src/Fantastico.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -118,6 +118,7 @@  discard block
 block discarded – undo
118 118
 	 * a check to make sure the passed type is valid
119 119
 	 *
120 120
 	 * @param mixed the license type your trying to validate
121
+	 * @param integer $type
121 122
 	 * @return bool whether or not its a valid fantastico license type
122 123
 	 */
123 124
 	public function is_type($type) {
@@ -146,7 +147,7 @@  discard block
 block discarded – undo
146 147
 	 *     [2] => 150.101.195.140
147 148
 	 * )
148 149
 	 *
149
-	 * @param mixed $type one of the possible fantastico license types, defaults to {@link self::ALL_TYPES}
150
+	 * @param integer $type one of the possible fantastico license types, defaults to {@link self::ALL_TYPES}
150 151
 	 * @return false|array returns false on error or an array of license details
151 152
 	 */
152 153
 	public function getIpList($type = self::ALL_TYPES) {
@@ -199,7 +200,7 @@  discard block
 block discarded – undo
199 200
 	 * 	    }
200 201
 	 * 	)
201 202
 	 *
202
-	 * @param mixed $type one of the possible fantastico license types, defaults to {@link self::ALL_TYPES}
203
+	 * @param integer $type one of the possible fantastico license types, defaults to {@link self::ALL_TYPES}
203 204
 	 * @return false|array returns false on error or an array of license details
204 205
 	 */
205 206
 	public function getIpListDetailed($type = self::ALL_TYPES) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 block discarded – undo
13 13
 
14 14
 namespace Detain\Fantastico;
15 15
 
16
-class Fantastico
17
-{
16
+class Fantastico {
18 17
 
19 18
 	/**
20 19
 	 * All fantastico license types
Please login to merge, or discard this patch.
tests/FantasticoTest.php 1 patch
Braces   +15 added lines, -30 removed lines patch added patch discarded remove patch
@@ -2,8 +2,7 @@  discard block
 block discarded – undo
2 2
 /**
3 3
  * Generated by PHPUnit_SkeletonGenerator on 2017-06-16 at 14:19:45.
4 4
  */
5
-class FantasticoTest extends PHPUnit_Framework_TestCase
6
-{
5
+class FantasticoTest extends PHPUnit_Framework_TestCase {
7 6
     /**
8 7
      * @var Fantastico
9 8
      */
@@ -13,8 +12,7 @@  discard block
 block discarded – undo
13 12
      * Sets up the fixture, for example, opens a network connection.
14 13
      * This method is called before a test is executed.
15 14
      */
16
-    protected function setUp()
17
-    {
15
+    protected function setUp() {
18 16
         $this->object = new Fantastico;
19 17
     }
20 18
 
@@ -22,16 +20,14 @@  discard block
 block discarded – undo
22 20
      * Tears down the fixture, for example, closes a network connection.
23 21
      * This method is called after a test is executed.
24 22
      */
25
-    protected function tearDown()
26
-    {
23
+    protected function tearDown() {
27 24
     }
28 25
 
29 26
     /**
30 27
      * @covers Detain\Fantastico\Fantastico::connect
31 28
      * @todo   Implement testConnect().
32 29
      */
33
-    public function testConnect()
34
-    {
30
+    public function testConnect() {
35 31
         // Remove the following lines when you implement this test.
36 32
         $this->markTestIncomplete(
37 33
             'This test has not been implemented yet.'
@@ -42,8 +38,7 @@  discard block
 block discarded – undo
42 38
      * @covers Detain\Fantastico\Fantastico::get_ip_types
43 39
      * @todo   Implement testGet_ip_types().
44 40
      */
45
-    public function testGet_ip_types()
46
-    {
41
+    public function testGet_ip_types() {
47 42
         // Remove the following lines when you implement this test.
48 43
         $this->markTestIncomplete(
49 44
             'This test has not been implemented yet.'
@@ -54,8 +49,7 @@  discard block
 block discarded – undo
54 49
      * @covers Detain\Fantastico\Fantastico::is_type
55 50
      * @todo   Implement testIs_type().
56 51
      */
57
-    public function testIs_type()
58
-    {
52
+    public function testIs_type() {
59 53
         // Remove the following lines when you implement this test.
60 54
         $this->markTestIncomplete(
61 55
             'This test has not been implemented yet.'
@@ -66,8 +60,7 @@  discard block
 block discarded – undo
66 60
      * @covers Detain\Fantastico\Fantastico::getIpList
67 61
      * @todo   Implement testGetIpList().
68 62
      */
69
-    public function testGetIpList()
70
-    {
63
+    public function testGetIpList() {
71 64
         // Remove the following lines when you implement this test.
72 65
         $this->markTestIncomplete(
73 66
             'This test has not been implemented yet.'
@@ -78,8 +71,7 @@  discard block
 block discarded – undo
78 71
      * @covers Detain\Fantastico\Fantastico::getIpListDetailed
79 72
      * @todo   Implement testGetIpListDetailed().
80 73
      */
81
-    public function testGetIpListDetailed()
82
-    {
74
+    public function testGetIpListDetailed() {
83 75
         // Remove the following lines when you implement this test.
84 76
         $this->markTestIncomplete(
85 77
             'This test has not been implemented yet.'
@@ -90,8 +82,7 @@  discard block
 block discarded – undo
90 82
      * @covers Detain\Fantastico\Fantastico::valid_ip
91 83
      * @todo   Implement testValid_ip().
92 84
      */
93
-    public function testValid_ip()
94
-    {
85
+    public function testValid_ip() {
95 86
         // Remove the following lines when you implement this test.
96 87
         $this->markTestIncomplete(
97 88
             'This test has not been implemented yet.'
@@ -102,8 +93,7 @@  discard block
 block discarded – undo
102 93
      * @covers Detain\Fantastico\Fantastico::getIpDetails
103 94
      * @todo   Implement testGetIpDetails().
104 95
      */
105
-    public function testGetIpDetails()
106
-    {
96
+    public function testGetIpDetails() {
107 97
         // Remove the following lines when you implement this test.
108 98
         $this->markTestIncomplete(
109 99
             'This test has not been implemented yet.'
@@ -114,8 +104,7 @@  discard block
 block discarded – undo
114 104
      * @covers Detain\Fantastico\Fantastico::editIp
115 105
      * @todo   Implement testEditIp().
116 106
      */
117
-    public function testEditIp()
118
-    {
107
+    public function testEditIp() {
119 108
         // Remove the following lines when you implement this test.
120 109
         $this->markTestIncomplete(
121 110
             'This test has not been implemented yet.'
@@ -126,8 +115,7 @@  discard block
 block discarded – undo
126 115
      * @covers Detain\Fantastico\Fantastico::addIp
127 116
      * @todo   Implement testAddIp().
128 117
      */
129
-    public function testAddIp()
130
-    {
118
+    public function testAddIp() {
131 119
         // Remove the following lines when you implement this test.
132 120
         $this->markTestIncomplete(
133 121
             'This test has not been implemented yet.'
@@ -138,8 +126,7 @@  discard block
 block discarded – undo
138 126
      * @covers Detain\Fantastico\Fantastico::deactivateIp
139 127
      * @todo   Implement testDeactivateIp().
140 128
      */
141
-    public function testDeactivateIp()
142
-    {
129
+    public function testDeactivateIp() {
143 130
         // Remove the following lines when you implement this test.
144 131
         $this->markTestIncomplete(
145 132
             'This test has not been implemented yet.'
@@ -150,8 +137,7 @@  discard block
 block discarded – undo
150 137
      * @covers Detain\Fantastico\Fantastico::reactivateIp
151 138
      * @todo   Implement testReactivateIp().
152 139
      */
153
-    public function testReactivateIp()
154
-    {
140
+    public function testReactivateIp() {
155 141
         // Remove the following lines when you implement this test.
156 142
         $this->markTestIncomplete(
157 143
             'This test has not been implemented yet.'
@@ -162,8 +148,7 @@  discard block
 block discarded – undo
162 148
      * @covers Detain\Fantastico\Fantastico::deleteIp
163 149
      * @todo   Implement testDeleteIp().
164 150
      */
165
-    public function testDeleteIp()
166
-    {
151
+    public function testDeleteIp() {
167 152
         // Remove the following lines when you implement this test.
168 153
         $this->markTestIncomplete(
169 154
             'This test has not been implemented yet.'
Please login to merge, or discard this patch.