original_string: public static function trimPath($path)
      {
          if (defined('APP') && strpos($path, APP) === 0) {
              return str_replace(APP, 'APP/', $path);
          }
          if (defined('CAKE_CORE_INCLUDE_PATH') && strpos($path, CAKE_CORE_INCLUDE_PATH) === 0) {
              return str_replace(CAKE_CORE_INCLUDE_PATH, 'CORE', $path);
          }
          if (defined('ROOT') && strpos($path, ROOT) === 0) {
              return str_replace(ROOT, 'ROOT', $path);
          }
  
          return $path;
      }
code: public static function trimPath($path)
      {
          if (defined('APP') && strpos($path, APP) === 0) {
              return str_replace(APP, 'APP/', $path);
          }
          if (defined('CAKE_CORE_INCLUDE_PATH') && strpos($path, CAKE_CORE_INCLUDE_PATH) === 0) {
              return str_replace(CAKE_CORE_INCLUDE_PATH, 'CORE', $path);
          }
          if (defined('ROOT') && strpos($path, ROOT) === 0) {
              return str_replace(ROOT, 'ROOT', $path);
          }
  
          return $path;
      }
code_tokens: public static function trimPath ( $ path ) { if ( defined ( 'APP' ) && strpos ( $ path , APP ) === 0 ) { return str_replace ( APP , 'APP/' , $ path ) ; } if ( defined ( 'CAKE_CORE_INCLUDE_PATH' ) && strpos ( $ path , CAKE_CORE_INCLUDE_PATH ) === 0 ) { return str_replace ( CAKE_CORE_INCLUDE_PATH , 'CORE' , $ path ) ; } if ( defined ( 'ROOT' ) && strpos ( $ path , ROOT ) === 0 ) { return str_replace ( ROOT , 'ROOT' , $ path ) ; } return $ path ; }
docstring: Shortens file paths by replacing the application base path with 'APP', and the CakePHP core
  path with 'CORE'.
  
  @param string $path Path to shorten.
  @return string Normalized path
docstring_tokens: Shortens file paths by replacing the application base path with APP and the CakePHP core path with CORE .