Completed
Push — master ( 8e46e1...99d49d )
by Şəhriyar
19:53
created
database/migrations/2014_10_12_000000_create_users_table.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('users', function (Blueprint $table) {
15
+        Schema::create('users', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name')->nullable();
18 18
             $table->string('email')->unique();
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
          | simple approach to interacting with each command's IO methods.
42 42
          *------------------------------------------------------------------------*/
43 43
 
44
-        app(\Illuminate\Contracts\Console\Kernel::class)->command('inspire', function () {
44
+        app(\Illuminate\Contracts\Console\Kernel::class)->command('inspire', function() {
45 45
             /** @var \Illuminate\Console\Command $this */
46 46
             $this->comment(Inspiring::quote());
47 47
         });
Please login to merge, or discard this patch.
app/Providers/BroadcastServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
          *-------------------------------------------------------------------------------*/
24 24
 
25 25
         // Authenticate the user's personal channel...
26
-        app(BroadcastManager::class)->channel('App.Models.User.*', function ($user, $userId) {
27
-            return (int)$user->id === (int)$userId;
26
+        app(BroadcastManager::class)->channel('App.Models.User.*', function($user, $userId) {
27
+            return (int) $user->id === (int) $userId;
28 28
         });
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
config/database.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
     'connections' => [
32 32
         'sqlite' => [
33 33
             'driver' => 'sqlite',
34
-            'database' => env('DB_DATABASE', database_path() . '/database.sqlite'),
34
+            'database' => env('DB_DATABASE', database_path().'/database.sqlite'),
35 35
             'prefix' => '',
36 36
         ],
37 37
         'mysql' => [
Please login to merge, or discard this patch.
bootstrap/autoload.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,4 +13,4 @@
 block discarded – undo
13 13
 | loading of any our classes "manually". Feels great to relax.
14 14
 |
15 15
 */
16
-require __DIR__ . '/../vendor/autoload.php';
16
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
routes/console.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
 | simple approach to interacting with each command's IO methods.
13 13
 |
14 14
 */
15
-app('artisan')->command('inspire', function () {
15
+app('artisan')->command('inspire', function() {
16 16
     $this->comment(Inspiring::quote());
17 17
 })->describe('Display an inspiring quote');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 foreach (config('app.locales') as $prefix => $localeName) {
30 30
     app('translator')->setLocale($prefix);
31 31
     // Localized routes.
32
-    $router->group(compact('namespace', 'middleware', 'prefix'), function (Router $router) use ($prefix) {
32
+    $router->group(compact('namespace', 'middleware', 'prefix'), function(Router $router) use ($prefix) {
33 33
         $router->get('login', ['uses' => 'Auth\LoginController@showLoginForm', 'as' => 'login', 'locale' => $prefix]);
34 34
         $router->get('logout', ['uses' => 'Auth\LoginController@logout', 'as' => 'logout', 'locale' => $prefix])->middleware('auth');
35 35
         $router->get('register', ['uses' => 'Auth\RegisterController@showRegistrationForm', 'as' => 'register', 'locale' => $prefix]);
Please login to merge, or discard this patch.
app/Models/NestedEntity.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
         # Fetch reference entity
52 52
         $referenceEntity = app('db.connection')->table($this->table)->where('id', $referenceEntityId)->first();
53 53
         if (is_null($referenceEntity)) {
54
-            throw new \InvalidArgumentException("Reference entity with id: " . $referenceEntityId . " not found!");
54
+            throw new \InvalidArgumentException("Reference entity with id: ".$referenceEntityId." not found!");
55 55
         }
56 56
 
57 57
         return app('db.connection')->transaction(
58
-            function () use ($newEntityName, $referenceEntity) {
58
+            function() use ($newEntityName, $referenceEntity) {
59 59
                 # Create new entity
60 60
                 $newEntity = app('db.connection')->table($this->table);
61 61
 
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
         # Fetch reference entity
92 92
         $referenceEntity = app('db.connection')->table($this->table)->where('id', $referenceEntityId)->first();
93 93
         if (is_null($referenceEntity)) {
94
-            throw new \InvalidArgumentException("Reference entity with id: " . $referenceEntityId . " not found!");
94
+            throw new \InvalidArgumentException("Reference entity with id: ".$referenceEntityId." not found!");
95 95
         }
96 96
 
97 97
         return app('db.connection')->transaction(
98
-            function () use ($newEntityName, $referenceEntity) {
98
+            function() use ($newEntityName, $referenceEntity) {
99 99
                 # Create new entity
100 100
                 $newEntity = app('db.connection')->table($this->table);
101 101
 
@@ -145,11 +145,11 @@  discard block
 block discarded – undo
145 145
         # Fetch reference entity
146 146
         $referenceEntity = app('db.connection')->table($this->table)->where('id', $referenceEntityId)->first();
147 147
         if (is_null($referenceEntity)) {
148
-            throw new \InvalidArgumentException("Reference entity with id: " . $referenceEntityId . " not found!");
148
+            throw new \InvalidArgumentException("Reference entity with id: ".$referenceEntityId." not found!");
149 149
         }
150 150
 
151 151
         return app('db.connection')->transaction(
152
-            function () use ($newEntityName, $referenceEntity) {
152
+            function() use ($newEntityName, $referenceEntity) {
153 153
                 # Create new entity
154 154
                 $newEntity = app('db.connection')->table($this->table);
155 155
 
@@ -185,11 +185,11 @@  discard block
 block discarded – undo
185 185
         # Fetch reference entity
186 186
         $referenceEntity = app('db.connection')->table($this->table)->where('id', $referenceEntityId)->first();
187 187
         if (is_null($referenceEntity)) {
188
-            throw new \InvalidArgumentException("Reference entity with id: " . $referenceEntityId . " not found!");
188
+            throw new \InvalidArgumentException("Reference entity with id: ".$referenceEntityId." not found!");
189 189
         }
190 190
 
191 191
         return app('db.connection')->transaction(
192
-            function () use ($newEntityName, $referenceEntity) {
192
+            function() use ($newEntityName, $referenceEntity) {
193 193
                 # Create new entity
194 194
                 $newEntity = app('db.connection')->table($this->table);
195 195
 
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
         $referenceEntity = app('db.connection')->table($this->table)->select('left_range', 'right_range', app('db.connection')->raw('right_range - left_range + 1 as range_width'))->where('id', $id)
220 220
             ->first();
221 221
         if (is_null($referenceEntity)) {
222
-            throw new \InvalidArgumentException("Reference entity with id: " . $id . " not found!");
222
+            throw new \InvalidArgumentException("Reference entity with id: ".$id." not found!");
223 223
         }
224 224
         $completeListOfEntitiesToDeleteIncludingOrphans = app('db.connection')->table($this->table)
225 225
             ->where('left_range', '>=', $referenceEntity->left_range)
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
         # Perform either a soft-delete or hard-delete
229 229
         return app('db.connection')->transaction(
230
-            function () use ($referenceEntity, $doSoftDelete, $completeListOfEntitiesToDeleteIncludingOrphans) {
230
+            function() use ($referenceEntity, $doSoftDelete, $completeListOfEntitiesToDeleteIncludingOrphans) {
231 231
                 if ($doSoftDelete) {
232 232
                     # Soft delete
233 233
                     $removeResult = $completeListOfEntitiesToDeleteIncludingOrphans->update(['deleted_at' => Carbon::now()]);
@@ -238,10 +238,10 @@  discard block
 block discarded – undo
238 238
                     # Update ranges
239 239
                     app('db.connection')->table($this->table)
240 240
                         ->where('right_range', '>', $referenceEntity->right_range)
241
-                        ->update(['right_range' => app('db.connection')->raw('right_range - ' . $referenceEntity->range_width)]);
241
+                        ->update(['right_range' => app('db.connection')->raw('right_range - '.$referenceEntity->range_width)]);
242 242
                     app('db.connection')->table($this->table)
243 243
                         ->where('left_range', '>', $referenceEntity->right_range)
244
-                        ->update(['left_range' => app('db.connection')->raw('left_range - ' . $referenceEntity->range_width)]);
244
+                        ->update(['left_range' => app('db.connection')->raw('left_range - '.$referenceEntity->range_width)]);
245 245
                 }
246 246
 
247 247
                 return $removeResult;
@@ -269,11 +269,11 @@  discard block
 block discarded – undo
269 269
 
270 270
         # Prelim
271 271
         empty($id) && $id = 1;
272
-        $nestedEntities = app('db.connection')->table($this->table . ' as node')
272
+        $nestedEntities = app('db.connection')->table($this->table.' as node')
273 273
             ->select('node.id', 'node.name')
274 274
             ->leftJoin(
275
-                $this->table . ' AS parent',
276
-                function (JoinClause $join) {
275
+                $this->table.' AS parent',
276
+                function(JoinClause $join) {
277 277
                     $join->on('node.left_range', '<=', 'parent.right_range')
278 278
                         ->on('node.left_range', '>=', 'parent.left_range');
279 279
                 });
Please login to merge, or discard this patch.
app/Services/Routing/LocalizedRouter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@
 block discarded – undo
57 57
         $localizedUriTranslationBitParts = [];
58 58
         while (list($level, $bitName) = each($uriExploded)) {
59 59
             if ($level == 0) {
60
-                $localizedUriTranslationBitParts[$level] = 'routes.' . $bitName . '.';
60
+                $localizedUriTranslationBitParts[$level] = 'routes.'.$bitName.'.';
61 61
             } else {
62
-                $localizedUriTranslationBitParts[$level] = trim($localizedUriTranslationBitParts[$level - 1], '.') . '.' . $bitName;
62
+                $localizedUriTranslationBitParts[$level] = trim($localizedUriTranslationBitParts[$level - 1], '.').'.'.$bitName;
63 63
             }
64 64
         }
65 65
         foreach ($localizedUriTranslationBitParts as $level => &$translationBitPart) {
Please login to merge, or discard this patch.