Completed
Pull Request — master (#30)
by
unknown
02:41
created
src/Magister/Services/Database/DatabaseManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     {
43 43
         $name = $name ?: $this->getDefaultConnection();
44 44
 
45
-        if (!isset($this->connections[$name])) {
45
+        if ( ! isset($this->connections[$name])) {
46 46
             $connection = $this->makeConnection();
47 47
 
48 48
             $this->connections[$name] = $connection;
Please login to merge, or discard this patch.
src/Magister/Services/Cookie/CookieServiceProvider.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('cookie', function ($app) {
19
+        $this->app->singleton('cookie', function($app) {
20 20
             $cookie = new CookieJar($app['encrypter']);
21 21
 
22 22
             $config = $app['config']['session'];
Please login to merge, or discard this patch.
src/Magister/Services/Cookie/CookieJar.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 has($key)
54 54
     {
55
-        return !is_null($this->get($key));
55
+        return ! is_null($this->get($key));
56 56
     }
57 57
 
58 58
     /**
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $value = isset($_COOKIE[$key]) ? $_COOKIE[$key] : null;
69 69
 
70
-        if (!is_null($value)) {
70
+        if ( ! is_null($value)) {
71 71
             return $this->decrypt($value);
72 72
         }
73 73
 
Please login to merge, or discard this patch.
src/Magister/Services/Foundation/Http/Kernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function bootstrap()
48 48
     {
49
-        if (!$this->app->hasBeenBootstrapped()) {
49
+        if ( ! $this->app->hasBeenBootstrapped()) {
50 50
             $this->app->bootstrapWith($this->bootstrappers());
51 51
         }
52 52
     }
Please login to merge, or discard this patch.
src/Magister/Services/Foundation/AliasLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
      */
66 66
     public function register()
67 67
     {
68
-        if (!$this->isRegistered()) {
68
+        if ( ! $this->isRegistered()) {
69 69
             $this->registerAutoloader();
70 70
 
71 71
             $this->registered = true;
Please login to merge, or discard this patch.
src/Magister/Services/Support/Manager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     {
52 52
         $driver = $driver ?: $this->getDefaultDriver();
53 53
 
54
-        if (!isset($this->drivers[$driver])) {
54
+        if ( ! isset($this->drivers[$driver])) {
55 55
             $this->drivers[$driver] = $this->createDriver($driver);
56 56
         }
57 57
 
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
-    * Set the model which the translator is targeting.
34
-    * 
35
-    * @param  string $model
36
-    * 
37
-    * @return \Magister\Services\Translation\Translator
38
-    */
32
+    /**
33
+     * Set the model which the translator is targeting.
34
+     * 
35
+     * @param  string $model
36
+     * 
37
+     * @return \Magister\Services\Translation\Translator
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     */
39 39
     public function from($model)
40 40
     {   
41
-        if (!isset($this->getDictionary()[$model])) {
41
+        if ( ! isset($this->getDictionary()[$model])) {
42 42
             throw new \InvalidArgumentException(sprintf('Could not find translations for the model: "%s" in the dictionary.', $model));
43 43
         }
44 44
 
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $model = $this->getModel($model);
74 74
 
75
-        if (!$this->hasTranslation($foreign, $model)) {
75
+        if ( ! $this->hasTranslation($foreign, $model)) {
76 76
             throw new TranslationNotFoundException('The foreign word that had to be translated could not be found in the dictionary!');
77 77
         }
78 78
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function getModel($model = null)
102 102
     {
103
-        if (!is_null($this->model)) {
103
+        if ( ! is_null($this->model)) {
104 104
             return $this->model;
105 105
         }
106 106
 
Please login to merge, or discard this patch.
src/Magister/Services/Exception/ExceptionServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      */
50 50
     protected function registerPrettyWhoopsHandler()
51 51
     {
52
-        $this->app['whoops.handler'] = $this->app->share(function () {
52
+        $this->app['whoops.handler'] = $this->app->share(function() {
53 53
             with($handler = new PrettyPageHandler)->setEditor('sublime');
54 54
 
55 55
             return $handler;
Please login to merge, or discard this patch.
src/Magister/Config/dictionary.php 1 patch
Indentation   +24 added lines, -24 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,87 +93,87 @@  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
     /*
158 158
      |--------------------------------------------------------------------------
159 159
      | Period
160 160
      |--------------------------------------------------------------------------
161 161
      */
162
-     'Magister\Models\Attendance\Period' => [
162
+        'Magister\Models\Attendance\Period' => [
163 163
      
164 164
         //
165 165
      
166
-     ],
166
+        ],
167 167
 
168 168
     /*
169 169
      |--------------------------------------------------------------------------
170 170
      | Attendance
171 171
      |--------------------------------------------------------------------------
172 172
      */
173
-     'Magister\Models\Attendance\Attendance' => [
173
+        'Magister\Models\Attendance\Attendance' => [
174 174
      
175 175
         //
176 176
      
177
-     ],
177
+        ],
178 178
 
179 179
 ];
Please login to merge, or discard this patch.