Completed
Push — master ( a38508...8df45b )
by Sherif
02:18
created
src/Modules/Reporting/Database/Migrations/2016_01_19_112350_reports.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('reports', function (Blueprint $table) {
15
+        Schema::create('reports', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('report_name', 100);
18 18
             $table->string('view_name', 100);
Please login to merge, or discard this patch.
src/Modules/Reporting/Repositories/ReportRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@
 block discarded – undo
42 42
         /**
43 43
          * Check report existance and permission.
44 44
          */
45
-        if (! $report) {
45
+        if ( ! $report) {
46 46
             \ErrorHandler::notFound('report');
47
-        } elseif (! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) {
47
+        } elseif ( ! $skipPermission && ! \Core::users()->can($report->view_name, 'reports')) {
48 48
             \ErrorHandler::noPermissions();
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Modules/Core/Database/Factories/SettingFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$factory->define(App\Modules\Core\Settings::class, function (Faker\Generator $faker) {
3
+$factory->define(App\Modules\Core\Settings::class, function(Faker\Generator $faker) {
4 4
     return [
5 5
         'name'       => $faker->randomElement(['Company Name', 'Title', 'Header Image']),
6 6
         'value'      => $faker->word(),
Please login to merge, or discard this patch.
src/Modules/Core/Database/Migrations/2016_01_24_123630_settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create('settings', function (Blueprint $table) {
15
+        Schema::create('settings', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name', 100);
18 18
             $table->string('key', 100)->unique();
Please login to merge, or discard this patch.
src/Modules/Core/Decorators/CachingDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         if ($this->cacheConfig && $this->cacheConfig == 'cache') {
84 84
             $page     = \Request::get('page') !== null ? \Request::get('page') : '1';
85 85
             $cacheKey = $name.$page.\Session::get('locale').serialize($arguments);
86
-            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function () use ($arguments, $name) {
86
+            return $this->cache->tags([$this->cacheTag])->rememberForever($cacheKey, function() use ($arguments, $name) {
87 87
                 return call_user_func_array([$this->repo, $name], $arguments);
88 88
             });
89 89
         } elseif ($this->cacheConfig) {
Please login to merge, or discard this patch.
src/Modules/Core/Console/Commands/GenerateDoc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      */
80 80
     protected function getRoutes()
81 81
     {
82
-        return collect(\Route::getRoutes())->map(function ($route) {
82
+        return collect(\Route::getRoutes())->map(function($route) {
83 83
             if (strpos($route->uri(), 'api/') !== false) {
84 84
                 return [
85 85
                     'method' => $route->methods()[0],
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         ];
111 111
 
112 112
 
113
-        if (! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) {
113
+        if ( ! $skipLoginCheck || ! in_array($method, $skipLoginCheck)) {
114 114
             $route['headers']['Authorization'] = 'Bearer {token}';
115 115
         }
116 116
     }
Please login to merge, or discard this patch.
src/Modules/Core/Utl/Media.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function uploadImageBas64($image, $dir)
26 26
     {
27
-        if (! strlen($image)) {
27
+        if ( ! strlen($image)) {
28 28
             return null;
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Modules/Core/Utl/ApiConsumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
214 214
         $server = [];
215 215
 
216 216
         foreach ($headers as $headerType => $headerValue) {
217
-            $headerType = 'HTTP_' . $headerType;
217
+            $headerType = 'HTTP_'.$headerType;
218 218
 
219 219
             $server[$headerType] = $headerValue;
220 220
         }
Please login to merge, or discard this patch.
src/Modules/Core/Traits/Translatable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             return $values;
39 39
         }
40 40
 
41
-        if (! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
41
+        if ( ! $primaryLocale || ! is_object($values) || ! property_exists($values, $primaryLocale)) {
42 42
             return $values ? isset($values->$fallbackLocale) ? $values->$fallbackLocale : $values : '';
43 43
         }
44 44
 
Please login to merge, or discard this patch.