Completed
Pull Request — master (#23)
by Shestakov
15:36
created
Source/Ice/DataProvider/Registry.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
262 262
     /**
263 263
      * Connect to data provider
264 264
      *
265
-     * @param  $connection
265
+     * @param  ArrayObject $connection
266 266
      * @return boolean
267 267
      *
268 268
      * @author dp <[email protected]>
Please login to merge, or discard this patch.
Source/Ice/DataProvider/Router.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -256,6 +256,10 @@
 block discarded – undo
256 256
         return (bool)$connection = $dataProvider->set([$key => $route])[$key];
257 257
     }
258 258
 
259
+    /**
260
+     * @param string $url
261
+     * @param string $method
262
+     */
259 263
     public function getRoute($url, $method)
260 264
     {
261 265
         list($matchedRoutes, $foundRoutes) = $this->getRoutes($url, $method);
Please login to merge, or discard this patch.
Source/Ice/DataProvider/Security.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      * Connect to data provider
173 173
      *
174 174
      * @param  $connection
175
-     * @return boolean
175
+     * @return \Ice\Core\Container
176 176
      *
177 177
      * @author anonymous <email>
178 178
      *
Please login to merge, or discard this patch.
Source/Ice/DataProvider/Session.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
      *
126 126
      * @param  $key
127 127
      * @param  int $step
128
-     * @return mixed new value
128
+     * @return integer new value
129 129
      *
130 130
      * @author dp <[email protected]>
131 131
      *
Please login to merge, or discard this patch.
Source/Ice/DataSource/Mysqli.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
     }
298 298
 
299 299
     /**
300
-     * @param $sql
300
+     * @param string $sql
301 301
      * @return mixed
302 302
      * @throws Exception
303 303
      *
@@ -952,7 +952,7 @@  discard block
 block discarded – undo
952 952
     /**
953 953
      * Create save point transactions
954 954
      *
955
-     * @param $savePoint
955
+     * @param string $savePoint
956 956
      *
957 957
      * @author dp <[email protected]>
958 958
      *
@@ -994,7 +994,7 @@  discard block
 block discarded – undo
994 994
     /**
995 995
      * Release save point transactions
996 996
      *
997
-     * @param $savePoint
997
+     * @param string $savePoint
998 998
      *
999 999
      * @author dp <[email protected]>
1000 1000
      *
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
     /**
1036 1036
      * Rollback save point transactions
1037 1037
      *
1038
-     * @param $savePoint
1038
+     * @param string $savePoint
1039 1039
      *
1040 1040
      * @author dp <[email protected]>
1041 1041
      *
@@ -1051,7 +1051,7 @@  discard block
 block discarded – undo
1051 1051
      * Translate ice query language for get data
1052 1052
      *
1053 1053
      * @param array $iceql
1054
-     * @return mixed
1054
+     * @return string
1055 1055
      *
1056 1056
      * @author dp <[email protected]>
1057 1057
      *
@@ -1194,7 +1194,7 @@  discard block
 block discarded – undo
1194 1194
      * Translate ice query language for set data
1195 1195
      *
1196 1196
      * @param array $iceql
1197
-     * @return mixed setted value
1197
+     * @return string setted value
1198 1198
      *
1199 1199
      * @author dp <[email protected]>
1200 1200
      *
Please login to merge, or discard this patch.
Source/Ice/Filter/Date/Format.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param array $data
18 18
      * @param $name
19 19
      * @param  mixed $filterOptions
20
-     * @return mixed
20
+     * @return null|string
21 21
      * @throws Filter_Invalid
22 22
      * @author anonymous <email>
23 23
      *
Please login to merge, or discard this patch.
Source/Ice/Helper/Console.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,9 +119,9 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * Return interactive output for define variable from input
121 121
      *
122
-     * @param  $class
123
-     * @param  $param
124
-     * @param $desc
122
+     * @param  string $class
123
+     * @param  string $param
124
+     * @param string $desc
125 125
      * @param  $data
126 126
      * @return string
127 127
      * @author dp <[email protected]>
@@ -237,6 +237,9 @@  discard block
 block discarded – undo
237 237
         return Console::run(Console::getCommand('ssh') . ' -p ' . $port . ' -i ' . $keyPath . ' ' . $user . '@' . $host . ' ' . escapeshellarg($commandString));
238 238
     }
239 239
 
240
+    /**
241
+     * @param string $string
242
+     */
240 243
     public static function getCommand($string)
241 244
     {
242 245
         return file_exists('/usr/bin/' . $string) ? '/usr/bin/' . $string : '/usr/local/bin/' . $string;
Please login to merge, or discard this patch.
Source/Ice/Helper/Date.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,6 +137,10 @@  discard block
 block discarded – undo
137 137
         return Date::strftime('%B', $time, $locale);
138 138
     }
139 139
 
140
+    /**
141
+     * @param string $format
142
+     * @param string $locale
143
+     */
140 144
     private static function strftime($format, $time, $locale)
141 145
     {
142 146
         $defaultLocale = setlocale(LC_TIME, 0);
@@ -162,7 +166,7 @@  discard block
 block discarded – undo
162 166
     }
163 167
 
164 168
     /**
165
-     * @param $checkTime - Checked time in seconds
169
+     * @param integer $checkTime - Checked time in seconds
166 170
      * @param $ttl - Time to live in seconds
167 171
      * @param $onTime - Check on timestamp in seconds
168 172
      * @return bool
Please login to merge, or discard this patch.
Source/Ice/Helper/File.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * Save data into file
33 33
      *
34
-     * @param  $path
34
+     * @param  string|null $path
35 35
      * @param  $data
36 36
      * @param  bool $phpData
37 37
      * @param  int $file_put_contents_flag
@@ -95,10 +95,10 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Rename/move file
97 97
      *
98
-     * @param $from
99
-     * @param $to
98
+     * @param null|string $from
99
+     * @param null|string $to
100 100
      * @param bool $isRequire
101
-     * @return mixed
101
+     * @return boolean
102 102
      * @throws Error
103 103
      * @author dp <[email protected]>
104 104
      *
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
      * @param $to
132 132
      *
133 133
      * @param bool $isRequire
134
-     * @return mixed
134
+     * @return string
135 135
      * @throws Error
136 136
      * @author dp <[email protected]>
137 137
      *
Please login to merge, or discard this patch.