original_string: public static function guess($migration)
      {
          foreach (self::CREATE_PATTERNS as $pattern) {
              if (preg_match($pattern, $migration, $matches)) {
                  return [$matches[1], $create = true];
              }
          }
  
          foreach (self::CHANGE_PATTERNS as $pattern) {
              if (preg_match($pattern, $migration, $matches)) {
                  return [$matches[2], $create = false];
              }
          }
      }
code: public static function guess($migration)
      {
          foreach (self::CREATE_PATTERNS as $pattern) {
              if (preg_match($pattern, $migration, $matches)) {
                  return [$matches[1], $create = true];
              }
          }
  
          foreach (self::CHANGE_PATTERNS as $pattern) {
              if (preg_match($pattern, $migration, $matches)) {
                  return [$matches[2], $create = false];
              }
          }
      }
code_tokens: public static function guess ( $ migration ) { foreach ( self :: CREATE_PATTERNS as $ pattern ) { if ( preg_match ( $ pattern , $ migration , $ matches ) ) { return [ $ matches [ 1 ] , $ create = true ] ; } } foreach ( self :: CHANGE_PATTERNS as $ pattern ) { if ( preg_match ( $ pattern , $ migration , $ matches ) ) { return [ $ matches [ 2 ] , $ create = false ] ; } } }
docstring: Attempt to guess the table name and "creation" status of the given migration.
  
  @param  string  $migration
  @return array
docstring_tokens: Attempt to guess the table name and creation status of the given migration .