Passed
Push — master ( 3f9e32...06cdc3 )
by Martynas
04:53 queued 02:44
created
src/Routes/server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Routes which is neccessary for the SSO server.
5 5
  */
6 6
 
7
-Route::middleware('api')->prefix('api/sso')->group(function () {
7
+Route::middleware('api')->prefix('api/sso')->group(function() {
8 8
     Route::post('login', 'Zefy\LaravelSSO\Controllers\ServerController@login');
9 9
     Route::post('logout', 'Zefy\LaravelSSO\Controllers\ServerController@logout');
10 10
     Route::get('attach', 'Zefy\LaravelSSO\Controllers\ServerController@attach');
Please login to merge, or discard this patch.
src/LaravelSSOBroker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 
102 102
         $headers = [
103 103
             'Accept' => 'application/json',
104
-            'Authorization' => 'Bearer '. $this->getSessionId(),
104
+            'Authorization' => 'Bearer ' . $this->getSessionId(),
105 105
         ];
106 106
 
107 107
         switch ($method) {
Please login to merge, or discard this patch.
src/LaravelSSOServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
     protected function getBrokerSessionId()
136 136
     {
137 137
         $authorization = request()->header('Authorization', null);
138
-        if ($authorization &&  strpos($authorization, 'Bearer') === 0) {
138
+        if ($authorization && strpos($authorization, 'Bearer') === 0) {
139 139
             return substr($authorization, 7);
140 140
         }
141 141
 
Please login to merge, or discard this patch.
src/SSOServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $this->publishConfig(__DIR__ . '/../config/' . $this->configFileName);
25 25
 
26
-        $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
26
+        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
27 27
 
28 28
         if ($this->app->runningInConsole()) {
29 29
             $this->commands([
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         // If this page is server, load routes which is required for the server.
77 77
         if (config('laravel-sso.type') == 'server') {
78
-            $this->loadRoutesFrom(__DIR__.'/Routes/server.php');
78
+            $this->loadRoutesFrom(__DIR__ . '/Routes/server.php');
79 79
         }
80 80
     }
81 81
 }
Please login to merge, or discard this patch.
database/migrations/2018_03_01_073503_create_brokers_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create(config('laravel-sso.brokersTable', 'brokers'), function (Blueprint $table) {
16
+        Schema::create(config('laravel-sso.brokersTable', 'brokers'), function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('name')->unique();
19 19
             $table->string('secret');
Please login to merge, or discard this patch.