]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 06:19:47 +0000 (07:19 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 06:19:47 +0000 (07:19 +0100)
- old array() replaced by "new" []
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/package/assembler/class_PackageAssembler.php
application/hub/classes/source/urls/class_CrawlerUploadedListUrlSource.php
core

index eb7f3bf62605777860bdb06ff75ca3a503eb01d4..a6e776c6fc59d570d371f4865925e487f2ec8789 100644 (file)
@@ -130,6 +130,7 @@ class PackageAssembler extends BaseHubSystem implements Assembler, Registerable,
                $assemblerInstance->setStackInstance($stackInstance);
 
                // Return the prepared instance
+               //* DEBUG-DIE: */ die(sprintf('[%s:%d]: assemblerInstance=%s', __METHOD__, __LINE__, print_r($assemblerInstance, TRUE)));
                return $assemblerInstance;
        }
 
index ba2d141bf0a3d624405f54e7044e8bf393f92a7b..e1aab13fae9d0f743e14ff2f0ade02ad18058b7a 100644 (file)
@@ -231,11 +231,11 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R
                 * forget to expand this array as well when you want to add another
                 * column to the CSV file.
                 */
-               $csvArray = array(
+               $csvArray = [
                        self::CRAWL_JOB_ARRAY_START_URL      => $csvData[0],
                        self::CRAWL_JOB_ARRAY_DEPTH          => $csvData[1],
                        self::CRAWL_JOB_ARRAY_EXTERNAL_DEPTH => $csvData[2]
-               );
+               ];
 
                // Then add more data to it
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: csvArray()=' . count($csvArray) . ' - BEFORE!');
@@ -285,10 +285,8 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R
         * @throws      NullPointerException    If lastCsvFileInstance is not set
         */
        private function addCsvFile () {
-               // Trace message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: CALLED!');
-
                // Is the instance set?
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: CALLED!');
                if (is_null($this->lastCsvFileInstance)) {
                        // This should not happen
                        throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
@@ -297,10 +295,8 @@ class CrawlerUploadedListUrlSource extends BaseUrlSource implements UrlSource, R
                        return;
                }
 
-               // Debug message
-               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: this->lastCsvFileInstance=' . $this->lastCsvFileInstance);
-
                // Stack this file
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CRAWLER-UPLOADED-LIST-URL-SOURCE: this->lastCsvFileInstance=' . $this->lastCsvFileInstance);
                $this->getStackSourceInstance()->pushNamed(self::STACK_NAME_CSV_FILE, $this->lastCsvFileInstance);
 
                // ... and mark it as "imported"
diff --git a/core b/core
index a535464e99d3baa2b50830bdf57074db2f14340a..90f442d88f7876a27ff75452e0ed1708b7dbc198 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit a535464e99d3baa2b50830bdf57074db2f14340a
+Subproject commit 90f442d88f7876a27ff75452e0ed1708b7dbc198