Completed
Push — master ( 0fe3c1...4fb0b3 )
by Tamas
01:45
created
src/firebaseLib.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -201,6 +201,9 @@
 block discarded – undo
201 201
         return $ch;
202 202
     }
203 203
 
204
+    /**
205
+     * @param string $path
206
+     */
204 207
     private function _writeData($path, $data, $method = 'PUT')
205 208
     {
206 209
         $jsonData = json_encode($data);
Please login to merge, or discard this patch.
src/firebaseStub.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     /**
44
-     * @param $token
44
+     * @param string $token
45 45
      * @return null
46 46
      */
47 47
     public function setToken($token)
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 
52 52
     /**
53
-     * @param $baseURI
53
+     * @param string $baseURI
54 54
      * @return null
55 55
      */
56 56
     public function setBaseURI($baseURI)
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-     * @param $seconds
63
+     * @param integer $seconds
64 64
      * @return null
65 65
      */
66 66
     public function setTimeOut($seconds)
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @param $path
83
-     * @param $data
82
+     * @param string $path
83
+     * @param string $data
84 84
      * @return null
85 85
      */
86 86
     public function push($path, $data)
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
     }
90 90
 
91 91
     /**
92
-     * @param $path
93
-     * @param $data
92
+     * @param string $path
93
+     * @param string $data
94 94
      * @return null
95 95
      */
96 96
     public function update($path, $data)
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
-     * @param $path
111
+     * @param string $path
112 112
      * @return null
113 113
      */
114 114
     public function delete($path)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     }
118 118
 
119 119
     /**
120
-     * @param $expectedResponse
120
+     * @param string $expectedResponse
121 121
      */
122 122
     public function setResponse($expectedResponse)
123 123
     {
@@ -190,8 +190,8 @@  discard block
 block discarded – undo
190 190
  */
191 191
 class Error {
192 192
     /**
193
-     * @param $error
194
-     * @param $message
193
+     * @param boolean $error
194
+     * @param string $message
195 195
      */
196 196
     function __construct($error, $message)
197 197
   {
Please login to merge, or discard this patch.
tests/firebaseStubTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@
 block discarded – undo
120 120
     $this->assertEquals($this->_getErrorMessages('NO_DATA'), $response);
121 121
   }
122 122
 
123
+  /**
124
+   * @param string $errorCode
125
+   */
123 126
   private function _getErrorMessages($errorCode) {
124 127
     $errorMessages = Array(
125 128
       'INSECURE_URL' => 'Firebase does not support non-ssl traffic. Please try your request again over https.',
Please login to merge, or discard this patch.