original_string: private function parseLink()
      {
          $value = $this->RAW();
  
          if (!$value) {
              return false;
          }
  
          $output = false;
  
          if (preg_match(
              '/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/i',
              $value,
              $matches
          )) {
              foreach ($matches as $match) {
                  if (preg_match('/^[0-9]{6,12}$/', $match)) {
                      $output = [
                          'VideoID'      => $match,
                          'VideoService' => 'Vimeo',
                      ];
                  }
              }
          } elseif (preg_match('/https?:\/\/youtu\.be\/([a-z0-9\_\-]+)/i', $value, $matches)) {
              $output = [
                  'VideoID'      => $matches[1],
                  'VideoService' => 'YouTube',
              ];
          } elseif (preg_match('/youtu\.?be/i', $value)) {
              $query_string = [];
              parse_str(parse_url($value, PHP_URL_QUERY), $query_string);
              if (!empty($query_string['v'])) {
                  $output = [
                      'VideoID'      => $query_string['v'],
                      'VideoService' => 'YouTube',
                  ];
              }
          }
  
          return ($output) ? $output : false;
      }
code: private function parseLink()
      {
          $value = $this->RAW();
  
          if (!$value) {
              return false;
          }
  
          $output = false;
  
          if (preg_match(
              '/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/i',
              $value,
              $matches
          )) {
              foreach ($matches as $match) {
                  if (preg_match('/^[0-9]{6,12}$/', $match)) {
                      $output = [
                          'VideoID'      => $match,
                          'VideoService' => 'Vimeo',
                      ];
                  }
              }
          } elseif (preg_match('/https?:\/\/youtu\.be\/([a-z0-9\_\-]+)/i', $value, $matches)) {
              $output = [
                  'VideoID'      => $matches[1],
                  'VideoService' => 'YouTube',
              ];
          } elseif (preg_match('/youtu\.?be/i', $value)) {
              $query_string = [];
              parse_str(parse_url($value, PHP_URL_QUERY), $query_string);
              if (!empty($query_string['v'])) {
                  $output = [
                      'VideoID'      => $query_string['v'],
                      'VideoService' => 'YouTube',
                  ];
              }
          }
  
          return ($output) ? $output : false;
      }
code_tokens: private function parseLink ( ) { $ value = $ this -> RAW ( ) ; if ( ! $ value ) { return false ; } $ output = false ; if ( preg_match ( '/(https?:\/\/)?(www\.)?(player\.)?vimeo\.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/i' , $ value , $ matches ) ) { foreach ( $ matches as $ match ) { if ( preg_match ( '/^[0-9]{6,12}$/' , $ match ) ) { $ output = [ 'VideoID' => $ match , 'VideoService' => 'Vimeo' , ] ; } } } elseif ( preg_match ( '/https?:\/\/youtu\.be\/([a-z0-9\_\-]+)/i' , $ value , $ matches ) ) { $ output = [ 'VideoID' => $ matches [ 1 ] , 'VideoService' => 'YouTube' , ] ; } elseif ( preg_match ( '/youtu\.?be/i' , $ value ) ) { $ query_string = [ ] ; parse_str ( parse_url ( $ value , PHP_URL_QUERY ) , $ query_string ) ; if ( ! empty ( $ query_string [ 'v' ] ) ) { $ output = [ 'VideoID' => $ query_string [ 'v' ] , 'VideoService' => 'YouTube' , ] ; } } return ( $ output ) ? $ output : false ; }
docstring: Parse video link
  
  @param  Null
  @return Array|Null
docstring_tokens: Parse video link