1. Wez Furlong
  2. ASCIIToSVG

Commits

Devon O'Dell  committed 0dff1b9

Fix syntax errors around calling static dynamic methods.

  • Participants
  • Parent commits a907673
  • Branches default

Comments (0)

Files changed (2)

File ASCIIToSVG.php

View file
        * Should return exactly what was given to the $storCacheFn when it was
        * last called, or null if nothing can be loaded.
        */
-      self::$objects = self::$loadCacheFn();
+      $fn = self::$loadCacheFn;
+      self::$objects = $fn();
       return;
     } else {
       if (is_readable($cacheFile)) {
        *   ),
        * );
        */
-      $objs = self::$loadObjsFn();
+      $fn = self::$loadObjsFn;
+      $objs = $fn();
+
       $i = 0;
       foreach ($objs as $obj) {
         foreach ($obj['paths'] as $path) {
     }
 
     if (is_callable(self::$storCacheFn)) {
-      self::$storCacheFn(self::$objects);
+      $fn = self::$storCacheFn;
+      $fn(self::$objects);
     } else {
       file_put_contents($cacheFile, serialize(self::$objects));
     }

File a2s52.php

View file
        * Should return exactly what was given to the $storCacheFn when it was
        * last called, or null if nothing can be loaded.
        */
-      self::$objects = self::$loadCacheFn();
+      $fn = self::$loadCacheFn;
+      self::$objects = $fn();
       return;
     } else {
       if (is_readable($cacheFile)) {
        *   ),
        * );
        */
-      $objs = self::$loadObjsFn();
+      $fn = self::$loadObjsFn;
+      $objs = $fn();
+
       $i = 0;
       foreach ($objs as $obj) {
         foreach ($obj['paths'] as $path) {
     }
 
     if (is_callable(self::$storCacheFn)) {
-      self::$storCacheFn(self::$objects);
+      $fn = self::$storCacheFn;
+      $fn(self::$objects);
     } else {
       file_put_contents($cacheFile, serialize(self::$objects));
     }
            * corners in tact, still.
            */
           $this->clearObject($line);
-          $this->dumpGrid();
           $this->svgObjects->addObject($line);
         }
       }