@@ -106,8 +106,8 @@ public function testPrimaryNamespace()
106106 {
107107 $ autoload = [
108108 'psr-4 ' => [
109- 'FOC \\Authenticate ' => ''
110- ]
109+ 'FOC \\Authenticate ' => '' ,
110+ ],
111111 ];
112112 $ this ->package ->setAutoload ($ autoload );
113113
@@ -117,8 +117,8 @@ public function testPrimaryNamespace()
117117 $ autoload = [
118118 'psr-4 ' => [
119119 'FOC\Acl\Test ' => './tests ' ,
120- 'FOC\Acl ' => ''
121- ]
120+ 'FOC\Acl ' => '' ,
121+ ],
122122 ];
123123 $ this ->package ->setAutoload ($ autoload );
124124 $ ns = PluginInstaller::primaryNamespace ($ this ->package );
@@ -127,8 +127,8 @@ public function testPrimaryNamespace()
127127 $ autoload = [
128128 'psr-4 ' => [
129129 'Foo\Bar ' => 'foo ' ,
130- 'Acme\Plugin ' => './src '
131- ]
130+ 'Acme\Plugin ' => './src ' ,
131+ ],
132132 ];
133133 $ this ->package ->setAutoload ($ autoload );
134134 $ ns = PluginInstaller::primaryNamespace ($ this ->package );
@@ -137,8 +137,8 @@ public function testPrimaryNamespace()
137137 $ autoload = [
138138 'psr-4 ' => [
139139 'Foo\Bar ' => 'bar ' ,
140- 'Foo \\' => ''
141- ]
140+ 'Foo \\' => '' ,
141+ ],
142142 ];
143143 $ this ->package ->setAutoload ($ autoload );
144144 $ ns = PluginInstaller::primaryNamespace ($ this ->package );
@@ -147,8 +147,8 @@ public function testPrimaryNamespace()
147147 $ autoload = [
148148 'psr-4 ' => [
149149 'Foo\Bar ' => 'bar ' ,
150- 'Foo ' => '. '
151- ]
150+ 'Foo ' => '. ' ,
151+ ],
152152 ];
153153 $ this ->package ->setAutoload ($ autoload );
154154 $ ns = PluginInstaller::primaryNamespace ($ this ->package );
@@ -157,8 +157,8 @@ public function testPrimaryNamespace()
157157 $ autoload = [
158158 'psr-4 ' => [
159159 'Acme\Foo\Bar ' => 'bar ' ,
160- 'Acme\Foo \\' => ''
161- ]
160+ 'Acme\Foo \\' => '' ,
161+ ],
162162 ];
163163 $ this ->package ->setAutoload ($ autoload );
164164 $ ns = PluginInstaller::primaryNamespace ($ this ->package );
@@ -167,8 +167,8 @@ public function testPrimaryNamespace()
167167 $ autoload = [
168168 'psr-4 ' => [
169169 'Acme\Foo\Bar ' => '' ,
170- 'Acme\Foo ' => 'src '
171- ]
170+ 'Acme\Foo ' => 'src ' ,
171+ ],
172172 ];
173173 $ this ->package ->setAutoload ($ autoload );
174174 $ name = PluginInstaller::primaryNamespace ($ this ->package );
@@ -181,22 +181,22 @@ public function testDeterminePlugins()
181181 $ plugin1 ->setType ('cakephp-plugin ' );
182182 $ plugin1 ->setAutoload ([
183183 'psr-4 ' => [
184- 'TheThing ' => 'src/ '
185- ]
184+ 'TheThing ' => 'src/ ' ,
185+ ],
186186 ]);
187187
188188 $ plugin2 = new Package ('cakephp/princess ' , '1.0 ' , '1.0 ' );
189189 $ plugin2 ->setType ('cakephp-plugin ' );
190190 $ plugin2 ->setAutoload ([
191191 'psr-4 ' => [
192- 'Princess ' => 'src/ '
193- ]
192+ 'Princess ' => 'src/ ' ,
193+ ],
194194 ]);
195195
196196 $ packages = [
197197 $ plugin1 ,
198198 new Package ('SomethingElse ' , '1.0 ' , '1.0 ' ),
199- $ plugin2
199+ $ plugin2,
200200 ];
201201
202202 $ return = PluginInstaller::determinePlugins (
@@ -207,7 +207,7 @@ public function testDeterminePlugins()
207207
208208 $ expected = [
209209 'Princess ' => $ this ->path . '/vendor/cakephp/princess ' ,
210- 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing '
210+ 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing ' ,
211211 ];
212212 $ this ->assertSame ($ expected , $ return , 'Only composer-loaded plugins should be listed ' );
213213
@@ -223,7 +223,7 @@ public function testDeterminePlugins()
223223 'Foo ' => $ this ->path . '/plugins/Foo ' ,
224224 'Fum ' => $ this ->path . '/plugins/Fum ' ,
225225 'Princess ' => $ this ->path . '/vendor/cakephp/princess ' ,
226- 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing '
226+ 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing ' ,
227227 ];
228228 $ this ->assertSame ($ expected , $ return , 'Composer and application plugins should be listed ' );
229229
@@ -240,7 +240,7 @@ public function testDeterminePlugins()
240240 'Foo ' => $ this ->path . '/plugins/Foo ' ,
241241 'Fum ' => $ this ->path . '/plugins/Fum ' ,
242242 'Princess ' => $ this ->path . '/vendor/cakephp/princess ' ,
243- 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing '
243+ 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing ' ,
244244 ];
245245 $ this ->assertSame ($ expected , $ return , 'Composer and application plugins should be listed ' );
246246 }
@@ -255,7 +255,7 @@ public function testWriteConfigFile()
255255 'OddOneOut ' => '/some/other/path ' ,
256256 'Princess ' => $ this ->path . '/vendor/cakephp/princess ' ,
257257 'TheThing ' => $ this ->path . '/vendor/cakephp/the-thing ' ,
258- 'Vendor\Plugin ' => $ this ->path . '/vendor/vendor/plugin '
258+ 'Vendor\Plugin ' => $ this ->path . '/vendor/vendor/plugin ' ,
259259 ];
260260
261261 $ path = $ this ->path . '/vendor/cakephp-plugins.php ' ;
@@ -295,7 +295,7 @@ public function testWriteConfigFile()
295295
296296 $ result = require $ path ;
297297 $ expected = [
298- 'plugins ' => $ plugins
298+ 'plugins ' => $ plugins,
299299 ];
300300 $ expected ['plugins ' ]['Vendor/Plugin ' ] = $ expected ['plugins ' ]['Vendor\Plugin ' ];
301301 unset($ expected ['plugins ' ]['Vendor\Plugin ' ]);
0 commit comments