Skip to content

Commit 66dbb07

Browse files
committed
Refactor
1 parent 40875f2 commit 66dbb07

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/Helper.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
<?php
2-
/**
3-
* Created by PhpStorm.
4-
* User: jxlwqq
5-
* Date: 2018/9/7
6-
* Time: 14:07
7-
*/
82

93
namespace Jxlwqq\IdValidator;
104

11-
5+
/**
6+
* Trait Helper
7+
*/
128
trait Helper
139
{
1410
/**
@@ -88,7 +84,7 @@ private function _getAddressInfo($addressCode)
8884
* @param string $birthdayCode 出生日期码
8985
* @return string
9086
*/
91-
public function _getConstellation($birthdayCode)
87+
private function _getConstellation($birthdayCode)
9288
{
9389
$time = strtotime($birthdayCode);
9490
$year = substr($birthdayCode, 0, 4);
@@ -123,7 +119,7 @@ public function _getConstellation($birthdayCode)
123119
* @param string $birthdayCode 出生日期码
124120
* @return mixed
125121
*/
126-
public function _getChineseZodiac($birthdayCode)
122+
private function _getChineseZodiac($birthdayCode)
127123
{
128124
$start = 1900; // 子鼠
129125
$end = substr($birthdayCode, 0, 4);

0 commit comments

Comments
 (0)