Completed
Branch proxy (978f48)
by leo
04:49
created
src/Repositories/TicketRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param $totalLength
97
-     * @return bool|string
97
+     * @return false|string
98 98
      */
99 99
     protected function getAvailableTicket($totalLength)
100 100
     {
Please login to merge, or discard this patch.
database/migrations/2016_08_01_061923_create_service_hosts_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('cas_service_hosts', function (Blueprint $table) {
15
+        Schema::create('cas_service_hosts', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('host')->unique();
18 18
             $table->integer('service_id')->unsigned();
Please login to merge, or discard this patch.
database/migrations/2016_08_01_061918_create_tickets_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('cas_tickets', function (Blueprint $table) {
15
+        Schema::create('cas_tickets', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('ticket', 32)->unique();
18 18
             $table->string('service_url', 1024);
Please login to merge, or discard this patch.
database/migrations/2016_08_01_061914_create_services_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('cas_services', function (Blueprint $table) {
15
+        Schema::create('cas_services', function(Blueprint $table) {
16 16
             $table->increments('id');
17 17
             $table->string('name')->unique();
18 18
             $table->boolean('enabled')->default(true);
Please login to merge, or discard this patch.
src/Http/routes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,19 +6,19 @@
 block discarded – undo
6 6
 ];
7 7
 
8 8
 if (config('cas.middleware.common')) {
9
-    $options['middleware'] = config('cas.middleware.common');
9
+    $options[ 'middleware' ] = config('cas.middleware.common');
10 10
 }
11 11
 
12 12
 Route::group(
13 13
     $options,
14
-    function () {
14
+    function() {
15 15
         $auth = config('cas.middleware.auth');
16 16
         $p    = config('cas.router.name_prefix');
17
-        Route::get('login', ['as' => $p.'login_page', 'uses' => 'SecurityController@showLogin']);
18
-        Route::post('login', ['as' => $p.'login_action', 'uses' => 'SecurityController@login']);
19
-        Route::get('logout', ['as' => $p.'logout', 'uses' => 'SecurityController@logout'])->middleware($auth);
20
-        Route::any('validate', ['as' => $p.'v1validate', 'uses' => 'ValidateController@v1ValidateAction']);
21
-        Route::any('serviceValidate', ['as' => $p.'v2validate', 'uses' => 'ValidateController@v2ValidateAction']);
22
-        Route::any('p3/serviceValidate', ['as' => $p.'v3validate', 'uses' => 'ValidateController@v3ValidateAction']);
17
+        Route::get('login', [ 'as' => $p.'login_page', 'uses' => 'SecurityController@showLogin' ]);
18
+        Route::post('login', [ 'as' => $p.'login_action', 'uses' => 'SecurityController@login' ]);
19
+        Route::get('logout', [ 'as' => $p.'logout', 'uses' => 'SecurityController@logout' ])->middleware($auth);
20
+        Route::any('validate', [ 'as' => $p.'v1validate', 'uses' => 'ValidateController@v1ValidateAction' ]);
21
+        Route::any('serviceValidate', [ 'as' => $p.'v2validate', 'uses' => 'ValidateController@v2ValidateAction' ]);
22
+        Route::any('p3/serviceValidate', [ 'as' => $p.'v3validate', 'uses' => 'ValidateController@v3ValidateAction' ]);
23 23
     }
24 24
 );
Please login to merge, or discard this patch.
src/Models/ServiceHost.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     protected $table = 'cas_service_hosts';
16 16
     public $timestamps = false;
17
-    protected $fillable = ['host'];
17
+    protected $fillable = [ 'host' ];
18 18
 
19 19
     public function service()
20 20
     {
Please login to merge, or discard this patch.
src/Models/Ticket.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 {
16 16
     protected $table = 'cas_tickets';
17 17
     public $timestamps = false;
18
-    protected $fillable = ['ticket', 'service_url', 'expire_at', 'created_at'];
18
+    protected $fillable = [ 'ticket', 'service_url', 'expire_at', 'created_at' ];
19 19
 
20 20
     public function isExpired()
21 21
     {
Please login to merge, or discard this patch.
src/Models/Service.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
 class Service extends Model
14 14
 {
15 15
     protected $table = 'cas_services';
16
-    protected $fillable = ['name', 'enabled'];
16
+    protected $fillable = [ 'name', 'enabled' ];
17 17
     protected $casts = [
18 18
         'enabled' => 'boolean',
19 19
     ];
Please login to merge, or discard this patch.
src/Utils/helpers.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
      * @param bool   $absolute
14 14
      * @return string
15 15
      */
16
-    function cas_route($name, $parameters = [], $absolute = true)
16
+    function cas_route($name, $parameters = [ ], $absolute = true)
17 17
     {
18 18
         $name = config('cas.router.name_prefix').$name;
19 19
 
Please login to merge, or discard this patch.