original_string: public function scanCore()
      {
          $coreShells = $this->scanDir(
              dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR,
              'Cake\Shell\\',
              '',
              ['command_list']
          );
          $coreCommands = $this->scanDir(
              dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR,
              'Cake\Command\\',
              '',
              ['command_list']
          );
  
          return array_merge($coreShells, $coreCommands);
      }
code: public function scanCore()
      {
          $coreShells = $this->scanDir(
              dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR,
              'Cake\Shell\\',
              '',
              ['command_list']
          );
          $coreCommands = $this->scanDir(
              dirname(__DIR__) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR,
              'Cake\Command\\',
              '',
              ['command_list']
          );
  
          return array_merge($coreShells, $coreCommands);
      }
code_tokens: public function scanCore ( ) { $ coreShells = $ this -> scanDir ( dirname ( __DIR__ ) . DIRECTORY_SEPARATOR . 'Shell' . DIRECTORY_SEPARATOR , 'Cake\Shell\\' , '' , [ 'command_list' ] ) ; $ coreCommands = $ this -> scanDir ( dirname ( __DIR__ ) . DIRECTORY_SEPARATOR . 'Command' . DIRECTORY_SEPARATOR , 'Cake\Command\\' , '' , [ 'command_list' ] ) ; return array_merge ( $ coreShells , $ coreCommands ) ; }
docstring: Scan CakePHP internals for shells & commands.
  
  @return array A list of command metadata.
docstring_tokens: Scan CakePHP internals for shells & commands .