diff --git a/app/Libraries/MyCrawler/MyCrawlerLibrary.php b/app/Libraries/MyCrawler/MyCrawlerLibrary.php index 72f016b..aaecd9a 100644 --- a/app/Libraries/MyCrawler/MyCrawlerLibrary.php +++ b/app/Libraries/MyCrawler/MyCrawlerLibrary.php @@ -48,7 +48,7 @@ abstract class MyCrawlerLibrary extends CommonLibrary $this->getMyStorage()->setOriginContent($content); $this->getMyStorage()->setOriginType($mediaType); $this->getMyStorage()->setOriginSequence($file_sequence); - $results[] = $this->getMyStorage()->save(); + $myStorageLibrarys[] = $this->getMyStorage()->save(); $file_sequence++; log_message("notice", __FUNCTION__ . " OriginType->{$mediaType} 작업 완료"); } catch (\Exception $e) { @@ -60,6 +60,6 @@ abstract class MyCrawlerLibrary extends CommonLibrary )); } } - return $results; + return $myStorageLibrarys; } } diff --git a/app/Libraries/MyCrawler/YamapLibrary.php b/app/Libraries/MyCrawler/YamapLibrary.php index 19dfcc3..74a803d 100644 --- a/app/Libraries/MyCrawler/YamapLibrary.php +++ b/app/Libraries/MyCrawler/YamapLibrary.php @@ -6,7 +6,6 @@ use App\Libraries\MySocket\WebLibrary as MySocketLibrary; use App\Libraries\MyStorage\Mangboard\FileLibrary as MyStorageLibrary; use App\Models\Mangboard\UserModel; use App\Models\Mangboard\BoardModel; -use App\Entities\Mangboard\BoardEntity; use App\Entities\Mangboard\UserEntity; use Symfony\Component\DomCrawler\Crawler; diff --git a/app/Models/CommonModel.php b/app/Models/CommonModel.php index 0675b42..52238e6 100644 --- a/app/Models/CommonModel.php +++ b/app/Models/CommonModel.php @@ -64,7 +64,7 @@ abstract class CommonModel extends Model { return $this->_action = $action; } - final public function getFields(string $key = "", array $fields): array + final public function getFields(string $key = "", array $fields = []): array { $allowedFields = array_filter( $this->allowedFields,