Completed
Push — master ( 197347...f6fd8e )
by mehdi
02:04
created
src/Datium.php 1 patch
Doc Comments   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
      * Get current datetime
194 194
      *
195 195
      * @since  Aug 17 2015
196
-     * @return object
196
+     * @return Datium
197 197
      */
198 198
     public static function now()
199 199
     {
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * @param integer $minute minute number
233 233
      * @param integer $second second number
234 234
      *
235
-     * @return object
235
+     * @return Datium
236 236
      */
237 237
     public static function create(
238 238
         $year = 2000,
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      *
273 273
      * @param  timestamp $timestamp Input timestamp value
274 274
      *
275
-     * @return object
275
+     * @return Datium
276 276
      */
277 277
     public static function createTimestamp($timestamp)
278 278
     {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param object $date_start Start of the DateTime
301 301
      * @param object $date_end   End of the DateTime
302 302
      *
303
-     * @return object
303
+     * @return Datium
304 304
      */
305 305
     public static function between($date_start, $date_end)
306 306
     {
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
      *
347 347
      * @param object $calendar Assigned calendar to when calendar should start.
348 348
      *
349
-     * @return object
349
+     * @return Datium
350 350
      */
351 351
     public function to($calendar)
352 352
     {
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      *
403 403
      * @param string $value How much date should be added to current date
404 404
      *
405
-     * @return object
405
+     * @return Datium
406 406
      */
407 407
     public function add($value)
408 408
     {
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
      *
445 445
      * @param string $value How much date should increase from current date
446 446
      *
447
-     * @return obejct
447
+     * @return Datium
448 448
      */
449 449
     public function sub($value)
450 450
     {
@@ -484,9 +484,8 @@  discard block
 block discarded – undo
484 484
     /**
485 485
      * Check if current year is leap or not
486 486
      *
487
-     * @param string $type Name of the calendar to caculate leap year
488 487
      *
489
-     * @return boolean
488
+     * @return Leap
490 489
      */
491 490
     public function leap()
492 491
     {
@@ -502,7 +501,7 @@  discard block
 block discarded – undo
502 501
      *
503 502
      * @since Aug, 22 2015
504 503
      *
505
-     * @return integer
504
+     * @return DayOf
506 505
      */
507 506
     public function dayOf()
508 507
     {
@@ -549,7 +548,7 @@  discard block
 block discarded – undo
549 548
      *
550 549
      * @param string $language language short name fa, en, ar ...
551 550
      *
552
-     * @return object
551
+     * @return Datium
553 552
      */
554 553
     public function lang($language = 'fa')
555 554
     {
@@ -569,7 +568,7 @@  discard block
 block discarded – undo
569 568
     /**
570 569
      * Return object as timestamp
571 570
      *
572
-     * @return timestamp
571
+     * @return integer
573 572
      */
574 573
     public function timestamp()
575 574
     {
Please login to merge, or discard this patch.
src/SimpleDiff.php 2 patches
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,8 +34,9 @@  discard block
 block discarded – undo
34 34
     /**
35 35
     * SimpleDiff Class constructure
36 36
     *
37
-    * @param DateTime $time_difference The time to calculate with now
38
-    * @param string $lang Language
37
+    * @param DateTime $difference The time to calculate with now
38
+    * @param \DateTime $start
39
+    * @param \DateTime $end
39 40
     */
40 41
     public function __construct($start, $end, $difference )
41 42
     {
@@ -65,8 +66,8 @@  discard block
 block discarded – undo
65 66
     /**
66 67
     * Read ago config file
67 68
     *
68
-    * @param integer $date date index in ago config file
69 69
     * @param string $type duration type on ago config file
70
+    * @param integer $value
70 71
     */
71 72
     public function read( $value, $type )
72 73
     {
Please login to merge, or discard this patch.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
     private $blockList;
33 33
 
34 34
     /**
35
-    * SimpleDiff Class constructure
36
-    *
37
-    * @param DateTime $time_difference The time to calculate with now
38
-    * @param string $lang Language
39
-    */
35
+     * SimpleDiff Class constructure
36
+     *
37
+     * @param DateTime $time_difference The time to calculate with now
38
+     * @param string $lang Language
39
+     */
40 40
     public function __construct($start, $end, $difference )
41 41
     {
42 42
 
@@ -51,10 +51,10 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    * Return difference period as an object
55
-    *
56
-    * @return object
57
-    */
54
+     * Return difference period as an object
55
+     *
56
+     * @return object
57
+     */
58 58
     public function all()
59 59
     {
60 60
 
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-    * Read ago config file
67
-    *
68
-    * @param integer $date date index in ago config file
69
-    * @param string $type duration type on ago config file
70
-    */
66
+     * Read ago config file
67
+     *
68
+     * @param integer $date date index in ago config file
69
+     * @param string $type duration type on ago config file
70
+     */
71 71
     public function read( $value, $type )
72 72
     {
73 73
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
       if( array_key_exists( $value, $config[ $type ] ) ) {
99 99
 
100 100
         $str = Lang::get( $this->language, $config[ $type ][ $value ] )
101
-               . $time;
101
+                . $time;
102 102
 
103 103
         return $str;
104 104
 
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-    * Show priority of duration
118
-    *
119
-    * @param integer $date date index in ago config file
120
-    * @param string $type duration type on ago config file
121
-    */
117
+     * Show priority of duration
118
+     *
119
+     * @param integer $date date index in ago config file
120
+     * @param string $type duration type on ago config file
121
+     */
122 122
     public function priority( $date, $type )
123 123
     {
124 124
 
@@ -144,10 +144,10 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-    * Return fainal SimpleDiff result
148
-    *
149
-    * @return string
150
-    */
147
+     * Return fainal SimpleDiff result
148
+     *
149
+     * @return string
150
+     */
151 151
     public function get()
152 152
     {
153 153
 
Please login to merge, or discard this patch.