Completed
Branch dev (38d68c)
by Pavel
10:56
created
public/index.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,8 @@
 block discarded – undo
5 5
 }
6 6
 
7 7
 // Super debug func
8
-function prr($value) {
8
+function prr($value)
9
+{
9 10
     if (defined('DEBUG_MODE') && DEBUG_MODE == 1) {
10 11
         echo '<pre>';
11 12
         print_r($value);
Please login to merge, or discard this patch.
app/database/migrations/20160706232752_create_roles_table.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,7 @@
 block discarded – undo
8 8
      */
9 9
     public function up()
10 10
     {
11
-        Capsule::schema()->create('roles', function($table)
12
-        {
11
+        Capsule::schema()->create('roles', function($table) {
13 12
             $table->increments('id');
14 13
             $table->string('name')->unique();
15 14
             $table->string('description');
Please login to merge, or discard this patch.
app/database/migrations/20160706233448_create_logs_table.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 use Illuminate\Database\Capsule\Manager as Capsule;
3 3
 
4
-class CreateLogsTable{
4
+class CreateLogsTable
5
+{
5 6
     /**
6 7
     * Do the migration
7 8
     */
8 9
     public function up()
9 10
     {
10
-        Capsule::schema()->create('logs', function($table)
11
-        {
11
+        Capsule::schema()->create('logs', function($table) {
12 12
             $table->increments('id');
13 13
             $table->string('action');
14 14
             $table->morphs('entity');
Please login to merge, or discard this patch.
app/database/migrations/20160706232835_create_rights_table.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 use Illuminate\Database\Capsule\Manager as Capsule;
3 3
 
4
-class CreateRightsTable{
4
+class CreateRightsTable
5
+{
5 6
     /**
6 7
     * Do the migration
7 8
     */
8 9
     public function up()
9 10
     {
10
-        Capsule::schema()->create('rights', function($table)
11
-        {
11
+        Capsule::schema()->create('rights', function($table) {
12 12
             $table->increments('id');
13 13
             $table->string('name')->unique();
14 14
             $table->string('description');
Please login to merge, or discard this patch.
app/database/migrations/20160706231338_create_users_table.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 use Illuminate\Database\Capsule\Manager as Capsule;
3 3
 
4
-class CreateUsersTable{
4
+class CreateUsersTable
5
+{
5 6
     /**
6 7
     * Do the migration
7 8
     */
8 9
     public function up()
9 10
     {
10
-        Capsule::schema()->create('users', function($table)
11
-        {
11
+        Capsule::schema()->create('users', function($table) {
12 12
             $table->increments('id');
13 13
             $table->string('email')->unique();
14 14
             $table->string('full_name');
Please login to merge, or discard this patch.
app/database/migrations/20161016143152_create_roles_to_right_table.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@
 block discarded – undo
1 1
 <?php
2 2
 use Illuminate\Database\Capsule\Manager as Capsule;
3 3
 
4
-class CreateRolesToRightTable{
4
+class CreateRolesToRightTable
5
+{
5 6
     /**
6 7
     * Do the migration
7 8
     */
8 9
     public function up()
9 10
     {
10
-        Capsule::schema()->create('roles_to_rights', function($table)
11
-        {
11
+        Capsule::schema()->create('roles_to_rights', function($table) {
12 12
             $table->integer('role_id')->unsigned();
13 13
             $table->integer('right_id')->unsigned();
14 14
             $table->primary(['role_id', 'right_id']);
Please login to merge, or discard this patch.
app/database/seeds/20160706233231_create_roles_rights_users.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@
 block discarded – undo
2 2
 use App\Model\Role;
3 3
 use App\Model\User;
4 4
 
5
-class CreateRolesRightsUsers {
5
+class CreateRolesRightsUsers
6
+{
6 7
     public function run()
7 8
     {
8 9
         Role::create([
Please login to merge, or discard this patch.
app/dependencies.php 1 patch
Braces   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@  discard block
 block discarded – undo
22 22
 $container = $app->getContainer();
23 23
 
24 24
 // render
25
-$container['renderer'] = function($c){
25
+$container['renderer'] = function($c) {
26 26
     $renderer = new Renderer();
27 27
 
28 28
     return $renderer;
29 29
 };
30 30
 
31
-$container['mailRenderer'] = function($c){
31
+$container['mailRenderer'] = function($c) {
32 32
     $settings = $c->get('settings');
33 33
     $renderer = new MailRenderer($settings['mailTemplate']);
34 34
     return $renderer;
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 // database
70 70
 $setting = $container->get('settings');
71 71
 $capsule = new Capsule;
72
-foreach ($setting['database']['connections'] as $name => $connection){
72
+foreach ($setting['database']['connections'] as $name => $connection) {
73 73
     $capsule->addConnection($connection, $name);
74 74
 }
75 75
 $capsule->setEventDispatcher(new Dispatcher(new Container));
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 };
88 88
 
89 89
 // translation
90
-$container['translator'] = function($c){
90
+$container['translator'] = function($c) {
91 91
     $settings                = $c->get('settings');
92 92
     $translation_file_loader = new FileLoader(new Filesystem, $settings['translate']['path']);
93 93
     $translator              = new Translator($translation_file_loader, $settings['translate']['locale']);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 };
97 97
 
98 98
 // validation
99
-$container['validation'] = function($c){
99
+$container['validation'] = function($c) {
100 100
     $translator = $c->get('translator');
101 101
     $validation = new Factory($translator);
102 102
     $presence   = new DatabasePresenceVerifier($c->get('databaseManager'));
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 };
107 107
 
108 108
 // mailer
109
-$container['mailer'] = function($c){
109
+$container['mailer'] = function($c) {
110 110
     $transport = \Swift_MailTransport::newInstance();
111 111
     $mailer    = \Swift_Mailer::newInstance($transport);
112 112
 
Please login to merge, or discard this patch.
app/middleware.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 $app->add(function (Request $request, Response $response, $next) {
103 103
     try {
104 104
         return $next($request, $response);
105
-    } catch (JsonException $e){
105
+    } catch (JsonException $e) {
106 106
         return $this->renderer->jsonApiRender($response, $e->statusCode, $e->encodeError());
107 107
     }
108 108
 });
109 109
\ No newline at end of file
Please login to merge, or discard this patch.