@@ -140,7 +140,7 @@ |
||
| 140 | 140 | $format = $this->attributes['format']; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - // try Symfony request |
|
| 143 | + // try Symfony request |
|
| 144 | 144 | else if (array_key_exists('app', $this->context)) { |
| 145 | 145 | /** |
| 146 | 146 | * @var $appVariable AppVariable |
@@ -50,58 +50,58 @@ |
||
| 50 | 50 | { |
| 51 | 51 | $wrapper = $this; // PHP 5.3 fix |
| 52 | 52 | |
| 53 | - $this->mappings['category'] = function ($value) use ($wrapper) { |
|
| 53 | + $this->mappings['category'] = function($value) use ($wrapper) { |
|
| 54 | 54 | $wrapper->object->getProperties()->setCategory($value); |
| 55 | 55 | }; |
| 56 | - $this->mappings['company'] = function ($value) use ($wrapper) { |
|
| 56 | + $this->mappings['company'] = function($value) use ($wrapper) { |
|
| 57 | 57 | $wrapper->object->getProperties()->setCompany($value); |
| 58 | 58 | }; |
| 59 | - $this->mappings['created'] = function ($value) use ($wrapper) { |
|
| 59 | + $this->mappings['created'] = function($value) use ($wrapper) { |
|
| 60 | 60 | $wrapper->object->getProperties()->setCreated($value); |
| 61 | 61 | }; |
| 62 | - $this->mappings['creator'] = function ($value) use ($wrapper) { |
|
| 62 | + $this->mappings['creator'] = function($value) use ($wrapper) { |
|
| 63 | 63 | $wrapper->object->getProperties()->setCreator($value); |
| 64 | 64 | }; |
| 65 | - $this->mappings['defaultStyle'] = function ($value) use ($wrapper) { |
|
| 65 | + $this->mappings['defaultStyle'] = function($value) use ($wrapper) { |
|
| 66 | 66 | $wrapper->object->getDefaultStyle()->applyFromArray($value); |
| 67 | 67 | }; |
| 68 | - $this->mappings['description'] = function ($value) use ($wrapper) { |
|
| 68 | + $this->mappings['description'] = function($value) use ($wrapper) { |
|
| 69 | 69 | $wrapper->object->getProperties()->setDescription($value); |
| 70 | 70 | }; |
| 71 | - $this->mappings['format'] = function ($value) use ($wrapper) { |
|
| 71 | + $this->mappings['format'] = function($value) use ($wrapper) { |
|
| 72 | 72 | $wrapper->attributes['format'] = $value; |
| 73 | 73 | }; |
| 74 | - $this->mappings['keywords'] = function ($value) use ($wrapper) { |
|
| 74 | + $this->mappings['keywords'] = function($value) use ($wrapper) { |
|
| 75 | 75 | $wrapper->object->getProperties()->setKeywords($value); |
| 76 | 76 | }; |
| 77 | - $this->mappings['lastModifiedBy'] = function ($value) use ($wrapper) { |
|
| 77 | + $this->mappings['lastModifiedBy'] = function($value) use ($wrapper) { |
|
| 78 | 78 | $wrapper->object->getProperties()->setLastModifiedBy($value); |
| 79 | 79 | }; |
| 80 | - $this->mappings['manager'] = function ($value) use ($wrapper) { |
|
| 80 | + $this->mappings['manager'] = function($value) use ($wrapper) { |
|
| 81 | 81 | $wrapper->object->getProperties()->setManager($value); |
| 82 | 82 | }; |
| 83 | - $this->mappings['modified'] = function ($value) use ($wrapper) { |
|
| 83 | + $this->mappings['modified'] = function($value) use ($wrapper) { |
|
| 84 | 84 | $wrapper->object->getProperties()->setModified($value); |
| 85 | 85 | }; |
| 86 | - $this->mappings['security']['lockRevision'] = function ($value) use ($wrapper) { |
|
| 86 | + $this->mappings['security']['lockRevision'] = function($value) use ($wrapper) { |
|
| 87 | 87 | $wrapper->object->getSecurity()->setLockRevision($value); |
| 88 | 88 | }; |
| 89 | - $this->mappings['security']['lockStructure'] = function ($value) use ($wrapper) { |
|
| 89 | + $this->mappings['security']['lockStructure'] = function($value) use ($wrapper) { |
|
| 90 | 90 | $wrapper->object->getSecurity()->setLockStructure($value); |
| 91 | 91 | }; |
| 92 | - $this->mappings['security']['lockWindows'] = function ($value) use ($wrapper) { |
|
| 92 | + $this->mappings['security']['lockWindows'] = function($value) use ($wrapper) { |
|
| 93 | 93 | $wrapper->object->getSecurity()->setLockWindows($value); |
| 94 | 94 | }; |
| 95 | - $this->mappings['security']['revisionsPassword'] = function ($value) use ($wrapper) { |
|
| 95 | + $this->mappings['security']['revisionsPassword'] = function($value) use ($wrapper) { |
|
| 96 | 96 | $wrapper->object->getSecurity()->setRevisionsPassword($value); |
| 97 | 97 | }; |
| 98 | - $this->mappings['security']['workbookPassword'] = function ($value) use ($wrapper) { |
|
| 98 | + $this->mappings['security']['workbookPassword'] = function($value) use ($wrapper) { |
|
| 99 | 99 | $wrapper->object->getSecurity()->setWorkbookPassword($value); |
| 100 | 100 | }; |
| 101 | - $this->mappings['subject'] = function ($value) use ($wrapper) { |
|
| 101 | + $this->mappings['subject'] = function($value) use ($wrapper) { |
|
| 102 | 102 | $wrapper->object->getProperties()->setSubject($value); |
| 103 | 103 | }; |
| 104 | - $this->mappings['title'] = function ($value) use ($wrapper) { |
|
| 104 | + $this->mappings['title'] = function($value) use ($wrapper) { |
|
| 105 | 105 | $wrapper->object->getProperties()->setTitle($value); |
| 106 | 106 | }; |
| 107 | 107 | } |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | $appVariable->setRequestStack($requestStack); |
| 52 | 52 | |
| 53 | 53 | // generate source from template |
| 54 | - $source = static::$environment->loadTemplate($templateName . '.twig')->render(['app' => $appVariable]); |
|
| 54 | + $source = static::$environment->loadTemplate($templateName.'.twig')->render(['app' => $appVariable]); |
|
| 55 | 55 | |
| 56 | 56 | // create paths |
| 57 | - $tempDirPath = __DIR__ . static::$TEMP_PATH; |
|
| 58 | - $tempFilePath = $tempDirPath . $templateName . '.' . $format; |
|
| 57 | + $tempDirPath = __DIR__.static::$TEMP_PATH; |
|
| 58 | + $tempFilePath = $tempDirPath.$templateName.'.'.$format; |
|
| 59 | 59 | |
| 60 | 60 | // create source directory if necessary |
| 61 | 61 | if (!file_exists($tempDirPath)) { |
@@ -100,9 +100,9 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public static function setUpBeforeClass() |
| 102 | 102 | { |
| 103 | - static::$environment = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__ . static::$RESOURCE_PATH), ['strict_variables' => true]); |
|
| 103 | + static::$environment = new Twig_Environment(new Twig_Loader_Filesystem(__DIR__.static::$RESOURCE_PATH), ['strict_variables' => true]); |
|
| 104 | 104 | static::$environment->addExtension(new TwigExcelExtension()); |
| 105 | - static::$environment->setCache(__DIR__ . static::$TEMP_PATH); |
|
| 105 | + static::$environment->setCache(__DIR__.static::$TEMP_PATH); |
|
| 106 | 106 | } |
| 107 | 107 | |
| 108 | 108 | /** |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | public static function tearDownAfterClass() |
| 112 | 112 | { |
| 113 | 113 | if (in_array(getenv('DELETE_TEMP_FILES'), ['true', '1', 1, true], true)) { |
| 114 | - exec('rm -rf ' . __DIR__ . static::$TEMP_PATH); |
|
| 114 | + exec('rm -rf '.__DIR__.static::$TEMP_PATH); |
|
| 115 | 115 | } |
| 116 | 116 | } |
| 117 | 117 | } |