original_string: static private function canSave( $pathString, array $allowedLocations )
      {
          foreach ( $allowedLocations as $location )
          {
              if ( $location == 0 || strpos( $pathString, '/' . $location . '/' ) !== false )
                  return true;
          }
  
          return false;
      }
code: static private function canSave( $pathString, array $allowedLocations )
      {
          foreach ( $allowedLocations as $location )
          {
              if ( $location == 0 || strpos( $pathString, '/' . $location . '/' ) !== false )
                  return true;
          }
  
          return false;
      }
code_tokens: static private function canSave ( $ pathString , array $ allowedLocations ) { foreach ( $ allowedLocations as $ location ) { if ( $ location == 0 || strpos ( $ pathString , '/' . $ location . '/' ) !== false ) return true ; } return false ; }
docstring: Checks if tags can be saved below tag with provided path string,
  taking into account allowed locations for tag placement
  
  @static
  
  @param string $pathString
  @param array $allowedLocations
  
  @return bool
docstring_tokens: Checks if tags can be saved below tag with provided path string taking into account allowed locations for tag placement