Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c58a35a

Browse files
author
Ahmed TAILOULOUTE
committed
Fix some PHP codes
1 parent 09cc5fc commit c58a35a

File tree

14 files changed

+18
-17
lines changed

14 files changed

+18
-17
lines changed

assetic/asset_management.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ configuration under the ``assetic`` section. Read more in the
328328
),
329329
),
330330
),
331-
);
331+
));
332332
333333
After you have defined the named assets, you can reference them in your templates
334334
with the ``@named_asset`` notation:

assetic/jpeg_optimize.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ following configuration:
232232
),
233233
'twig' => array(
234234
'functions' => array('jpegoptim'),
235-
),
236235
),
237236
));
238237
@@ -294,7 +293,7 @@ file:
294293
'twig' => array(
295294
'functions' => array(
296295
'jpegoptim' => array(
297-
output => 'images/*.jpg'
296+
'output' => 'images/*.jpg'
298297
),
299298
),
300299
),

assetic/uglifyjs.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ can configure its location using the ``node`` key:
168168
169169
// app/config/config.php
170170
$container->loadFromExtension('assetic', array(
171-
'node' => '/usr/bin/nodejs',
171+
'node' => '/usr/bin/nodejs',
172172
'uglifyjs2' => array(
173-
// the path to the uglifyjs executable
174-
'bin' => '/usr/local/bin/uglifyjs',
175-
),
173+
// the path to the uglifyjs executable
174+
'bin' => '/usr/local/bin/uglifyjs',
175+
),
176176
));
177177
178178
Minify your Assets

configuration/environments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ The best way to accomplish this is via a new environment called, for example,
294294
.. code-block:: php
295295
296296
// app/config/config_benchmark.php
297-
$loader->import('config_prod.php')
297+
$loader->import('config_prod.php');
298298
299299
$container->loadFromExtension('framework', array(
300300
'profiler' => array('only_exceptions' => false),

controller/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ controller:
335335
$templating = $this->templating;
336336
$callback = function () use ($templating, $view, $parameters) {
337337
$templating->stream($view, $parameters);
338-
}
338+
};
339339
340340
return new StreamedResponse($callback);
341341

form/without_class.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ but here's a short example:
104104

105105
.. code-block:: php
106106
107-
new NotBlank(array('groups' => array('create', 'update')))
107+
new NotBlank(array('groups' => array('create', 'update')));

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ your user table:
8989
9090
.. code-block:: php
9191
92-
// src/AppBundle/Entity/User.php
92+
// src/AppBundle/Entity/Author.php
9393
namespace AppBundle\Entity;
9494
9595
use Symfony\Component\Validator\Constraints as Assert;

routing/requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ accomplished with the following route configuration:
184184

185185
.. code-block:: php-annotations
186186
187-
// src/AppBundle/Controller/MainController.php
187+
// src/AppBundle/Controller/BlogApiController.php
188188
namespace AppBundle\Controller;
189189
190190
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;

security/pre_authenticated.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ corresponding firewall in your security configuration:
142142
$container->loadFromExtension('security', array(
143143
'firewalls' => array(
144144
'secured_area' => array(
145-
'pattern' => '^/'
145+
'pattern' => '^/',
146146
'remote_user' => array(
147147
'provider' => 'your_user_provider',
148148
),

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Here is an example on how to load the
127127
use Symfony\Component\Serializer\Normalizer\GetSetMethodNormalizer;
128128
129129
$container->register('get_set_method_normalizer', GetSetMethodNormalizer::class)
130-
->setPublic(false);
130+
->setPublic(false)
131131
->addTag('serializer.normalizer')
132132
;
133133

service_container.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
444444
445445
$container->setDefinition('app.mailer', ...);
446446
447-
$definition = new Definition(NewsletterManager::class)
447+
$definition = new Definition(NewsletterManager::class);
448448
$definition->addMethodCall('setMailer', array(
449449
new Reference('app.mailer'),
450450
));

service_container/configurators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ You can configure the service configurator using the ``configurator`` option:
185185
->setConfigurator(array(new Reference('app.email_configurator'), 'configure'))
186186
;
187187
188-
$container->register('app.greeting_card_manager', GreetingCardManager::class);
188+
$container->register('app.greeting_card_manager', GreetingCardManager::class)
189189
->addArgument(new Reference('mailer'))
190190
->setConfigurator(array(new Reference('app.email_configurator'), 'configure'))
191191
;

session/php_bridge.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ for the ``handler_id``:
4242
'session' => array(
4343
'storage_id' => 'session.storage.php_bridge',
4444
'handler_id' => null,
45+
),
4546
));
4647
4748
Otherwise, if the problem is simply that you cannot avoid the application
@@ -77,6 +78,7 @@ the example below:
7778
'session' => array(
7879
'storage_id' => 'session.storage.php_bridge',
7980
'handler_id' => 'session.storage.native_file',
81+
),
8082
));
8183
8284
.. note::

templating/namespaced_paths.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ directory:
6868
$container->loadFromExtension('twig', array(
6969
'paths' => array(
7070
'%kernel.root_dir%/../vendor/acme/foo-bar/templates' => 'foo_bar',
71-
);
71+
)
7272
));
7373
7474
.. caution::

0 commit comments

Comments
 (0)