Passed
Push — master ( 8c6e6d...1f8fab )
by Hamzah
08:00 queued 01:48
created
src/GeneratorServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -26,13 +26,13 @@
 block discarded – undo
26 26
         }
27 27
 
28 28
         $this->publishes([
29
-            __DIR__.'/config' => realpath('config'),
30
-        ],'repository-config');
29
+            __DIR__ . '/config' => realpath('config'),
30
+        ], 'repository-config');
31 31
         
32
-        $this->mergeConfigFrom(__DIR__.'/config/repository.php', 'repository-generator');
32
+        $this->mergeConfigFrom(__DIR__ . '/config/repository.php', 'repository-generator');
33 33
         $this->publishes([
34
-            __DIR__.'/stubs' => \Config::get('repository.resources_path',realpath(__DIR__.'/../../../../resources/'))."/stubs/",
35
-        ],'repository-stub');
34
+            __DIR__ . '/stubs' => \Config::get('repository.resources_path', realpath(__DIR__ . '/../../../../resources/')) . "/stubs/",
35
+        ], 'repository-stub');
36 36
     }
37 37
 
38 38
     /**
Please login to merge, or discard this patch.
src/Bases/Requests.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,14 +29,14 @@
 block discarded – undo
29 29
     protected function failedValidation(Validator $validator)
30 30
     {
31 31
 
32
-        if (strpos($this->path(),'api') !== false) {
32
+        if (strpos($this->path(), 'api') !== false) {
33 33
             $errors = (new ValidationException($validator))->errors();
34 34
             throw new HttpResponseException(response()->json(['success' => false, 'errors' => $errors,
35 35
             ], JsonResponse::HTTP_UNPROCESSABLE_ENTITY));
36 36
         }
37 37
     }
38 38
 
39
-    public function rules(){
40
-        \App::setLocale($this->header('Language','en'));
39
+    public function rules() {
40
+        \App::setLocale($this->header('Language', 'en'));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
src/Commands/Generator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     public function handle()
57 57
     {
58 58
 
59
-        $file = explode("/", (string)$this->argument('name'));
59
+        $file = explode("/", (string) $this->argument('name'));
60 60
 
61 61
         $this->repoName = $file[count($file) - 1];
62 62
         unset($file[count($file) - 1]);
Please login to merge, or discard this patch.
src/Bases/Controller.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
         }
64 64
         $limit = $request->get('limit', 10);
65 65
 
66
-        if ((bool)$request->get('with-trash', false)) {
66
+        if ((bool) $request->get('with-trash', false)) {
67 67
             $interface->withTrash();
68 68
         }
69
-        if ((bool)$request->get('only-trash', false)) {
69
+        if ((bool) $request->get('only-trash', false)) {
70 70
             $interface->trash();
71 71
         }
72 72
 
Please login to merge, or discard this patch.
src/RepositoryServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function __construct($app)
32 32
     {
33 33
         parent::__construct($app);
34
-        $contractsFolder = realpath(__DIR__.'/../../../../app/Contracts');
34
+        $contractsFolder = realpath(__DIR__ . '/../../../../app/Contracts');
35 35
         $Directory = new \RecursiveDirectoryIterator($contractsFolder);
36 36
         $Iterator = new \RecursiveIteratorIterator($Directory);
37 37
         $Regex = new \RegexIterator($Iterator, '/^.+\.php$/i', \RecursiveRegexIterator::GET_MATCH);
Please login to merge, or discard this patch.
src/config/repository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * Time: 09:58 am
7 7
  */
8 8
 return [
9
-    'app_path' => realpath(__DIR__.'/../app/'),
9
+    'app_path' => realpath(__DIR__ . '/../app/'),
10 10
     'route_path' => realpath('routes/'),
11 11
     'resources_path' => realpath('resources/'),
12 12
 
Please login to merge, or discard this patch.