Completed
Push — master ( 13abb0...106f43 )
by mehdi
02:24
created
src/Events/Events.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -56,6 +56,10 @@
 block discarded – undo
56 56
 	 *
57 57
 	 *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
58 58
 	 */
59
+
60
+	/**
61
+	 * @param string $path
62
+	 */
59 63
 	private function fetch( $path ) {
60 64
 
61 65
 		$this->events = include( $path );
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php namespace Datium;
2 2
 
3 3
 use Datium\Tools\Convert;
4
-use Datium\Tools\DayOf;
5 4
 use DateTime;
6 5
 use DateInterval;
7 6
 use DatePeriod;
Please login to merge, or discard this patch.
src/Leap.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
   /**
101 101
    * check the ghamari year is leap or not
102 102
    * @since Oct, 24 2015
103
-   * @return boolean
103
+   * @return integer|null
104 104
    */
105 105
   public function ghamariLeapYear() {
106 106
 
Please login to merge, or discard this patch.
src/Translate.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 
21 21
   protected $english_number = array( '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' );
22 22
 
23
+  /**
24
+   * @param \DateTime $date_time
25
+   */
23 26
   public function __construct( $date_time, $calendar, $format, $gregorian_DayofWeek ){
24 27
 
25 28
     $this->translate = include( 'lang/fa/general.php' );
Please login to merge, or discard this patch.
vendor/composer/ClassLoader.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -341,6 +341,10 @@
 block discarded – undo
341 341
         return $file;
342 342
     }
343 343
 
344
+    /**
345
+     * @param string $class
346
+     * @param string $ext
347
+     */
344 348
     private function findFileWithExtension($class, $ext)
345 349
     {
346 350
         // PSR-4 lookup
Please login to merge, or discard this patch.
src/CalendarSettings/Gregorian.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
- use Datium\Datium as Datium;
4
-
5 3
  return array (
6 4
 
7 5
  /************************************************************
Please login to merge, or discard this patch.
src/Datium.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
   /**
136 136
    * Get current datetime
137 137
    * @since Aug 17 2015
138
-   * @return object
138
+   * @return Datium
139 139
    */
140 140
   public static function now() {
141 141
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
    * @param $hour integer
154 154
    * @param $minute integer
155 155
    * @param $second integer
156
-   * @return object
156
+   * @return Datium
157 157
    */
158 158
   public static function create( $year = 2000, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0 ) {
159 159
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
   /**
216 216
    * Add new date value to current date
217 217
    * @param $value string
218
-   * @return object
218
+   * @return Datium
219 219
    */
220 220
   public function add( $value ) {
221 221
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
   /**
233 233
    * Sub date from current date
234 234
    * @param $value
235
-   * @return obejct
235
+   * @return Datium
236 236
    */
237 237
   public function sub( $value ) {
238 238
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
   /**
250 250
    * Check if current year is leap or not
251
-   * @return boolean
251
+   * @return Leap
252 252
    */
253 253
   public function leap( $type = 'gr') {
254 254
 
@@ -288,6 +288,10 @@  discard block
 block discarded – undo
288 288
 
289 289
   }
290 290
 
291
+  /**
292
+   * @param string $calendar
293
+   * @param string $format
294
+   */
291 295
   public function translate( $calendar, $format ) {
292 296
 
293 297
     $this->date_time = new Translate( $this->date_time, $calendar, $format, $this->gregorian_DayofWeek );
Please login to merge, or discard this patch.
src/Convert.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@  discard block
 block discarded – undo
63 63
    *
64 64
    *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
65 65
    */
66
+
67
+  /**
68
+   * @param \DateTime $date_time
69
+   */
66 70
   public function __construct( $date_time = NULL ) {
67 71
 
68 72
     if ( $date_time !== NULL ) {
@@ -96,6 +100,7 @@  discard block
 block discarded – undo
96 100
 /**
97 101
    *convert shamsi year to gregorian year
98 102
    * @since Oct, 16 2015
103
+   * @param \DateTime $date_time
99 104
    * @return object
100 105
    */
101 106
 public function shamsiToGregorian( $date_time ) {
@@ -296,6 +301,7 @@  discard block
 block discarded – undo
296 301
   /**
297 302
     * convert ghamari year to gregorian year
298 303
     * @since Oct, 17 2015
304
+    * @param \DateTime $date_time
299 305
     * @return object
300 306
     */
301 307
   public function ghamariToGregorian( $date_time ) {
Please login to merge, or discard this patch.