Completed
Push — master ( e77a61...f4a588 )
by Stan
04:38
created
src/Magister/Config/dictionary.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -38,44 +38,44 @@  discard block
 block discarded – undo
38 38
      | Course
39 39
      |--------------------------------------------------------------------------
40 40
      */
41
-     'Magister\Models\Course' => [
41
+        'Magister\Models\Course' => [
42 42
 
43 43
         'description' => 'omschrijving',
44 44
 
45
-     ],
45
+        ],
46 46
 
47 47
     /*
48 48
      |--------------------------------------------------------------------------
49 49
      | Counsellor
50 50
      |--------------------------------------------------------------------------
51 51
      */
52
-     'Magister\Models\Enrollment\Counsellor' => [
52
+        'Magister\Models\Enrollment\Counsellor' => [
53 53
 
54 54
         //
55 55
 
56
-     ],
56
+        ],
57 57
 
58 58
     /*
59 59
      |--------------------------------------------------------------------------
60 60
      | Enrollment
61 61
      |--------------------------------------------------------------------------
62 62
      */
63
-     'Magister\Models\Enrollment\Enrollment' => [
63
+        'Magister\Models\Enrollment\Enrollment' => [
64 64
 
65 65
         //
66 66
 
67
-     ],
67
+        ],
68 68
 
69 69
     /*
70 70
      |--------------------------------------------------------------------------
71 71
      | User
72 72
      |--------------------------------------------------------------------------
73 73
      */
74
-     'Magister\Models\User' => [
74
+        'Magister\Models\User' => [
75 75
 
76 76
         //
77 77
 
78
-     ],
78
+        ],
79 79
 
80 80
     /*
81 81
      |--------------------------------------------------------------------------
@@ -93,65 +93,65 @@  discard block
 block discarded – undo
93 93
      | Info
94 94
      |--------------------------------------------------------------------------
95 95
      */
96
-     'Magister\Models\Grade\Info' => [
96
+        'Magister\Models\Grade\Info' => [
97 97
 
98 98
         //
99 99
 
100
-     ],
100
+        ],
101 101
 
102 102
     /*
103 103
      |--------------------------------------------------------------------------
104 104
      | Profile
105 105
      |--------------------------------------------------------------------------
106 106
      */
107
-     'Magister\Models\Profile' => [
107
+        'Magister\Models\Profile' => [
108 108
 
109 109
         //
110 110
 
111
-     ],
111
+        ],
112 112
 
113 113
     /*
114 114
      |--------------------------------------------------------------------------
115 115
      | Address
116 116
      |--------------------------------------------------------------------------
117 117
      */
118
-     'Magister\Models\Profile\Address' => [
118
+        'Magister\Models\Profile\Address' => [
119 119
 
120 120
         //
121 121
 
122
-     ],
122
+        ],
123 123
 
124 124
     /*
125 125
      |--------------------------------------------------------------------------
126 126
      | Education
127 127
      |--------------------------------------------------------------------------
128 128
      */
129
-     'Magister\Models\Profile\Education' => [
129
+        'Magister\Models\Profile\Education' => [
130 130
 
131 131
         //
132 132
 
133
-     ],
133
+        ],
134 134
 
135 135
     /*
136 136
      |--------------------------------------------------------------------------
137 137
      | Folder
138 138
      |--------------------------------------------------------------------------
139 139
      */
140
-     'Magister\Models\Message\Folder' => [
140
+        'Magister\Models\Message\Folder' => [
141 141
 
142 142
         //
143 143
      
144
-     ],
144
+        ],
145 145
 
146 146
     /*
147 147
      |--------------------------------------------------------------------------
148 148
      | Message
149 149
      |--------------------------------------------------------------------------
150 150
      */
151
-     'Magister\Models\Message\Message' => [
151
+        'Magister\Models\Message\Message' => [
152 152
      
153 153
         //
154 154
      
155
-     ],
155
+        ],
156 156
     
157 157
 ];
Please login to merge, or discard this patch.
src/Magister/Services/Http/HttpServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     protected function registerGuzzle()
30 30
     {
31
-        $this->app->singleton('http', function ($app) {
31
+        $this->app->singleton('http', function($app) {
32 32
             $client = new Client(['base_url' => "https://{$app['school']}.magister.net/api/"]);
33 33
 
34 34
             $client->setDefaultOption('exceptions', false);
Please login to merge, or discard this patch.
src/Magister/Services/Auth/AuthServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     protected function registerAuthenticator()
28 28
     {
29
-        $this->app->singleton('auth', function ($app) {
29
+        $this->app->singleton('auth', function($app) {
30 30
             return new AuthManager($app);
31 31
         });
32 32
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         if ($this->app->bound('credentials')) {
42 42
             $auth = $this->app->auth;
43 43
 
44
-            if (!$auth->check()) {
44
+            if ( ! $auth->check()) {
45 45
                 $auth->attempt($this->app['credentials']);
46 46
             }
47 47
         }
Please login to merge, or discard this patch.
src/Magister/Services/Encryption/EncryptionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function register()
18 18
     {
19
-        $this->app->singleton('encrypter', function ($app) {
19
+        $this->app->singleton('encrypter', function($app) {
20 20
             return new Encrypter($app['config']['app.key']);
21 21
         });
22 22
     }
Please login to merge, or discard this patch.
src/Magister/Services/Encryption/Encrypter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,11 +125,11 @@  discard block
 block discarded – undo
125 125
     {
126 126
         $payload = json_decode(base64_decode($payload), true);
127 127
 
128
-        if (!$payload || $this->invalidPayload($payload)) {
128
+        if ( ! $payload || $this->invalidPayload($payload)) {
129 129
             throw new DecryptException('Invalid data.');
130 130
         }
131 131
 
132
-        if (!$this->validMac($payload)) {
132
+        if ( ! $this->validMac($payload)) {
133 133
             throw new DecryptException('MAC is invalid.');
134 134
         }
135 135
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      */
214 214
     protected function invalidPayload($data)
215 215
     {
216
-        return !is_array($data) || !isset($data['iv']) || !isset($data['value']) || !isset($data['mac']);
216
+        return ! is_array($data) || ! isset($data['iv']) || ! isset($data['value']) || ! isset($data['mac']);
217 217
     }
218 218
 
219 219
     /**
Please login to merge, or discard this patch.
src/Magister/Services/Events/EventServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function register()
18 18
     {
19
-        $this->app->singleton('events', function ($app) {
19
+        $this->app->singleton('events', function($app) {
20 20
             return new Dispatcher($app);
21 21
         });
22 22
     }
Please login to merge, or discard this patch.
src/Magister/Services/Translation/TranslatorServiceProvider.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
     public function register()
16 16
     {
17
-        $this->app->bind('translator', function ($app) {
17
+        $this->app->bind('translator', function($app) {
18 18
             $dictionary = $app['config']['dictionary'];
19 19
 
20 20
             return new Translator($dictionary);
Please login to merge, or discard this patch.
src/Magister/Services/Translation/Translator.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
         $this->setDictionary($dictionary);
30 30
     }
31 31
    
32
-   /**
33
-    * Determine which words should be translatable by defining the model.
34
-    * 
35
-    * @param  string $model
36
-    * @return \Magister\Services\Translation\Translator
37
-    * @throws InvalidArgumentException
38
-    */
32
+    /**
33
+     * Determine which words should be translatable by defining the model.
34
+     * 
35
+     * @param  string $model
36
+     * @return \Magister\Services\Translation\Translator
37
+     * @throws InvalidArgumentException
38
+     */
39 39
     public function from($model)
40 40
     {
41 41
         if (isset($this->getDictionary()[$model])) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $model = $this->getModel($model);
73 73
 
74
-        if (!$this->hasTranslation($foreign, $model)) {
74
+        if ( ! $this->hasTranslation($foreign, $model)) {
75 75
             throw new TranslationNotFoundException('The foreign word that had to be translated could not be found in the dictionary!');
76 76
         }
77 77
 
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function getModel($model = null)
101 101
     {
102
-        if (!is_null($this->model)) {
102
+        if ( ! is_null($this->model)) {
103 103
             return $this->model;
104 104
         }
105 105
 
Please login to merge, or discard this patch.
src/Magister/Services/Filesystem/FilesystemServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     protected function registerNativeFilesystem()
28 28
     {
29
-        $this->app->singleton('files', function () {
29
+        $this->app->singleton('files', function() {
30 30
             return new Filesystem();
31 31
         });
32 32
     }
Please login to merge, or discard this patch.