@@ -63,7 +63,7 @@ |
||
| 63 | 63 | */ |
| 64 | 64 | public function setDebug($debug) |
| 65 | 65 | { |
| 66 | - $this->debug = (bool)$debug; |
|
| 66 | + $this->debug = (bool) $debug; |
|
| 67 | 67 | |
| 68 | 68 | return $this; |
| 69 | 69 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function __invoke(callable $handler) |
| 33 | 33 | { |
| 34 | - return function (RequestInterface $request, array $options) use ($handler) { |
|
| 34 | + return function(RequestInterface $request, array $options) use ($handler) { |
|
| 35 | 35 | foreach ($this->authentication->getHeaders() as $header) { |
| 36 | 36 | $request = $request->withHeader( |
| 37 | 37 | $header->getHeaderKey(), |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | { |
| 159 | 159 | $this->tva_assuj = false; |
| 160 | 160 | $this->codeClient = -1; //automatically assigned by Dolibarr |
| 161 | - $this->codeFournisseur = -1; //automatically assigned by Dolibarr |
|
| 161 | + $this->codeFournisseur = -1; //automatically assigned by Dolibarr |
|
| 162 | 162 | $this->activity = true; //in activity |
| 163 | 163 | } |
| 164 | 164 | |
@@ -2,5 +2,5 @@ |
||
| 2 | 2 | |
| 3 | 3 | use Doctrine\Common\Annotations\AnnotationRegistry; |
| 4 | 4 | |
| 5 | -$loader = @include __DIR__ . '/../vendor/autoload.php'; |
|
| 5 | +$loader = @include __DIR__.'/../vendor/autoload.php'; |
|
| 6 | 6 | AnnotationRegistry::registerLoader('class_exists'); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | private function getExpectedResponse($name) |
| 66 | 66 | { |
| 67 | - return file_get_contents(__DIR__ . "/Data/Response/" . $name . ".json"); |
|
| 67 | + return file_get_contents(__DIR__."/Data/Response/".$name.".json"); |
|
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | */ |
| 75 | 75 | protected function getExpectedPayload($name) |
| 76 | 76 | { |
| 77 | - return file_get_contents(__DIR__ . "/Data/Request/" . $name . ".json"); |
|
| 77 | + return file_get_contents(__DIR__."/Data/Request/".$name.".json"); |
|
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
@@ -32,6 +32,6 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function create(Contact $contact) |
| 34 | 34 | { |
| 35 | - return new ContactId((int)$this->post($this->serialize($contact))); |
|
| 35 | + return new ContactId((int) $this->post($this->serialize($contact))); |
|
| 36 | 36 | } |
| 37 | 37 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | { |
| 20 | 20 | Assert::greaterThan($quantity, 0); |
| 21 | 21 | Assert::integerish($quantity); |
| 22 | - $this->quantity = (int)$quantity; |
|
| 22 | + $this->quantity = (int) $quantity; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | Assert::integerish($productId); |
| 71 | 71 | |
| 72 | 72 | $this->quantity = $quantity; |
| 73 | - $this->productId = (int)$productId; |
|
| 73 | + $this->productId = (int) $productId; |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public static function create(Quantity $quantity, Product $product) |