original_string: public function shortPath($file)
      {
          $shortPath = str_replace(ROOT, null, $file);
          $shortPath = str_replace('..' . DIRECTORY_SEPARATOR, '', $shortPath);
          $shortPath = str_replace(DIRECTORY_SEPARATOR, '/', $shortPath);
  
          return str_replace('//', DIRECTORY_SEPARATOR, $shortPath);
      }
code: public function shortPath($file)
      {
          $shortPath = str_replace(ROOT, null, $file);
          $shortPath = str_replace('..' . DIRECTORY_SEPARATOR, '', $shortPath);
          $shortPath = str_replace(DIRECTORY_SEPARATOR, '/', $shortPath);
  
          return str_replace('//', DIRECTORY_SEPARATOR, $shortPath);
      }
code_tokens: public function shortPath ( $ file ) { $ shortPath = str_replace ( ROOT , null , $ file ) ; $ shortPath = str_replace ( '..' . DIRECTORY_SEPARATOR , '' , $ shortPath ) ; $ shortPath = str_replace ( DIRECTORY_SEPARATOR , '/' , $ shortPath ) ; return str_replace ( '//' , DIRECTORY_SEPARATOR , $ shortPath ) ; }
docstring: Makes absolute file path easier to read
  
  @param string $file Absolute file path
  @return string short path
  @link https://book.cakephp.org/3.0/en/console-and-shells.html#Shell::shortPath
docstring_tokens: Makes absolute file path easier to read