original_string: public static function getObjectWithKey(array $array, $key)
      {
          foreach ($array as $object) {
              if (is_array($object) && array_key_exists($key, $object)) {
                  return $object;
              }
          }
  
          return null;
      }
code: public static function getObjectWithKey(array $array, $key)
      {
          foreach ($array as $object) {
              if (is_array($object) && array_key_exists($key, $object)) {
                  return $object;
              }
          }
  
          return null;
      }
code_tokens: public static function getObjectWithKey ( array $ array , $ key ) { foreach ( $ array as $ object ) { if ( is_array ( $ object ) && array_key_exists ( $ key , $ object ) ) { return $ object ; } } return null ; }
docstring: Looks for an array inside input array by key and returns one if found
  
  @param array $array
  @param $key
  @param $value
  @return array
docstring_tokens: Looks for an array inside input array by key and returns one if found