Completed
Push — master ( 66af36...2371e5 )
by Haralan
01:21
created
src/Openbuildings/Spiderling/Driver.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -234,7 +234,6 @@  discard block
 block discarded – undo
234 234
 
235 235
 	/**
236 236
 	 * Get the text of the currently displayed alert / confirm /prompt dialog
237
-	 * @param  bool $confirm
238 237
 	 */
239 238
 	public function alert_text()
240 239
 	{
@@ -252,6 +251,9 @@  discard block
 block discarded – undo
252 251
 
253 252
 	/**
254 253
 	 * Move the mouse to a certain element
254
+	 * @param string $id
255
+	 * @param integer $x
256
+	 * @param integer $y
255 257
 	 */
256 258
 	public function move_to($id = NULL, $x = NULL, $y = NULL)
257 259
 	{
@@ -269,6 +271,8 @@  discard block
 block discarded – undo
269 271
 
270 272
 	/**
271 273
 	 * execute Javascript
274
+	 * @param string $id
275
+	 * @param string $script
272 276
 	 */
273 277
 	public function execute($id, $script)
274 278
 	{
@@ -288,7 +292,6 @@  discard block
 block discarded – undo
288 292
 	 *
289 293
 	 * @param  string $name
290 294
 	 * @param  string $value
291
-	 * @param  integer $expires
292 295
 	 */
293 296
 	public function cookie($name, $value, array $parameters = array())
294 297
 	{
@@ -329,6 +332,7 @@  discard block
 block discarded – undo
329 332
 	/**
330 333
 	 * Extract implicit query from URI
331 334
 	 *
335
+	 * @param string $uri
332 336
 	 * @return array
333 337
 	 */
334 338
 	public static function extract_query_from_uri($uri)
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Driver/Phantomjs/Connection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	/**
63 63
 	 * Getter / Setter of the current phantomjs server url
64 64
 	 * @param  string $server
65
-	 * @return string|Driver_Phantomjs_Connection
65
+	 * @return string
66 66
 	 */
67 67
 	public function server($server = NULL)
68 68
 	{
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Driver/Selenium.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,6 @@
 block discarded – undo
272 272
 
273 273
 	/**
274 274
 	 * Get the text of the currently displayed alert / confirm /prompt dialog
275
-	 * @param  bool $confirm
276 275
 	 */
277 276
 	public function alert_text()
278 277
 	{
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Driver/Simple/Forms.php 1 patch
Doc Comments   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
 	 */
19 19
 	protected $_xpath;
20 20
 
21
+	/**
22
+	 * @param Driver_Simple_Xpath $xpath
23
+	 */
21 24
 	function __construct($xpath)
22 25
 	{
23 26
 		$this->xpath = $xpath;
@@ -54,7 +57,7 @@  discard block
 block discarded – undo
54 57
 	/**
55 58
 	 * Set the value of a DOMElement, identified by an xpath, calls one of the stter methods
56 59
 	 * @param string $xpath
57
-	 * @param mixed $value
60
+	 * @param string $value
58 61
 	 */
59 62
 	public function set_value($xpath, $value)
60 63
 	{
@@ -88,7 +91,7 @@  discard block
 block discarded – undo
88 91
 
89 92
 	/**
90 93
 	 * Set the value of a checkbos DOMNode
91
-	 * @param DOMNode $checkbox
94
+	 * @param \DOMNode $checkbox
92 95
 	 * @param boolean   $value
93 96
 	 */
94 97
 	public function set_value_checkbox(\DOMNode $checkbox, $value)
@@ -105,7 +108,7 @@  discard block
 block discarded – undo
105 108
 
106 109
 	/**
107 110
 	 * Set the value of a radio DOMNode, uncheck any other radio input in the same group
108
-	 * @param DOMNode $radio
111
+	 * @param \DOMNode $radio
109 112
 	 * @param boolean   $value
110 113
 	 */
111 114
 	public function set_value_radio(\DOMNode $radio, $value)
@@ -123,7 +126,7 @@  discard block
 block discarded – undo
123 126
 
124 127
 	/**
125 128
 	 * Set the value of a normal input
126
-	 * @param DOMNode $input
129
+	 * @param \DOMNode $input
127 130
 	 * @param string   $value
128 131
 	 */
129 132
 	public function set_value_input(\DOMNode $input, $value)
@@ -133,7 +136,7 @@  discard block
 block discarded – undo
133 136
 
134 137
 	/**
135 138
 	 * Set the value of a normal textarea
136
-	 * @param DOMNode $textarea
139
+	 * @param \DOMNode $textarea
137 140
 	 * @param string   $value
138 141
 	 */
139 142
 	public function set_value_textarea(\DOMNode $textarea, $value)
@@ -143,7 +146,7 @@  discard block
 block discarded – undo
143 146
 
144 147
 	/**
145 148
 	 * Set the value of an option DOMNode, unselect other options in this select, if it is not multiple
146
-	 * @param DOMNode $option
149
+	 * @param \DOMNode $option
147 150
 	 * @param boolean   $value
148 151
 	 */
149 152
 	public function set_value_option(\DOMNode $option, $value)
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Driver/Simple/Xpath.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 	 * Find a DOMElement wit ha given xpath expression, optionally provide parent DOMNode to use as context.
17 17
 	 * @param  string $expression
18 18
 	 * @param  DOMNode $contextnode
19
-	 * @return DOMNode
19
+	 * @return \DOMNode
20 20
 	 * @throws Exception_Xpath If no elements were found
21 21
 	 */
22 22
 	public function find($expression, $contextnode = NULL)
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Driver/SimpleXML.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -2,11 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Openbuildings\Spiderling;
4 4
 
5
-use Openbuildings\EnvironmentBackup\Environment;
6
-use Openbuildings\EnvironmentBackup\Environment_Group_Globals;
7
-use Openbuildings\EnvironmentBackup\Environment_Group_Server;
8
-use Openbuildings\EnvironmentBackup\Environment_Group_Static;
9
-
10 5
 /**
11 6
  * Use Curl to load urls.
12 7
  * In memory.
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Exception.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
  */
13 13
 class Exception extends \Exception {
14 14
 
15
+	/**
16
+	 * @param string $message
17
+	 */
15 18
 	public function __construct($message, array $variables = array(), \Exception $previous = NULL)
16 19
 	{
17 20
 		if ($variables)
Please login to merge, or discard this patch.
src/Openbuildings/Spiderling/Node.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * Setter / Getter of the next wait time
105 105
 	 * @param  integer $next_wait_time milliseconds
106
-	 * @return integer|Node
106
+	 * @return integer
107 107
 	 */
108 108
 	public function next_wait_time($next_wait_time = NULL)
109 109
 	{
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 
159 159
 	/**
160 160
 	 * The current internal ID, unique to this page
161
-	 * @return mixed
161
+	 * @return string
162 162
 	 */
163 163
 	public function id()
164 164
 	{
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 	 * Execute arbitrary javascript on the page and get the result
509 509
 	 *
510 510
 	 * @param  string $script
511
-	 * @return mixed
511
+	 * @return Node
512 512
 	 */
513 513
 	public function execute($script, $callback = NULL)
514 514
 	{
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
 	 * @param  string|array  $selector
656 656
 	 * @param  array         $filters
657 657
 	 * @throws Functest_Exception_Found If element is found on the page
658
-	 * @return Node $this
658
+	 * @return boolean $this
659 659
 	 */
660 660
 	public function not_present($selector, array $filters = array())
661 661
 	{
Please login to merge, or discard this patch.