public static function check()
 {
     static $instance;
     if (!$instance) {
         $instance = new self();
         return $instance->compare();
     }
     return false;
 }
Example #2
0
 /**
  * @param Schema $fromSchema
  * @param Schema $toSchema
  * @return SchemaDiff
  */
 public static function compareSchemas(Schema $fromSchema, Schema $toSchema)
 {
     $c = new self();
     return $c->compare($fromSchema, $toSchema);
 }