33
44use  PHP_Parallel_Lint \PhpParallelLint \Contracts \SyntaxErrorCallback ;
55use  PHP_Parallel_Lint \PhpParallelLint \Errors \SyntaxError ;
6- use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \NotExistsClassException ;
7- use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \NotExistsPathException ;
8- use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \NotImplementCallbackException ;
6+ use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \ClassNotFoundException ;
7+ use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \PathNotFoundException ;
8+ use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \CallbackNotImplementedException ;
99use  PHP_Parallel_Lint \PhpParallelLint \Exceptions \ParallelLintException ;
1010use  PHP_Parallel_Lint \PhpParallelLint \Iterators \RecursiveDirectoryFilterIterator ;
1111use  PHP_Parallel_Lint \PhpParallelLint \Outputs \CheckstyleOutput ;
@@ -146,7 +146,7 @@ protected function gitBlame(Result $result, Settings $settings)
146146     * @param array $extensions 
147147     * @param array $excluded 
148148     * @return array 
149-      * @throws NotExistsPathException  
149+      * @throws PathNotFoundException  
150150     */ 
151151    protected  function  getFilesFromPaths (array  $ pathsarray  $ extensionsarray  $ excludedarray ())
152152    {
@@ -175,7 +175,7 @@ protected function getFilesFromPaths(array $paths, array $extensions, array $exc
175175                    $ filesstring ) $ directoryFile
176176                }
177177            } else  {
178-                 throw  new  NotExistsPathException ($ path
178+                 throw  new  PathNotFoundException ($ path
179179            }
180180        }
181181
@@ -192,20 +192,20 @@ protected function createSyntaxErrorCallback(Settings $settings)
192192
193193        $ fullFilePathrealpath ($ settingssyntaxErrorCallbackFile );
194194        if  ($ fullFilePathfalse ) {
195-             throw  new  NotExistsPathException ($ settingssyntaxErrorCallbackFile );
195+             throw  new  PathNotFoundException ($ settingssyntaxErrorCallbackFile );
196196        }
197197
198198        require_once  $ fullFilePath
199199
200200        $ expectedClassNamebasename ($ fullFilePath'.php ' );
201201        if  (!class_exists ($ expectedClassName
202-             throw  new  NotExistsClassException ($ expectedClassName$ settingssyntaxErrorCallbackFile );
202+             throw  new  ClassNotFoundException ($ expectedClassName$ settingssyntaxErrorCallbackFile );
203203        }
204204
205205        $ callbackInstancenew  $ expectedClassName
206206
207207        if  (!($ callbackInstanceinstanceof  SyntaxErrorCallback)) {
208-             throw  new  NotImplementCallbackException ($ expectedClassName
208+             throw  new  CallbackNotImplementedException ($ expectedClassName
209209        }
210210
211211        return  $ callbackInstance
0 commit comments