@@ -38,44 +38,44 @@ discard block |
||
| 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 |
||
| 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 | ]; |
@@ -28,7 +28,7 @@ |
||
| 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); |
@@ -26,7 +26,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -16,7 +16,7 @@ |
||
| 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 | } |
@@ -125,11 +125,11 @@ discard block |
||
| 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 |
||
| 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 | /** |
@@ -16,7 +16,7 @@ |
||
| 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 | } |
@@ -14,7 +14,7 @@ |
||
| 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); |
@@ -29,13 +29,13 @@ |
||
| 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])) { |
@@ -71,7 +71,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -26,7 +26,7 @@ |
||
| 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 | } |