Completed
Pull Request — master (#23)
by Shestakov
15:36
created
Source/Ice/Core/Logger.php 2 patches
Doc Comments   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -390,6 +390,10 @@  discard block
 block discarded – undo
390 390
         self::$log = [];
391 391
     }
392 392
 
393
+    /**
394
+     * @param string $value
395
+     * @param string $label
396
+     */
393 397
     public static function log($value, $label = null, $type = 'LOG', $options = [])
394 398
     {
395 399
         $value = str_replace(["\n", "\t"], ' ', $value);
@@ -522,6 +526,9 @@  discard block
 block discarded – undo
522 526
         }
523 527
     }
524 528
 
529
+    /**
530
+     * @param string $type
531
+     */
525 532
     private function getFbType($type)
526 533
     {
527 534
         switch ($type) {
@@ -559,8 +566,8 @@  discard block
 block discarded – undo
559 566
      * Warning
560 567
      *
561 568
      * @param  $message
562
-     * @param  $file
563
-     * @param  $line
569
+     * @param  string $file
570
+     * @param  integer $line
564 571
      * @param  \Exception $e
565 572
      * @param  null $errcontext
566 573
      * @param  int $errno
@@ -580,8 +587,8 @@  discard block
 block discarded – undo
580 587
      * Fatal - throw ice exception
581 588
      *
582 589
      * @param  $message
583
-     * @param  $file
584
-     * @param  $line
590
+     * @param  string $file
591
+     * @param  integer $line
585 592
      * @param  \Exception $e
586 593
      * @param  null $errcontext
587 594
      * @param  int $errno
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 namespace Ice\Core;
11 11
 
12 12
 use Ice\Core;
13
-use Ice\Helper\String;
14 13
 
15 14
 /**
16 15
  * Class DataSource
Please login to merge, or discard this patch.
Source/Ice/Core/Model/Account/Password.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -172,6 +172,9 @@
 block discarded – undo
172 172
             ->send();
173 173
     }
174 174
 
175
+    /**
176
+     * @param string $expired
177
+     */
175 178
     public function prolongate($expired)
176 179
     {
177 180
         // TODO: Implement prolongate() method.
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -1,17 +1,12 @@
 block discarded – undo
1 1
 <?php namespace Ice\Core;
2 2
 
3
-use Ice\Core\Config;
4 3
 use Ice\Core\DataSource;
5
-use Ice\Core\Debuger;
6 4
 use Ice\Core\Model;
7
-use Ice\Core\Model\Security_User;
8 5
 use Ice\Core\Model_Account;
9 6
 use Ice\Core\Request;
10 7
 use Ice\Core\Router;
11 8
 use Ice\Core\Security;
12
-use Ice\Exception\Security_Account_Login;
13 9
 use Ice\Exception\Security_Account_Verify;
14
-use Ice\Helper\Date;
15 10
 use Ice\Helper\String;
16 11
 use Ice\Message\Mail;
17 12
 use Ice\Model\Account;
Please login to merge, or discard this patch.
Source/Ice/Core/Route.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      * @param  array $data
57 57
      * @param null $layout
58 58
      * @param string $templateType
59
-     * @return mixed
59
+     * @return string
60 60
      * @throws \Exception
61 61
      * @author dp <[email protected]>
62 62
      *
Please login to merge, or discard this patch.
Source/Ice/Core/Validator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 use Ice\Core;
13 13
 use Ice\Helper\Validator as Helper_Validator;
14
-use Ice\Widget\Model_Form;
15 14
 
16 15
 /**
17 16
  * Class Validator
Please login to merge, or discard this patch.
Source/Ice/Core/WidgetComponent.php 1 patch
Doc Comments   +11 added lines, -2 removed lines patch added patch discarded remove patch
@@ -193,6 +193,9 @@  discard block
 block discarded – undo
193 193
         return $this;
194 194
     }
195 195
 
196
+    /**
197
+     * @return string
198
+     */
196 199
     public function getId($postfix = '')
197 200
     {
198 201
         if ($postfix) {
@@ -244,6 +247,9 @@  discard block
 block discarded – undo
244 247
         $this->offset = $offset;
245 248
     }
246 249
 
250
+    /**
251
+     * @param integer $offset
252
+     */
247 253
     public function cloneComponent($offset)
248 254
     {
249 255
         $widgetComponent = clone $this;
@@ -399,7 +405,7 @@  discard block
 block discarded – undo
399 405
 //    }
400 406
 
401 407
     /**
402
-     * @param $name
408
+     * @param string $name
403 409
      * @param $value
404 410
      */
405 411
     public function setOption($name, $value)
@@ -409,7 +415,7 @@  discard block
 block discarded – undo
409 415
 
410 416
     /**
411 417
      * @param string $classes
412
-     * @return null
418
+     * @return string
413 419
      */
414 420
     public function getClassAttribute($classes = '')
415 421
     {
@@ -594,6 +600,9 @@  discard block
 block discarded – undo
594 600
         return $valueKey;
595 601
     }
596 602
 
603
+    /**
604
+     * @return string
605
+     */
597 606
     public function render(Render $render = null)
598 607
     {
599 608
         if ($render === null) {
Please login to merge, or discard this patch.
Source/Ice/DataProvider/Apc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      *
141 141
      * @param  $key
142 142
      * @param  int $step
143
-     * @return mixed new value
143
+     * @return integer new value
144 144
      *
145 145
      * @author dp <[email protected]>
146 146
      *
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      *
158 158
      * @param  $key
159 159
      * @param  int $step
160
-     * @return mixed new value
160
+     * @return integer new value
161 161
      *
162 162
      * @author dp <[email protected]>
163 163
      *
Please login to merge, or discard this patch.
Source/Ice/DataProvider/Cacher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
      * Connect to data provider
179 179
      *
180 180
      * @param  $connection
181
-     * @return boolean
181
+     * @return DataProvider
182 182
      *
183 183
      * @author dp <[email protected]>
184 184
      *
Please login to merge, or discard this patch.
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.