Completed
Push — master ( c38bce...f841dc )
by Roberts
05:53 queued 01:18
created
database/migrations/2017_04_28_083900_create_links_table.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,12 +10,12 @@  discard block
 block discarded – undo
10 10
      */
11 11
     public function up()
12 12
     {
13
-        Schema::create( 'links', function( Blueprint $table )
13
+        Schema::create('links', function(Blueprint $table)
14 14
         {
15
-            $table->increments( 'id' );
16
-            $table->string( 'title' );
17
-            $table->string( 'href' );
18
-            $table->boolean( 'new_tab' );
15
+            $table->increments('id');
16
+            $table->string('title');
17
+            $table->string('href');
18
+            $table->boolean('new_tab');
19 19
             $table->timestamps();
20 20
         } );
21 21
     }
@@ -25,6 +25,6 @@  discard block
 block discarded – undo
25 25
      */
26 26
     public function down()
27 27
     {
28
-        Schema::drop( 'links' );
28
+        Schema::drop('links');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
database/migrations/2017_05_30_125400_modify_href_column_in_links_table.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@  discard block
 block discarded – undo
10 10
      */
11 11
     public function up()
12 12
     {
13
-        Schema::table( 'links', function( Blueprint $table )
13
+        Schema::table('links', function(Blueprint $table)
14 14
         {
15
-            $table->text( 'href' )->change();
15
+            $table->text('href')->change();
16 16
         } );
17 17
     }
18 18
 
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function down()
23 23
     {
24
-        Schema::table( 'links', function( Blueprint $table )
24
+        Schema::table('links', function(Blueprint $table)
25 25
         {
26
-            $table->string( 'href' )->change();
26
+            $table->string('href')->change();
27 27
         } );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
database/migrations/2016_03_07_133525_create_text_pages_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::create( 'text_pages', function ( Blueprint $table )
15
+        Schema::create('text_pages', function(Blueprint $table)
16 16
         {
17
-            $table->increments( 'id' );
18
-            $table->text( 'html' );
17
+            $table->increments('id');
18
+            $table->text('html');
19 19
             $table->timestamps();
20 20
         } );
21 21
     }
Please login to merge, or discard this patch.
database/migrations/2016_06_02_124154_increase_locale_length.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,10 +12,10 @@
 block discarded – undo
12 12
      */
13 13
     public function up()
14 14
     {
15
-        Schema::table('translator_languages', function ($table) {
15
+        Schema::table('translator_languages', function($table) {
16 16
             $table->string('locale', 10)->change();
17 17
         });
18
-        Schema::table('translator_translations', function ($table) {
18
+        Schema::table('translator_translations', function($table) {
19 19
             $table->string('locale', 10)->change();
20 20
         });
21 21
     }
Please login to merge, or discard this patch.
database/seeds/ArboryDatabaseSeeder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@
 block discarded – undo
44 44
      */
45 45
     protected function seedLocales()
46 46
     {
47
-        if( $this->languageRepository->getModel()->all()->isEmpty() )
47
+        if ($this->languageRepository->getModel()->all()->isEmpty())
48 48
         {
49
-            $this->languageRepository->create( [
49
+            $this->languageRepository->create([
50 50
                 'locale' => 'en',
51 51
                 'name' => 'English'
52
-            ] );
52
+            ]);
53 53
         }
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Repositories/AbstractModelsRepository.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public function __construct()
28 28
     {
29
-        $this->makeModel( $this->modelClass );
29
+        $this->makeModel($this->modelClass);
30 30
     }
31 31
 
32 32
     /**
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
      * @param array $columns
42 42
      * @return mixed
43 43
      */
44
-    public function all( array $columns = [ '*' ] )
44
+    public function all(array $columns = [ '*' ])
45 45
     {
46
-        return $this->newQuery()->get( $columns );
46
+        return $this->newQuery()->get($columns);
47 47
     }
48 48
 
49 49
     /**
@@ -51,18 +51,18 @@  discard block
 block discarded – undo
51 51
      * @param array $columns
52 52
      * @return mixed
53 53
      */
54
-    public function paginate( $perPage = 15, array $columns = [ '*' ] )
54
+    public function paginate($perPage = 15, array $columns = [ '*' ])
55 55
     {
56
-        return $this->newQuery()->paginate( $perPage, $columns );
56
+        return $this->newQuery()->paginate($perPage, $columns);
57 57
     }
58 58
 
59 59
     /**
60 60
      * @param array $data
61 61
      * @return mixed
62 62
      */
63
-    public function create( array $data )
63
+    public function create(array $data)
64 64
     {
65
-        return $this->getModel()->create( $data );
65
+        return $this->getModel()->create($data);
66 66
     }
67 67
 
68 68
     /**
@@ -71,18 +71,18 @@  discard block
 block discarded – undo
71 71
      * @param string $attribute
72 72
      * @return mixed
73 73
      */
74
-    public function update( array $data, $itemId, $attribute = 'id' )
74
+    public function update(array $data, $itemId, $attribute = 'id')
75 75
     {
76
-        return $this->newQuery()->where( $attribute, '=', $itemId )->update( $data );
76
+        return $this->newQuery()->where($attribute, '=', $itemId)->update($data);
77 77
     }
78 78
 
79 79
     /**
80 80
      * @param $arboryFileId
81 81
      * @return mixed
82 82
      */
83
-    public function delete( $arboryFileId )
83
+    public function delete($arboryFileId)
84 84
     {
85
-        return $this->getModel()->destroy( $arboryFileId );
85
+        return $this->getModel()->destroy($arboryFileId);
86 86
     }
87 87
 
88 88
     /**
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
      * @param array $columns
91 91
      * @return mixed
92 92
      */
93
-    public function find( $itemId, array $columns = [ '*' ] )
93
+    public function find($itemId, array $columns = [ '*' ])
94 94
     {
95
-        return $this->newQuery()->find( $itemId, $columns );
95
+        return $this->newQuery()->find($itemId, $columns);
96 96
     }
97 97
 
98 98
     /**
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
      * @param array $columns
102 102
      * @return mixed
103 103
      */
104
-    public function findBy( $attribute, $value, array $columns = [ '*' ] )
104
+    public function findBy($attribute, $value, array $columns = [ '*' ])
105 105
     {
106
-        return $this->newQuery()->where( $attribute, '=', $value )->get();
106
+        return $this->newQuery()->where($attribute, '=', $value)->get();
107 107
     }
108 108
 
109 109
     /**
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
      * @param array $columns
113 113
      * @return mixed
114 114
      */
115
-    public function findOneBy( $attribute, $value, array $columns = [ '*' ] )
115
+    public function findOneBy($attribute, $value, array $columns = [ '*' ])
116 116
     {
117
-        return $this->newQuery()->where( $attribute, '=', $value )->first();
117
+        return $this->newQuery()->where($attribute, '=', $value)->first();
118 118
     }
119 119
 
120 120
     /**
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
      * @param array $columns
123 123
      * @return Model
124 124
      */
125
-    public function findOrNew( $itemId, array $columns = [ '*' ] )
125
+    public function findOrNew($itemId, array $columns = [ '*' ])
126 126
     {
127
-        return $this->newQuery()->findOrNew( $itemId, $columns );
127
+        return $this->newQuery()->findOrNew($itemId, $columns);
128 128
     }
129 129
 
130 130
     /**
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * @param $class
140 140
      */
141
-    protected function makeModel( $class )
141
+    protected function makeModel($class)
142 142
     {
143 143
         $this->model = new $class;
144 144
     }
Please login to merge, or discard this patch.
src/Repositories/ResourcesRepository.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
      * ResourcesRepository constructor.
13 13
      * @param $class
14 14
      */
15
-    public function __construct( $class )
15
+    public function __construct($class)
16 16
     {
17 17
         $this->modelClass = $class;
18 18
 
Please login to merge, or discard this patch.
src/Files/ArboryFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function getUrl()
54 54
     {
55
-        return Storage::disk( $this->getDisk() )->url( $this->getLocalName() );
55
+        return Storage::disk($this->getDisk())->url($this->getLocalName());
56 56
     }
57 57
 
58 58
     /**
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      */
61 61
     public function getExtension()
62 62
     {
63
-        return pathinfo( $this->getOriginalName(), PATHINFO_EXTENSION );
63
+        return pathinfo($this->getOriginalName(), PATHINFO_EXTENSION);
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
src/Files/ArboryImage.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -13,24 +13,24 @@
 block discarded – undo
13 13
      */
14 14
     public function getTable()
15 15
     {
16
-        return ( new parent )->getTable();
16
+        return (new parent)->getTable();
17 17
     }
18 18
 
19 19
     /**
20 20
      * @param null $parameters
21 21
      * @return string
22 22
      */
23
-    public function getUrl( $parameters = null )
23
+    public function getUrl($parameters = null)
24 24
     {
25 25
         try
26 26
         {
27
-            return \GlideImage::from( $this->getLocalName() )
28
-                ->setSourceDisk( $this->disk )
29
-                ->getImageUrl( $parameters );
27
+            return \GlideImage::from($this->getLocalName())
28
+                ->setSourceDisk($this->disk)
29
+                ->getImageUrl($parameters);
30 30
         }
31
-        catch( \Exception $e )
31
+        catch (\Exception $e)
32 32
         {
33
-            \Log::warning( $e );
33
+            \Log::warning($e);
34 34
         }
35 35
 
36 36
         return null;
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
27 27
             return \GlideImage::from( $this->getLocalName() )
28 28
                 ->setSourceDisk( $this->disk )
29 29
                 ->getImageUrl( $parameters );
30
-        }
31
-        catch( \Exception $e )
30
+        } catch( \Exception $e )
32 31
         {
33 32
             \Log::warning( $e );
34 33
         }
Please login to merge, or discard this patch.