@@ -70,18 +70,18 @@ |
||
| 70 | 70 | $publishedDateFormat = 'Y-m-d'; |
| 71 | 71 | $publishedDate = DateTime::createFromFormat('Y-m-d|', $item['volumeInfo']['publishedDate']); |
| 72 | 72 | |
| 73 | - if($publishedDate == false){ |
|
| 73 | + if ($publishedDate == false) { |
|
| 74 | 74 | $publishedDateFormat = 'Y-m'; |
| 75 | 75 | $publishedDate = DateTime::createFromFormat('Y-m|', $item['volumeInfo']['publishedDate']); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - if($publishedDate == false){ |
|
| 78 | + if ($publishedDate == false) { |
|
| 79 | 79 | $publishedDateFormat = 'Y'; |
| 80 | 80 | $publishedDate = DateTime::createFromFormat('Y|', $item['volumeInfo']['publishedDate']); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | if ($publishedDate == false) { |
| 84 | - throw new \Exception('Was not hable to parse publishedDate: ' . $item['volumeInfo']['publishedDate']); |
|
| 84 | + throw new \Exception('Was not hable to parse publishedDate: '.$item['volumeInfo']['publishedDate']); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | } |