mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
cs: Switch to a stricter way of coding - this might break in a lot of places.
This commit is contained in:
@@ -7,6 +7,15 @@
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers.
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\MainBundle\DataFixtures\ORM;
|
||||
|
||||
use Chill\MainBundle\Doctrine\Model\Point;
|
||||
@@ -350,15 +359,15 @@ class LoadPostalCodes extends AbstractFixture implements OrderedFixtureInterface
|
||||
->setCode($code[0])
|
||||
->setName(ucwords(strtolower($code[1])));
|
||||
|
||||
if (null != $code[3]) {
|
||||
if (null !== $code[3]) {
|
||||
$c->setRefPostalCodeId($code[3]);
|
||||
}
|
||||
|
||||
if (null != $code[4] & null != $code[5]) {
|
||||
if (null !== $code[4] & null !== $code[5]) {
|
||||
$c->setCenter(Point::fromLonLat((float) $code[5], (float) $code[4]));
|
||||
}
|
||||
|
||||
if (null != $code[6]) {
|
||||
if (null !== $code[6]) {
|
||||
$c->setPostalCodeSource($code[6]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user