File tree Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Expand file tree Collapse file tree 6 files changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ public function rules(): array
8181                'string ' ,
8282                'filled ' ,
8383                Rule::unique ('books ' )
84-                     ->where (function  ($ query
85-                         return   $ querywhere ('isbn ' , $ this isbn );
84+                     ->where (function  (\ Illuminate \ Database \ Query \ Builder   $ query
85+                         $ querywhere ('isbn ' , $ this isbn );
8686                    }),
8787            ],
8888            'publisher_id '  => 'integer|nullable ' ,
Original file line number Diff line number Diff line change @@ -88,9 +88,10 @@ public function rules(): array
8888                'min:3 ' ,
8989                'max:255 ' ,
9090                Rule::unique ('publishers ' )
91-                     ->where (function  ($ query
92-                         return  $ querywhere ('email ' , $ this email )
93-                             && $ querywhere ('website ' , $ this website );
91+                     ->where (function  (\Illuminate \Database \Query \Builder   $ query
92+                         $ query
93+                             ->where ('email ' , $ this email )
94+                             ->where ('website ' , $ this website );
9495                    }),
9596            ],
9697            'email '  => 'required|string|email|filled ' ,
Original file line number Diff line number Diff line change @@ -82,8 +82,8 @@ public function rules(): array
8282                'filled ' ,
8383                Rule::unique ('books ' )
8484                    ->ignore ($ this books )
85-                     ->where (function  ($ query
86-                         return   $ querywhere ('isbn ' , $ this isbn );
85+                     ->where (function  (\ Illuminate \ Database \ Query \ Builder   $ query
86+                         $ querywhere ('isbn ' , $ this isbn );
8787                    }),
8888            ],
8989            'publisher_id '  => 'integer|nullable ' ,
Original file line number Diff line number Diff line change @@ -88,9 +88,10 @@ public function rules(): array
8888                'max:255 ' ,
8989                Rule::unique ('publishers ' )
9090                    ->ignore ($ this publisher )
91-                     ->where (function  ($ query
92-                         return  $ querywhere ('email ' , $ this email )
93-                             && $ querywhere ('website ' , $ this website );
91+                     ->where (function  (\Illuminate \Database \Query \Builder   $ query
92+                         $ query
93+                             ->where ('email ' , $ this email )
94+                             ->where ('website ' , $ this website );
9495                    }),
9596            ],
9697            'email '  => 'sometimes|required|string|email|filled ' ,
Original file line number Diff line number Diff line change 88use  App \Repositories \PublisherRepository ;
99use  App \Services \BookService ;
1010use  App \Services \PublisherService ;
11+ use  Illuminate \Contracts \Foundation \Application ;
1112use  Illuminate \Support \ServiceProvider ;
1213
1314class  AppServiceProvider extends  ServiceProvider
@@ -18,15 +19,15 @@ class AppServiceProvider extends ServiceProvider
1819    public  function  register (): void 
1920    {
2021        $ this app ->bind (BookRepositoryInterface::class, BookRepository::class);
21-         $ this app ->bind (BookService::class, function  ($ app
22+         $ this app ->bind (BookService::class, function  (Application   $ app
2223            return  new  BookService (
2324                $ appmake (BookRepositoryInterface::class),
2425                $ appmake (PublisherRepositoryInterface::class),
2526            );
2627        });
2728
2829        $ this app ->bind (PublisherRepositoryInterface::class, PublisherRepository::class);
29-         $ this app ->bind (PublisherService::class, function  ($ app
30+         $ this app ->bind (PublisherService::class, function  (Application   $ app
3031            return  new  PublisherService ($ appmake (PublisherRepositoryInterface::class));
3132        });
3233    }
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ parameters:
55    paths:
66        - app/
77
8-     # Level 9 is the highest level
9-     level: 9 
8+     # Level 9 is the highest numeric  level
9+     level: max 
1010
1111#    ignoreErrors:
1212#        - '#PHPDoc tag @var#'
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments